← 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")
- A.20 KB
- B.5120 KB
- C.640 KB
- 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 →