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

Quiz: TLB and Effective Access Time · Question 7 of 10

What does this print? (code)

What does this print?

h, t, m = 0.9, 10, 100
print(h * (t + m) + (1 - h) * (t + 2 * m))
  1. A.110.0
  2. B.120.0
  3. C.210.0
  4. D.100.0
Answer & explanation

Correct answer: 120.0

0.9 × 110 + 0.1 × 210 = 99 + 21 = 120.

Can you get the rest right without peeking?

Take the timed Quiz: TLB and Effective Access Time quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →