← 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))
- A.110.0
- B.120.0
- C.210.0
- 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 →