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

Quiz: Python Conditions · Question 11 of 13

What does this print? (code)

What does this print?

x = 7
if x > 5:
    if x % 2 == 0:
        print("big even")
    else:
        print("big odd")
  1. A.big even
  2. B.big odd
  3. C.Nothing
  4. D.big even big odd
Answer & explanation

Correct answer: big odd

The outer condition is true, and the inner else runs because 7 is odd.

Can you get the rest right without peeking?

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

Start the quiz →