🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Instructions and Addressing Modes: all 10 questions

Quiz: Instructions and Addressing Modes · Question 3 of 10

A 32-bit instruction has two 6-bit register fields and a 12-bit immediate. How many opcodes are possible?

A 32-bit instruction has two 6-bit register fields and a 12-bit immediate. How many opcodes are possible?

  1. A.64
  2. B.128
  3. C.256
  4. D.4096
Answer & explanation

Correct answer: 256

Opcode bits = 32 − 6 − 6 − 12 = 8, so 2^8 = 256.

Can you get the rest right without peeking?

Take the timed Quiz: Instructions and Addressing Modes quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →