
Pseudocode Test - 1
Authored by CodElevate Technologies
Computers
Professional Development
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of the following pseudocode for `a = 1, b = 1, c = 7`?
Integer a, b, c
Set a = 1, b = 1, c = 7
a = a + b
if(a + b)
if(b + (c ^ a))
a = 2
b = a
End if
End if
Print a + b + c
8
9
10
11
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following pseudocode for `a = 5, b = 3`?
Integer calculate(Integer a, Integer b)
Integer result
result = a << 1
result = result | b
return result
End function calculate()
13
11
15
10
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of the following pseudocode for `a = 3, b = 4, c = 5`?
Integer a, b, c
Set a = 3, b = 4, c = 5
a = a * b
if(a - b)
if(b - (c ^ a))
a = 2
b = a
End if
End if
Print a + b + c
12
15
9
25
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following pseudocode for `a = 2, b = 3`?
Integer calculate(Integer a, Integer b)
Integer result
result = a >> 1
result = result ^ b
return result
End function calculate()
1
3
5
2
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the result of the following pseudocode for `a = 5, b = 8`?
Integer performOperation(Integer a, Integer b)
Integer result
result = (a & b) | (a ^ b)
return result
End function performOperation()
13
8
5
0
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Int a,b,c
Set a=1 b=7 c=13
c=(b+1)^a
a=(5&2)&c
a=(b+7)+b
Print a+b+c
33
35
37
39
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
How many time hello printed
Set k=1, p=4
int j=p+k/2
if (j equals p)
print "hello"
end if
j=p+k/5
if(j not equals p)
print "hello"
end if
print "hello"
2
3
4
1
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Úng dụng công nghệ thông tin
Quiz
•
Professional Development
12 questions
Cycle 4: Session 8 Review.
Quiz
•
Professional Development
14 questions
Day 1 - Basics of Java
Quiz
•
Professional Development
10 questions
paquetes contables lección 1
Quiz
•
11th Grade - Professi...
10 questions
Latihan Microsoft Word by Kisron
Quiz
•
Professional Development
10 questions
Informática - Arquitectura de las computadoras
Quiz
•
Professional Development
10 questions
Mini Game KT
Quiz
•
Professional Development
12 questions
MME 5.1-Conectores
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...