🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Main Memory Organisation: all 10 questions

Quiz: Main Memory Organisation · Question 8 of 10

What does this print? (code)

What does this print?

words, width = 8 * 1024, 16
chip_words, chip_width = 2 * 1024, 8
rows, cols = words // chip_words, width // chip_width
print(rows * cols, (words - 1).bit_length() - (chip_words - 1).bit_length())
  1. A.4 2
  2. B.8 2
  3. C.8 3
  4. D.16 2
Answer & explanation

Correct answer: 8 2

4 rows × 2 columns = 8 chips; 13 − 11 = 2 bits go to the decoder.

Can you get the rest right without peeking?

Take the timed Quiz: Main Memory Organisation quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →