🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: CPU Scheduling Numericals: all 14 questions

Quiz: CPU Scheduling Numericals · Question 8 of 14

What does this print? (code)

What does this print?

q, s = 10, 2
print(round(q / (q + s) * 100, 1))
  1. A.80.0
  2. B.83.3
  3. C.20.0
  4. D.16.7
Answer & explanation

Correct answer: 83.3

10 / 12 = 0.8333…, so 83.3% efficiency.

Can you get the rest right without peeking?

Take the timed Quiz: CPU Scheduling Numericals quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →