Computer Architecture and Assembly Langunit4

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

S.D.

COLLEFE OF MANAGEMENT OF STUDIES


Computer architecture and assembly language

1. Which of the following is not a peripheral device?

a) Printer

b) CPU

c) Scanner

d) Mouse

2. Which peripheral device is used for inputting graphical data into a computer?

a) Scanner

b) Printer

c) Mouse

d) Graphics tablet

3. Which peripheral device is used for outputting hard copies of documents?

a) Monitor

b) Printer

c) Scanner

d) Keyboard

4. Which of the following is a primary function of a modem?

a) Display graphics

b) Input text

c) Output sound

d) Connect to the internet

5. Which peripheral device is essential for storing data and programs permanently?

a) Keyboard

b) Monitor

c) Hard disk drive

d) Speakers

6. Which peripheral device allows users to listen to audio output from the computer?

a) Printer
b) Speakers

c) Scanner

d) Mouse

7. Which of the following is a pointing device used to navigate on the computer screen?

a) Keyboard

b) Printer

c) Mouse

d) Headphones

8. Which peripheral device is used to capture images or documents and convert them into digital
format?

a) Printer

b) Scanner

c) Speakers

d) Modem

9. Which peripheral device is used to provide additional storage space and can be easily
transported?

a) Floppy disk

b) Monitor

c) USB flash drive

d) Keyboard

10. Which peripheral device is used to read data stored on optical discs?

a) Scanner

b) Printer

c) Keyboard

d) CD/DVD drive

11. Which of the following best describes the role of an input/output (I/O) interface in computer
architecture?

A) It manages the flow of data between the CPU and memory.

B) It handles communication between the computer and external devices.

C) It is responsible for executing arithmetic and logical operations.

D) It controls the allocation of resources within the CPU.

12. Which statement best describes asynchronous data transfer in the context of a computer's ALU?
A) Asynchronous data transfer involves the ALU processing data at a fixed clock speed.

B) Asynchronous data transfer refers to the ALU synchronizing data with external devices in real-
time.

C) Asynchronous data transfer allows the ALU to operate independently of a system clock signal.

D) Asynchronous data transfer requires the ALU to perform arithmetic operations in a specific
sequence

Certainly! Here are some multiple-choice questions related to modes of transfer in computer
architecture:

13. In computer architecture, which mode of transfer involves data moving directly between the
CPU and memory without going through an intermediary?

a) Programmed I/O

b) Interrupt-driven I/O

c) Direct Memory Access (DMA)

d) Memory-mapped I/O

14. Which mode of transfer requires the CPU to actively manage the data transfer process, often
resulting in a high CPU overhead?

a) Programmed I/O

b) Interrupt-driven I/O

c) Direct Memory Access (DMA)

d) Memory-mapped I/O

15. In which mode of transfer does the peripheral device send a signal to the CPU to request its
attention?

a) Programmed I/O

b) Interrupt-driven I/O

c) Direct Memory Access (DMA)

d) Memory-mapped I/O
16. Which mode of transfer allows data to be transferred between peripheral devices and memory
without involving the CPU?

a) Programmed I/O

b) Interrupt-driven I/O

c) Direct Memory Access (DMA)

d) Memory-mapped I/O
17. In which mode of transfer does the peripheral device directly access the memory bus to transfer
data?
a) Programmed I/O

b) Interrupt-driven I/O

c) Direct Memory Access (DMA)

d) Memory-mapped I/O

18. In computer architecture, what is the purpose of priority interrupts?

a) To ensure that interrupts are handled in the order they are received

b) To assign different priorities to interrupting devices

c) To prevent interrupts from occurring

d) To prioritize CPU scheduling

19. How are priority interrupts typically implemented in hardware?

a) Through software-based priority queues

b) By assigning interrupt requests (IRQs) to devices randomly

c) By assigning each interrupting device a unique priority level

d) By disabling interrupts altogether

20. Which of the following statements about priority interrupts is true?

a) Lower priority interrupts can interrupt higher priority interrupts.

b) Higher priority interrupts can interrupt lower priority interrupts.

c) Priority interrupts are always handled in the order they are received.

d) All interrupts have the same priority level.

21. In a system with priority interrupts, which interrupt will be serviced first if two or more
interrupts occur simultaneously?

a) The interrupt with the lowest priority

b) The interrupt with the highest priority

c) The interrupt that occurred first

d) The interrupt that occurred last

22. What is the primary advantage of using priority interrupts in computer systems?

a) Reduced interrupt latency

b) Increased interrupt handling time

c) Simpler interrupt handling logic

d) Lower overall system performance

23. What is Direct Memory Access (DMA) in computer architecture?


a) A method for accessing memory directly from the CPU

b) A technique for transferring data between I/O devices and memory without CPU intervention

c) A type of memory that stores data accessed by the CPU

d) A form of memory caching used to improve CPU performance

