1. Home
  2. Federal Board of Intermediate and Secondary Education (FBISE)
  3. Computer Science FBISE Class 9
  4. What will be the output of print(3 + 4 * 2) in Python?

Added 15 Nov 2026

What will be the output of print(3 + 4 * 2) in Python?

  1. 14
  2. 11 Correct answer
  3. 24
  4. 9

Correct answer

B. 11

8 views

MCQSEXAM

Explanation

Multiplication is carried out before addition because it has higher precedence, so the expression is evaluated as 3 + 8, giving 11. Anyone who simply works from left to right gets 14, which is the classic mistake here. Brackets, as in (3 + 4) * 2, would be needed to obtain 14.

Reference

Asked in: Matric,FBISE

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Computer Science FBISE Class 9 MCQs

Practise all Computer Science FBISE Class 9 MCQs

Similar MCQs