GATE Computer ScienceEasyGATE CS (PYQ pattern)
Which of the following are correct for addressing modes? I. PC-relative addressing helps make code position independent. II. Register indirect addressing needs one fewer memory access for the operand than memory (indirect) addressing. III. An immediate operand cannot be larger than the field reserved for it in the instruction. IV. Auto-increment mode cannot be used to step through array elements.
- A. I and II only
- B. II, III and IV only
- C. I, II and III only
- D. I, III and IV only
Correct answer: C. I, II and III only
IV is the opposite of the truth: auto-increment is made for walking through arrays. I, II and III are standard facts.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- Each interrupt costs 5000 cycles of fixed overhead (save, vector, restore) and its handler then spends 2000 cycles on every event it…
- A program sums a 64 × 64 matrix of 4-byte ints stored in row-major order starting at address 0, once row by row and once column by column…
- A processor makes one instruction fetch per instruction and 0.36 data references per instruction. Option S has split 16 KB I- and D-caches…
- Which of these 8-bit two's-complement operations overflow as signed arithmetic? I. 0x80 − 0x01. II. 0x00 − 0x80. III. 0x7F + 0x80. IV…
- An 8-bit x86-style SUB computes 0x01 − 0xFF. In this convention CF = 1 exactly when the unsigned subtraction needs a borrow, OF = signed…
- A two-level memory has a 32 KB cache costing 100 per KB (access 10 ns) and a 4 MB main memory costing 1 per KB (access 100 ns); total…