24. Which of the following best describes the role of DMA in a computer system?

a) It reduces the need for interrupts.

b) It increases CPU utilization.

c) It speeds up the data transfer between peripheral devices and memory.

d) It reduces the clock speed of the CPU.

25. How does DMA transfer data between I/O devices and memory?

a) By storing data temporarily in registers

b) By copying data to the CPU cache first

c) By directly accessing memory without involving the CPU

d) By transmitting data through the system bus

26. Which component in a computer system typically controls DMA operations?

a) Central Processing Unit (CPU)

b) Input/Output Controller (IOC)

c) Memory Management Unit (MMU)

d) Direct Memory Access Controller (DMAC)

27. What advantage does DMA offer over programmed I/O for data transfer?

a) DMA requires less memory bandwidth.

b) DMA reduces CPU overhead.

c) DMA increases the frequency of interrupts.

d) DMA eliminates the need for I/O devices.

28. What is the primary function of an Input/Output Processor (IOP) in computer architecture?

a) To perform arithmetic and logical operations

b) To manage communication between the CPU and I/O devices

c) To store and retrieve data from memory

d) To execute instructions fetched from the CPU

29. Which statement best describes the role of an IOP in a computer system?

a) It offloads I/O-related tasks from the CPU.


b) It increases the clock speed of the CPU.

c) It manages the execution of application software.

d) It provides additional cache memory for the CPU.

30. How does an IOP differ from a traditional CPU?

a) An IOP is faster than a CPU.

b) An IOP has a larger instruction set than a CPU.

c) An IOP is specialized for handling I/O operations.

d) An IOP has more cores than a CPU.

31. Which component typically coordinates communication between the CPU and an IOP?

a) Memory Management Unit (MMU)

b) Input/Output Controller (IOC)

c) Direct Memory Access Controller (DMAC)

d) Central Processing Unit (CPU)

32. What advantage does an IOP offer in a computer system?

a) Reduced CPU utilization for I/O operations

b) Increased clock speed of the CPU

c) Decreased overall system performance

d) Simplified memory management

33. What is serial communication?

a) Communication where multiple bits are transmitted simultaneously over separate channels

b) Communication where data is transmitted one bit at a time over a single channel

c) Communication where data is transmitted in parallel over a single channel

d) Communication where data is transmitted wirelessly without any physical connections

34. Which of the following is a commonly used protocol for serial communication?

a) Ethernet

b) USB

c) SPI (Serial Peripheral Interface)

d) HDMI

35. In serial communication, what is a baud rate?

a) The number of bits transmitted per second

b) The number of bytes transmitted per second


c) The rate at which the channel changes

d) The rate at which the voltage levels change

36. What is the advantage of serial communication over parallel communication?

a) Higher data transfer rates

b) Simpler implementation

c) Lower cost

d) Longer distance transmission

37. Which of the following devices commonly uses serial communication for data transfer?

a) Printer

b) RAM

c) CPU

d) GPU

Answers:

1. b) A technique for transferring data between I/O devices and memory without CPU intervention

2. c) It speeds up the data transfer between peripheral devices and memory.

3. c) By directly accessing memory without involving the CPU

4. d) Direct Memory Access Controller (DMAC)

5. b) DMA reduces CPU overhead.

Answers:

1. b) CPU

2. d) Graphics tablet

3. b) Printer

4. d) Connect to the internet

5. c) Hard disk drive

6. b) Speakers

7. c) Mouse

8. b) Scanner

9. c) USB flash drive

10. d) CD/DVD drive

11. b) It handles communication between the computer and external devices.

12.c) Asynchronous data transfer allows the ALU to operate independently of a system clock signal.
13. d) Memory-mapped I/O

14. a) Programmed I/O

15. b) Interrupt-driven I/O

16. c) Direct Memory Access (DMA)

17. c) Direct Memory Access (DMA)

18. b) To assign different priorities to interrupting devices

19. c) By assigning each interrupting device a unique priority level

20. b) Higher priority interrupts can interrupt lower priority interrupts.

21. b) The interrupt with the highest priority

22. a) Reduced interrupt latency

23. b) A technique for transferring data between I/O devices and memory without CPU intervention

24. c) It speeds up the data transfer between peripheral devices and memory.

25. c) By directly accessing memory without involving the CPU

26. d) Direct Memory Access Controller (DMAC)

27. b) DMA reduces CPU overhead

28. b) To manage communication between the CPU and I/O devices

29. a) It offloads I/O-related tasks from the CPU.

30. c) An IOP is specialized for handling I/O operations.

31. b) Input/Output Controller (IOC)

32. a) Reduced CPU utilization for I/O operations

33. b) Communication where data is transmitted one bit at a time over a single channel

34. c) SPI (Serial Peripheral Interface)

35. a) The number of bits transmitted per second

36. d) Longer distance transmission

37. a) Printer

You might also like