Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Test  >  GATE Computer Science Engineering(CSE) 2027 Mock Test Series  >  Test: Addressing Modes- 1 - Computer Science Engineering (CSE) MCQ

GATE Computer Science Engineering(CSE) 2027 Test: Addressing Modes- 1 Free


MCQ Practice Test & Solutions: Test: Addressing Modes- 1 (10 Questions)

You can prepare effectively for Computer Science Engineering (CSE) GATE Computer Science Engineering(CSE) 2027 Mock Test Series with this dedicated MCQ Practice Test (available with solutions) on the important topic of "Test: Addressing Modes- 1". These 10 questions have been designed by the experts with the latest curriculum of Computer Science Engineering (CSE) 2026, to help you master the concept.

Test Highlights:

  • - Format: Multiple Choice Questions (MCQ)
  • - Duration: 30 minutes
  • - Number of Questions: 10

Sign up on EduRev for free to attempt this test and track your preparation progress.

Test: Addressing Modes- 1 - Question 1

Match List-I with List-ll and select the correct answer using the codes given below the lists:
List-I
A. Regs[R4] ← Regs[R4] + Regs[R3]
B. Regs[R4] ← Regs[R4] + 3
C. Regs[R4] ← Regs[R4] + Mem[100 + Regs[R1]]

List-II
1. Immediate
2. Register
3. Displacement

Codes:
(a) A=3, B=2, C=1
(b) A=2, B=1, C=3
(c) A=1, B=2, C=3
(d) A=3, B=1, C=2

Detailed Solution: Question 1

Regs[R4] ← Regs[R4] + Regs[R3] - Register.
Register addressing mode includes every instruction from processor register, I/O device, or a memory location as an operand.

Regs[R4] ← Regs[R4] + 3 - Immediate.
In the immediate addressing mode in the instruction, the value of the operands is mentioned explicitly.

Regs[R4] ← Regs[R4] + Mem[100] + Regs[R1] - Displacement.
In the displacement modes, operands are formed of the address by adding the content of the displacement into the base register.

Test: Addressing Modes- 1 - Question 2

The register which keeps track of the execution of a program and which contains the memory address of the instruction which is to be executed next is known as ______ .

Detailed Solution: Question 2

Program counter is the register which keeps track of the execution of a program and which contains the memory address of the instruction which is to be executed next by the processor.

Test: Addressing Modes- 1 - Question 3

In case of vectored interrupt, interrupt vector means

Detailed Solution: Question 3

In a vectored interrupt, the source that interrupts supplies the branch information to the computer. This information is called the interrupt vector. In. some computers the interrupt vector is an address that points to a location in memory where the beginning address of the Input Output service routine is stored.

Test: Addressing Modes- 1 - Question 4

Consider the following I/O instruction format for IBM 370 I/O channel 

Then operation code specifies
1. Test I/O
2. Test channel
3. Store channel identification
4. Halt device

Detailed Solution: Question 4

The operation code specifies one of eight input output instructions: Start input/output, start input/ output fast release, test input/output, clear input/ output, halt input/output, halt device, test channel and store channel identification.

Test: Addressing Modes- 1 - Question 5

Match List-I with List-ll and select the correct answer using the codes given below the lists:

Detailed Solution: Question 5

3 address instruction:
Two operand locations and a result location are explicitly contained in the instruction word, 
e.g, Y = A - B
2 address instruction:
One of the addresses is used to specify both an operand and the result location,
e.g, Y = Y + X
1 address instruction:
Two addresses are implied in the instruction and accumulator based operations, 
e.g. ACC = ACC + X
0 address instructions:
They are applicable to a special memory organization called a stack. It interact with a stack using push and pop operations. All addresses are implied as in register based operations
T = Top ( T - 1 )

Test: Addressing Modes- 1 - Question 6

In a certain processor, a 2 byte Jump instruction is encountered at memory address 3010 H, the Jump instruction is in PC relative mode. The instruction is JMP - 7 where - 7 is signed byte. Determine the Branch Target Address 

Detailed Solution: Question 6

The Jump instruction is at address 3010 H and instruction is 2 bytes. Therefore, PC points to 3012 H on execution of this instruction.
Now Branch Target PC
= PC + (-7)
= 3012 H - 7 H = 3005 H

Test: Addressing Modes- 1 - Question 7

Relative Addressing Mode is used to write Position-independent code because

Detailed Solution: Question 7

The address reference is not absolute, it is relative to current location and therefore .these programs are easy to relocate in the memory of the computer.

Test: Addressing Modes- 1 - Question 8

 The immediate addressing modes can be used for ______
1. Loading internal registers with initial value.
2. Perform arithmetic or logical operation on immediate data.

Detailed Solution: Question 8

Immediate addressing modes can be used for either loading internal register with initial value or perform arithmetic or logical operation on immediate data.

Test: Addressing Modes- 1 - Question 9

Processor XYZ supports only the immediate and the direct addressing modes. Which of the following programming language data structures cannot be implemented on this processors?
1. Pointers
2. Arrays
3. Record

Detailed Solution: Question 9

To access pointer, arrays and records we need indirect addressing modes, so with direct and immediate addressing modes we cannot implement these.

Test: Addressing Modes- 1 - Question 10

The register which contains the data to be written into or read out of the addressed location is known as

Detailed Solution: Question 10

MDR register needed to read or written data into or onto memory location.

56 docs|215 tests
Information about Test: Addressing Modes- 1 Page
In this test you can find the Exam questions for Test: Addressing Modes- 1 solved & explained in the simplest way possible. Besides giving Questions and answers for Test: Addressing Modes- 1, EduRev gives you an ample number of Online tests for practice
Download as PDF