Input and Output Programming
Input and Output Programming
10. The process wherein the processor constantly checks the status flags
is called as _____a) Polling b) Inspection c) Reviewing d) Echoing
11. Input or output devices that are connected to computer are called _
A. Input/Output Subsystem B. Peripheral Devices
C. Interfaces D. Interrupt
14. The method which offers higher speeds of I/O transfers is _________
A. Interrupts B. Memory mapping C. Program-controlled I/O D. DMA
16. The ________ circuit is basically used to extend the processor BUS to
connect devices.
A. Router B. Router C. Bridge D. None of the above
18. The SCSI BUS is used to connect the video devices to a processor by
providing a ______________.
A. Single Bus B. USB C. SCSI D. parallel BUS.
ANSWERS:
1. Answer: a
Explanation: Its the different modes of accessing the i/o devices.
2. Answer: c
Explanation: BUS is a collection of address, control and data lines used to connect
the various devices of the computer.
3. Answer: b
Explanation: This type of access is called as I/O mapped devices.
4. Answer: c
Explanation: Since the I/O mapped devices have a separate address space the
address lines are limited by the amount of the space allocated.
5. Answer: d
Explanation: It is necessary for the processor to send a signal intimating the request
as either read or write.
6. Answer: b
Explanation: The processor operating is much faster than that of the I/O devices, so
by using the status flags the processor need not wait till the I/O operation is done. It
can continue with its work until the status flag is set.
7. Answer: a
Explanation: In this method, the processor constantly checks the status flags, and
when it finds that the flag is set it performs the appropriate operation.
8. Answer: c
Explanation: This is a method of accessing the I/O devices which gives the
complete power to the devices, enabling them to intimate the processor when
they’re ready for transfer.
9. Answer: d
Explanation: In DMA the I/O devices are directly allowed to interact with the
memory without the intervention of the processor and the transfers take place in the
form of blocks increasing the speed of operation.
10. Answer: a
Explanation: None.
11. Ans : B
Explanation: Input or output devices that are connected to computer are called
peripheral devices.
12. Ans : B
Explanation: Generally three types of modes which are : Programmed I/O, Interrupt
Initiated I/O, Direct Memory Access
13. Ans : A
Explanation: Allows user input, from the outside world to the computer. Example:
Keyboard, Mouse etc.
14. Ans : D
Explanation: In DMA the I/O devices are directly allowed to interact with the memory
without the intervention of the processor and the transfers take place in the form of
blocks increasing the speed of operation.
15. Ans : B
Explanation: Its the different modes of accessing the i/o devices.
16. Ans : C
Explanation: The bridge circuit is basically used to extend the processor BUS to
connect devices.
17. Ans : A
Explanation: Industry Standard Architecture is an architectural standard developed by
IBM for its PC's.
18. Ans : D
Explanation: The SCSI BUS is used to connect the video devices to a processor by
providing a parallel BUS.
19. Ans : D
Explanation: all of the above statement is true regarding DMA.
20. Ans : B
Explanation: The registers of the controller are 32 bit.
1. Which of the following is an example of an input device?
a) Monitor b) Printer c) Keyboard d) Speaker
ANSWER
1. c) Keyboard
Explanation: Keyboards are used to input data into a computer.
2. c) To display or present processed information to the user
Explanation: Output devices like monitors and printers show the results of
computer processing.
3. c) Projector
Explanation: Projectors are used to display output, not to input data.
4. a) Input/Output
Explanation: I/O refers to the process of getting data into and out of a
computer system.
5. b) They represent a sequence of data
Explanation: Streams in Java provide a way to read or write data
sequentially.
6. b) It is used to write data to an output stream
Explanation: In C++, << is the insertion operator used for output
operations.
7. c) getchar()
Explanation: getchar() is a function specifically designed to read a single
character from standard input.
8. b) I/O devices are treated as memory locations
Explanation: In memory-mapped I/O, the CPU interacts with I/O devices
as if they were memory locations.
9. b) ofstream
Explanation: ofstream is the class specifically designed for writing data to
files in C++.
10. c) To allow the user to control the computer and input data
Explanation: Input devices facilitate user interaction with the computer by
enabling data entry.