Introduction to Information Technology · Unit 4 · 4 hrs
Input and Output Devices
Exam-focused notes for Input and Output Devices (Introduction to Information Technology, CSC114): what the TU syllabus asks and how it has actually been tested, with 8 solved past questions from this unit.
Input and Output Devices in short
A computer is only as useful as its ability to talk to the world around it: this chapter covers the input devices that bring data in, the output devices that present results back out, the ports that connect them, and how the I/O system works as a whole.
What this unit covers
- Introduction
- Input-Output Unit
- Input Devices
- Human Data Entry Devices
- Source Data Entry Devices
- Output Devices
- I/O Port
- Working of I/O System
I/O Port
2081 · 5 marks
What is I/O port? Explain working of I/O system. [5]
Show solved answerHide answer
I/O Port and Working of I/O System
I/O Port
An I/O port is a connection point (interface) through which I/O devices are attached to the computer. It acts as a communication channel between the computer and external devices. There are many standard ports available on the backside of a computer, such as:
- Serial port - transfers data one bit at a time
- USB port (Universal Serial Bus) - a common modern port for connecting various devices
- Parallel port - transfers multiple bits simultaneously
If one or more devices share a common set of wires for communication, that shared pathway is called a bus.
Working of I/O System
The working of the I/O system combines I/O hardware and I/O software. The I/O hardware includes ports, buses, and device controllers for different devices. The I/O software consists of device driver software.
The working of the I/O system involves the following components working together:
1. I/O Devices
- I/O devices are attached to the computer via ports.
- They serve as the source or destination of data (e.g., keyboard, mouse, printer, monitor).
2. Device Controller
- It operates on a bus, a port, or a device.
- It controls the signals on the wires of the port or bus.
- The controllers have one or more registers for data and control signals.
- It acts as an intermediary between the physical device and the rest of the system.
3. Device Driver
- It is a software through which the operating system communicates with device controllers.
- Each device has its own specific device driver.
- The device driver handles all the low-level details required for correct device operation.
4. Application Programs
- Application programs use an I/O device by issuing commands and exchanging data with the device driver.
- The device driver then carries out all the necessary operations to fulfill the request.
Flow of I/O Operation
Application Program
|
v
Device Driver (I/O Software)
|
v
Device Controller (I/O Hardware)
|
v
I/O Device (via Port / Bus)
In summary, when an application program needs to perform I/O, it communicates with the device driver, which in turn communicates with the device controller through the port or bus, and finally the actual I/O device performs the required operation.
Human Data Entry Devices
2080 · 5 marks
Define hard copy and soft copy devices. List any six human data entry devices. [5]
2075 · 5 marks
Explain the working mechanism of a keyboard. [5]
Show solved answerHide answer
Working Mechanism of a Keyboard
Introduction
A keyboard is one of the most common input devices of a computer system. It allows users to enter data such as characters, words, text, and commands into the computer. The keyboard has been a standard input device since the third generation of computers, where it replaced earlier input methods.
Working Mechanism of a Keyboard
The keyboard works through the following steps:
1. Physical Key Press
- Each key on the keyboard is placed over a switch (mechanical or membrane type).
- When a user presses a key, the switch beneath it is closed (activated), completing an electrical circuit at that specific location.
2. Key Matrix Scanning
- The keys are arranged in a grid pattern called a key matrix (rows and columns).
- A small dedicated microprocessor (keyboard controller) inside the keyboard continuously scans this matrix to detect which key has been pressed by identifying the exact row and column intersection.
3. Scancode Generation
- Once the pressed key is identified, the keyboard controller generates a unique code called a scancode corresponding to that specific key.
- This scancode is sent to the computer through the keyboard interface (USB, PS/2, etc.).
4. Role of the Device Driver
- The device driver acts as a translator between the keyboard hardware and the software/operating system.
- It receives the scancode and translates it into a recognizable character code (such as ASCII code) that the operating system can understand.
5. Role of the Operating System
- The Operating System (OS) receives the translated character code from the device driver. -, "the keyboard and the monitor were interfaced through the operating system."
- The OS passes the input to the currently active application program for further processing.
6. Display of Output
- The application program processes the received character and the result is displayed on the monitor, completing the input-output cycle.
Summary Flow
Key Pressed --> Switch Activated --> Key Matrix Scanned
--> Scancode Generated --> Device Driver Translates
--> OS Processes --> Application Receives Input
--> Output Displayed on Monitor
Conclusion
The keyboard works through a combination of hardware (switches, key matrix, keyboard controller), device drivers (translation layer), and the operating system (interface and coordination) to successfully convert a physical key press into meaningful input for the computer.
0 · 5 marks
Explain the working mechanism of a keyboard. [5]
Show solved answerHide answer
Working Mechanism of a Keyboard
Introduction
A keyboard is one of the most common input devices used with a computer. It allows users to enter data such as characters, words, text, and commands into the computer system. The keyboard acts as a hardware component through which the user communicates with the computer.
Working Mechanism of a Keyboard
The keyboard works through the following steps:
1. Key Press Detection
When a user presses a key on the keyboard, a physical switch beneath that key is activated. Each key on the keyboard corresponds to a unique position on a key matrix (a grid of electrical circuits).
2. Signal Generation
When a key is pressed, it completes an electrical circuit at that specific position in the matrix. This generates an electrical signal corresponding to the pressed key.
3. Keyboard Controller / Encoder
The keyboard contains a built-in microprocessor (keyboard controller/encoder) that continuously scans the key matrix. When it detects a completed circuit (key press), it identifies which key was pressed and converts it into a unique binary code called a scan code.
4. Data Transmission to CPU
The scan code is transmitted from the keyboard to the computer through a keyboard interface (such as USB or PS/2 port). The signal travels to the computer's motherboard.
5. Device Driver Processing
A device driver acts as a translator between the keyboard hardware and the operating system. It receives the scan code and translates it into a character or command that the operating system and application software can understand.
: "Device driver acts as translator between hardware and software."
6. Operating System and Display
The Operating System (OS) receives the translated input and passes it to the active application. The character or command is then processed and displayed on the monitor as output.
: "The keyboard and the monitor were interfaced through the operating system."
Summary Flow
Key Press
↓
Electrical Circuit Completed in Key Matrix
↓
Keyboard Controller generates Scan Code
↓
Scan Code sent to CPU via Interface (USB/PS2)
↓
Device Driver translates Scan Code
↓
Operating System processes the input
↓
Output displayed on Monitor
Conclusion
The keyboard works by converting physical key presses into electrical signals, which are then encoded, transmitted, and interpreted by the device driver and operating system to produce meaningful input for the computer. It is a fundamental hardware input device that has been used since the third generation of computers (1964-1971) and continues to be essential in the fourth generation and beyond.
Output Devices
2079 · 5 marks
Discuss different types of printers with examples. [5]
2074 · 5 marks
Mention the use of plotter. How quality of printer is determined? [5]
Source Data Entry Devices
2078 · 5 marks
Discuss about the source data entry device with example. [5]
Input Devices
Make Unit 4 stick
Practice CSC114 with flashcards & quizzes