0% found this document useful (0 votes)
6 views4 pages

6 Tap Lenh - Na

Uploaded by

baokiet.tran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views4 pages

6 Tap Lenh - Na

Uploaded by

baokiet.tran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

### 1. What is the opcode in a machine instruction?

A. The address of the instruction

B. The operation to be performed

C. The data to be processed

D. The destination operand

### 2. Which of the following is an operand in an instruction?

A. The next instruction address

B. The result of a calculation

C. The source or destination data

D. The control signal

### 3. What is the purpose of a memory address register (MAR)?

A. Store instructions

B. Hold the address of the next instruction

C. Store the data to be written to memory

D. Hold the address of a location in memory

### 4. Which of the following is a typical component of a machine instruction?

A. Control unit

B. Memory buffer register

C. Program counter

D. Operation code (opcode)

### 5. In a two-address instruction format, how many operands are typically specified?

A. 1

B. 2

C. 3

D. 0

### 6. What is the function of a program counter (PC)?

A. Hold the result of an operation

B. Store the memory address of the next instruction

C. Keep track of executed instructions


D. Store the operands

### 7. What does the term "stack" refer to in computer architecture?

A. A sequence of memory registers

B. A memory management technique

C. A set of instructions

D. A last-in, first-out (LIFO) data structure

### 8. In instruction sets, what does "indirect addressing" mean?

A. The operand is in a register

B. The operand is directly specified in the instruction

C. The address of the operand is in a memory location

D. The operand is stored in the control unit

### 9. What is the main purpose of the "branch" instruction?

A. Load data into memory

B. Perform arithmetic operations

C. Alter the flow of execution

D. Move data between registers

### 10. How many addresses are used in a zero-address instruction format?

A. 1

B. 2

C. 0

D. 3

### 11. What is the difference between arithmetic and logical shift operations?

A. Arithmetic shifts multiply or divide by powers of 2, while logical shifts only shift bits

B. Logical shifts operate on numbers, while arithmetic shifts operate on characters

C. Arithmetic shifts affect all bits, while logical shifts affect only half of the bits

D. Logical shifts operate on integers, while arithmetic shifts operate on floating-point numbers

### 12. What does the instruction "ADD R1, R2" do in most machine instruction sets?

A. Move data from R2 to R1

B. Add the contents of R1 and R2


C. Subtract R2 from R1

D. Store the result in memory

### 13. What is the function of an interrupt in a processor?

A. Execute a subroutine

B. Stop the current instruction

C. Handle an external or internal event

D. Load the next instruction

### 14. What is the role of a status register in a processor?

A. Store the next instruction

B. Keep track of system flags and condition codes

C. Manage data transfers

D. Store temporary data

### 15. What does the term "direct addressing" mean in an instruction set?

A. The operand is stored in a register

B. The operand is immediately available in the instruction

C. The address of the operand is provided directly in the instruction

D. The operand is computed at runtime

### 16. Which of the following is NOT a common data type in machine instructions?

A. Floating-point

B. Decimal

C. Character

D. Pointer

### 17. What does a "CALL" instruction do in assembly language?

A. Transfers control to a subroutine and saves the return address

B. Moves data between registers

C. Performs a logical operation

D. Compares two values

### 18. What is the difference between "RISC" and "CISC" architectures?

A. RISC has fewer, simpler instructions, while CISC has more, complex instructions
B. RISC uses more memory, while CISC uses fewer registers

C. CISC is slower but more energy efficient

D. RISC cannot handle floating-point operations

### 19. In a load/store architecture, which of the following is true?

A. Data processing instructions can directly manipulate memory

B. Only registers can be manipulated in data processing instructions

C. Data must be loaded into memory before it can be processed

D. The architecture does not use registers

### 20. What is the purpose of a "NO OPERATION" (NOP) instruction?

A. Execute a multiplication . Transfer control to the next instruction without doing anything

C. Halt the program

D. Perform a memory write operation

You might also like