🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Tuples and Sets: all 15 questions

Quiz: Tuples and Sets · Question 13 of 15

What does this print? (code)

What does this print?

point = (3, 4)
x, y = point
print(x * y)
  1. A.(3, 4)
  2. B.12
  3. C.7
  4. D.An error
Answer & explanation

Correct answer: 12

Tuple unpacking puts 3 in x and 4 in y.

Can you get the rest right without peeking?

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

Start the quiz →