Question PSC-OPS-0004
EasyWhat will be the output of the following pseudocode?
Integer x = (2 + 3) * 4
Print x
- A.
14
- B.
9
- C.
Show answer and explanation
Answer: D
Brackets are evaluated first: 5 × 4 = 20.
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 x = (2 + 3) * 4
Print x
14
9
Answer: D
Brackets are evaluated first: 5 × 4 = 20.
24
20