Question 21
EasyWhat will be printed by the following pseudocode?
Print (15 > 10) or (5 > 10)
- A.
15
- B.
false
- C.
1
- D.
true
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Pseudocode and Output Prediction
What will be printed by the following pseudocode?
Print (15 > 10) or (5 > 10)
15
false
1
true
Sign up free to see the answer and a step-by-step explanation.
What is the output of this pseudocode?
Integer x = 19 / 5
Print x * 5 + 19 mod 5
23
15
20
19
Sign up free to see the answer and a step-by-step explanation.
What does the following pseudocode print?
Integer a = 2, b = 3, c = 4
Print a + b * c - a
18
14
12
10
Sign up free to see the answer and a step-by-step explanation.
What is the output of this pseudocode?
Print (2 + 3) * (4 - 1) / 5
1
15
5
3
Sign up free to see the answer and a step-by-step explanation.
What does the following pseudocode print?
Integer a = 10, b
b = a
a = 20
Print b
0
20
10
30
Sign up free to see the answer and a step-by-step explanation.
What does the following pseudocode print?
Integer a = 6
a = a * 2 + a / 2
Print a
18
15
12
9
Sign up free to see the answer and a step-by-step explanation.
What will be the output of the following pseudocode?
Print 9 - 4 + 2
3
7
5
15
Sign up free to see the answer and a step-by-step explanation.
What will be the output of the following pseudocode?
Integer x = 10, y = 3
Print x / y * y + x mod y // integer division
12
11
10
9
Sign up free to see the answer and a step-by-step explanation.
What will be the output of the following pseudocode?
Integer a = 5
Integer b = a
a = a + 1
b = b + a
Print a, b
6 11
6 12
5 11
6 10
Sign up free to see the answer and a step-by-step explanation.
What will be the output of the following pseudocode?
Integer x = 8
x = x - 3 * 2 + 10 / 5 // integer division
Print x
4
12
2
14
Sign up free to see the answer and a step-by-step explanation.