🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Python Operators and Input: all 14 questions

Quiz: Python Operators and Input · Question 11 of 14

What does this print? (code)

What does this print?

print(2 + 3 * 4 ** 2)
  1. A.400
  2. B.80
  3. C.148
  4. D.50
Answer & explanation

Correct answer: 50

** runs first (4 ** 2 = 16), then * (3 * 16 = 48), then + (2 + 48 = 50).

Can you get the rest right without peeking?

Take the timed Quiz: Python Operators and Input quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →