Question PSC-OPS-0006
EasyWhat will be the output of the following pseudocode?
Integer a = 5, b = 8
Print a > b
- A.
5
- B.
0
- C.
Show answer and explanation
Answer: B
5 > 8 is false; as in C, false is printed as 0.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Operators and Expressions question
What will be the output of the following pseudocode?
Integer a = 5, b = 8
Print a > b
5
0
Answer: B
5 > 8 is false; as in C, false is printed as 0.
8
1