🎙 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 4 of 14

What does this print? (code)

What does this print?

x = 7
x %= 4
x **= 2
print(x)
  1. A.49
  2. B.9
  3. C.3
  4. D.16
Answer & explanation

Correct answer: 9

7 % 4 = 3, then 3 ** 2 = 9.

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 →