Question PSC-OPS-0003
EasyWhat will be the output of the following pseudocode?
Integer x = 2 + 3 * 4
Print x
- A.
14
- B.
24
- C.
Show answer and explanation
Answer: A
Multiplication comes before addition: 2 + 12 = 14.
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
24
Answer: A
Multiplication comes before addition: 2 + 12 = 14.
20
9