🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: File Allocation and Inode Numericals: all 9 questions

Quiz: File Allocation and Inode Numericals · Question 7 of 9

What does this print? (code)

What does this print?

blocks = 20 * 2**30 // 4096
print(blocks // 8 // 1024, "KB")
  1. A.20 KB
  2. B.5120 KB
  3. C.640 KB
  4. D.80 KB
Answer & explanation

Correct answer: 640 KB

5,242,880 blocks need that many bits; divided by 8 and by 1024 gives 640 KB.

Can you get the rest right without peeking?

Take the timed Quiz: File Allocation and Inode Numericals quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →