Find the output of the following pseudo-code:
Integer x,y,z;
x=0
y=1
x = y = z = 8
Print x
Previous set Capgemini
Quiz
•
Computers
•
1st - 3rd Grade
•
Hard
prem sagar
Used 27+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Find the output of the following pseudo-code:
Integer x,y,z;
x=0
y=1
x = y = z = 8
Print x
0
8
1
None of these
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Find the output of the following pseudo-code:
Integer value, n
Set value = 1, n = 45
while(value less than equal to n)
value = value << 1
end loop
Print value
64
32
45
None of these
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Find the output of the following pseudo-code:
Integer c, d
Set c = 15, d = 12
d = c – 1
Print c //line
c = d + (c – 2)
if(c < 40)
Goto line
end if
14 26 38
27 39
15 27 39
None of the above
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Find the output of the following pseudo-code if x= 4 and y=5:
Integer fun(int x, int y)
if(x > 1)
fun(x – 2, y + 2)
end if
print y
End function fun()
4 5 6
7 6 5
9 7 5
None of the above
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
How many times will the print statement be executed:
Integer a, b, c
Set a = 8, b = 10, c = 6
If(a > c AND (b + c) > a)
Print a
end if
if(c > b OR (a + c) > b)
Print b
end if
if((b+c) MOD a EQUALS 0)
Print c
end if
2
3
1
0
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output if the following pseudocode if a=10 and b=6:
Integer func (Integer a, Integer b)
Integer temp
while(b)
temp = a MOD b
a = b
b = temp
end while
return a
End function func()
2
4
3
1
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of the following pseudo-code?
Integer x, y, z
Set x=24, y=8
x = x/y
z = y<<x
Print z
1
8
0
64
10 questions
Pseudo Code
Quiz
•
1st - 3rd Grade
15 questions
ASK F2 -KOD ARAHAN (PYTHON)
Quiz
•
1st Grade - University
16 questions
ASk T2 Jenis data
Quiz
•
3rd Grade
16 questions
Python - Variables and Input
Quiz
•
1st - 10th Grade
10 questions
Pascal Assessment
Quiz
•
3rd - 4th Grade
14 questions
Python Quiz 7
Quiz
•
KG - 6th Grade
10 questions
Kuis Algoritma dan Pemrograman 1
Quiz
•
1st Grade
12 questions
Class-2 Ch-3
Quiz
•
2nd Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
14 questions
IREAD-3 Practice Test
Quiz
•
3rd Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Perimeter of Polygons!
Quiz
•
3rd Grade
10 questions
2nd Grade math review
Quiz
•
2nd Grade
20 questions
Math Review
Quiz
•
3rd Grade
18 questions
Traits
Quiz
•
3rd Grade
16 questions
Chapter 8 - Getting Along with your Supervisor
Quiz
•
3rd Grade - Professio...