Advanced Computer Architecture MCQs with Answers
Practice important Advanced Computer Architecture MCQs with answers and explanations.
Chapter: 29
Q681:
Which instruction is used to store an error code in r1?
A. movi r1, FFFF19
B. movi r1, -1
C. movi r2, x
D. load r1, [r2]
Correct Answer:
A
Chapter: 29
Q682:
What does the instruction load r2, [a] accomplish?
A. Loads a constant into r2
B. Loads a value from memory into r2
C. Stores a value in memory
D. Moves a value from r2 to r1
Correct Answer:
B
Chapter: 29
Q683:
If a signed value cannot fit in 5 bits, which instruction can be used?
A. movi r2, x followed by load r1, [r2]
B. load r1, [x]
C. store r1, [x]
D. movi r1, x
Correct Answer:
A
Chapter: 29
Q684:
What is the result of executing movi r2, 10, movi r3, 20, mul r1, r2, r3, and addi r1, r1, 1?
A. r1 contains 10
B. r1 contains 20
C. r1 contains 200
D. r1 contains 201
Correct Answer:
D
Chapter: 29
Q685:
Which of the following is a technique for handling large values in FALCON-A?
A. Use immediate ALU instructions
B. Store the value in memory using .sw directive
C. Use a load instruction
D. Store values in registers
Correct Answer:
B
Chapter: 29
Q686:
Which of the following can be faster than multiplication or division?
A. Logical instructions
B. Bit setting instructions
C. Shift instructions
D. Immediate data loading
Correct Answer:
C
Chapter: 29
Q687:
When executing the int instruction, what changes in the program counter (PC)?
A. It stays the same
B. It resets to zero
C. It jumps to the ISR address
D. It exits the program
Correct Answer:
C
Chapter: 29
Q688:
Fill in the blank: The instruction out r1, controlp transfers the value in ______ to the output port.
A. memory location
B. register r1
C. the I/O port
D. status register
Correct Answer:
B
Chapter: 29
Q689:
If movi r1, -1 is converted to machine language, what does it become?
A. movi r1, FFFF
B. movi r1, FFFF19
C. movi r1, 1
D. movi r1, 0
Correct Answer:
A
Chapter: 29
Q690:
What instruction is used for transferring control in FALCON-A?
A. movi
B. jump
C. call
D. load
Correct Answer:
C
Chapter: 29
Q691:
Which of the following instructions helps in bit manipulation?
A. shiftl
B. mul
C. addi
D. load
Correct Answer:
A
Chapter: 29
Q692:
Fill in the blank: To verify the output port value, double-click on the top left corner of the ______ pane.
A. memory
B. simulation
C. I/O port
D. status
Correct Answer:
C
Chapter: 30
Q693:
What technique allows the CPU to transfer control for data transfer?
A. DMA
B. Interrupts
C. CPU polling
D. Bus control
Correct Answer:
A
Chapter: 30
Q694:
What is the maximum transfer rate of the hard drive in the given example?
A. 1MB/sec
B. 25KB/sec
C. 30KB/sec
D. 512KB/sec
Correct Answer:
A
Chapter: 30
Q695:
In the nested interrupts, what does the priority mask determine?
A. The order of interrupts
B. The number of devices
C. The transfer rate
D. The polling frequency
Correct Answer:
A
Chapter: 30
Q696:
What is the polling frequency required for an I/O device to maintain a 10ms delay?
A. 20ms
B. 50ms
C. 10ms
D. 5ms
Correct Answer:
A
Chapter: 30
Q697:
What is the CPU time percentage required for polling a hard drive?
A. 0.512
B. 0.0256
C. 6.0E-5
D. 0.1
Correct Answer:
A
Chapter: 30
Q698:
For a floppy disk with a transfer rate of 25KB/sec, what is the percentage of CPU time spent polling?
A. 0.0256
B. 0.512
C. 6.0E-5
D. 0.1
Correct Answer:
A
Chapter: 30
Q699:
When using DMA, what does the CPU do during data transfer?
A. Stays idle
B. Continues polling
C. Processes other tasks
D. Transfers data
Correct Answer:
B
Chapter: 30
Q700:
How many instructions are executed to print an 80 character line?
A. 565
B. 600
C. 80
D. 500
Correct Answer:
A