🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Query Processing and Optimization: all 10 questions

Quiz: Query Processing and Optimization · Question 4 of 10

What does this print? (code)

What does this print?

b_r, b_s = 200, 50
n_r = 4000
print(n_r * b_s + b_r, b_r * b_s + b_r)
  1. A.200200 10200
  2. B.10200 200200
  3. C.200000 10000
  4. D.4250 250
Answer & explanation

Correct answer: 200200 10200

Nested loop: 4000 × 50 + 200; block nested loop: 200 × 50 + 200.

Can you get the rest right without peeking?

Take the timed Quiz: Query Processing and Optimization quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →