computer-organization-and-architecture banner

Computer Organization and Architecture Multiple Choice Questions (MCQs) and Answers

Master Computer Organization and Architecture with Practice MCQs. Explore our curated collection of Multiple Choice Questions. Ideal for placement and interview preparation, our questions range from basic to advanced, ensuring comprehensive coverage of Computer Architecture concepts. Begin your placement preparation journey now!

Q61

Q61 How does memory-mapped I/O differ from isolated I/O?

A

Memory-mapped I/O shares address space with memory

B

Memory-mapped I/O uses separate address spaces

C

Both use interrupts

D

Isolated I/O uses separate address spaces

Q62

Q62 Write an assembly language instruction to read data from an I/O port using IN instruction.

A

MOV AX, 30H

B

XOR AX, AX

C

OUT AX, 30H

D

IN AX, 30H

Q63

Q63 How would you implement an interrupt handler in assembly language?

A

By writing a subroutine

B

By sending data to the device

C

By polling the device

D

By using a jump instruction

Q64

Q64 Write an assembly language command to transfer data to a peripheral device using the OUT instruction.

A

OUT 30H, AX

B

IN AX, 30H

C

MOV AX, 30H

D

AND AX, AX

Q65

Q65 A device sends data in 16-bit format. How would you configure a CPU register to handle this data in assembly?

A

Set the AL register

B

Set the AX register

C

Set the AH register

D

Set the BX register

Q66

Q66 The CPU is unable to detect when an I/O device is ready for data transfer. What could be the issue?

A

ALU failure

B

Faulty interrupt system

C

DMA failure

D

Incorrect polling

Q67

Q67 A program is not correctly sending data to an I/O device. What could be the issue?

A

ALU failure

B

Cache memory error

C

Incorrect OUT instruction

D

Faulty Program Counter

Q68

Q68 The CPU is experiencing slow data transfer with an I/O device. What could be a potential cause?

A

Improper polling

B

DMA malfunction

C

Faulty ALU

D

Interrupt-driven I/O failure

Q69

Q69 What is the primary benefit of pipelining in CPU architecture?

A

By reducing instruction length

B

By storing more data

C

Increases CPU clock speed

D

Allows multiple instructions to be executed simultaneously

Q70

Q70 Which of the following types of hazards occurs when two instructions need the same data simultaneously?

A

Structural hazard

B

Memory hazard

C

Control hazard

D

Data hazard

Q71

Q71 How do control hazards affect pipelining performance?

A

They reduce cache hit rates

B

They reduce instruction throughput

C

They increase memory access time

D

They increase instruction length

Q72

Q72 What is instruction-level parallelism (ILP)?

A

Executing instructions in sequence

B

Executing multiple instructions from the same thread

C

Executing instructions sequentially

D

Executing multiple instructions from different threads

Q73

Q73 Which technique can help mitigate the impact of branch hazards in pipelining?

A

Reducing instruction size

B

Branch prediction

C

Increasing clock speed

D

Increasing pipeline stages

Q74

Q74 How would you handle a data hazard in a pipelined processor?

A

Increase clock speed

B

Reorder instructions to avoid conflicts

C

Use more cache memory

D

Reduce pipeline stages

Q75

Q75 How would you implement instruction pipelining in an assembly language program?

A

By using more memory

B

By executing instructions sequentially

C

By overlapping the execution of multiple instructions

D

By increasing clock speed

Q76

Q76 How can data hazards be avoided in a pipelined processor?

A

By using direct memory access

B

By reordering instructions

C

By increasing memory size

D

By using sequential execution

Q77

Q77 A pipelined CPU is experiencing frequent stalls. What is the most likely cause?

A

Control hazard

B

Memory overflow

C

ALU failure

D

Data hazard

Q78

Q78 A CPU pipeline is stalling on every branch instruction. What technique could solve this issue?

A

Increasing cache size

B

Sequential execution

C

Branch prediction

D

Memory mapping

Q79

Q79 A processor with instruction pipelining is experiencing performance issues during parallel execution. Why?

A

ALU failure

B

Incorrect instruction set

C

Insufficient registers

D

Poor pipeline design

Q80

Q80 What is the main function of cache memory in a computer system?

A

To execute instructions

B

To store unused data

C

To store frequently used data

D

To increase CPU speed

Q81

Q81 How does cache memory improve CPU performance?

A

By storing instructions

B

By increasing clock speed

C

By reducing memory access time

D

By storing programs

Q82

Q82 Which type of cache memory is typically located closest to the CPU?

A

L1 cache

B

L2 cache

C

L3 cache

D

Main memory

Q83

Q83 What happens when a cache miss occurs?

A

Data is retrieved from the cache

B

CPU executes the instruction again

C

Data is fetched from the main memory

D

Data is lost

Q84

Q84 How does set-associative mapping differ from direct mapping in cache memory?

A

Set-associative mapping uses fewer blocks

B

Direct mapping is slower

C

Set-associative mapping uses more blocks per set

D

Direct mapping uses random blocks

Q85

Q85 Write an assembly instruction to load data from cache into a register.

A

MOV AX, [CACHE]

B

MOV AX, [MEM]

C

LOAD AX, [MEM]

D

LOAD AX, [CACHE]

Q86

Q86 A CPU accesses cache memory with the address 1010. What is the corresponding set index for 4-set cache?

A

2

B

0

C

3

D

1

Q87

Q87 Given a cache size of 32 KB with 8 bytes per block, how many blocks are available in the cache?

A

512

B

256

C

1024

D

4096

Q88

Q88 A CPU is experiencing frequent cache misses. What could be the reason?

A

ALU failure

B

Program counter issue

C

Incorrect clock speed

D

Too small cache size

Q89

Q89 A cache is underperforming, leading to frequent memory accesses. What could be the issue?

A

Too many registers

B

Poor cache replacement policy

C

ALU malfunction

D

Overloaded CPU

Q90

Q90 A system with a well-sized cache is experiencing unexpected slowdowns. What could be the problem?

A

Too many branches

B

Cache memory failure

C

Incorrect cache mapping

D

Insufficient RAM

ad verticalad vertical
ad