4 Input And Output Devices

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.

Input and Output Devices: notes

Introduction

A computer interacts with its external environment through I/O devices attached to it. An input device provides data to the computer, while an output device presents the result to the user after the input has been processed. I/O devices attached externally to the computer are called peripheral devices, and different kinds of input and output devices exist for different requirements. Devices such as a keyboard, mouse, scanner or camera are examples of input devices, while a monitor, printer or speaker are examples of output devices.

Input-Output Unit

The input unit gets data and programs from various input devices, such as the keyboard, mouse, trackball and joystick, or from scanned images, voice recordings and video recordings, and transforms this input into a computer acceptable form for processing. The output unit receives processed data from the computer and sends it to output devices such as the screen, printer or speaker, transforming it into a human readable form. Some devices, such as a disk drive, floppy disk drive, USB drive or CD/DVD drive, serve both the input and output unit.

Input Devices

Input devices fall into two broad kinds: human data entry devices, where data is entered manually by typing or pointing (keyboard, mouse, trackball, joystick, digitizing tablet, light pen, touch screen), and source data entry devices, which capture data directly from its source without typing (speech recognition, digital camera, scanner, OCR, OMR, MICR, barcode reader).

Human Data Entry Devices

The keyboard is the most common input device, used for entering text; the modern QWERTY keyboard typically has 101 keys arranged into typing keys, numeric keys, function keys, control keys and special purpose keys. When a key is pressed, the keyboard controller stores the code of that key and informs the computer software, which matches the code to a key and displays it.

Pointing devices let the user provide input by moving a device to a location on the monitor. The mouse is the most common pointing device: it is a hand held device with one to three buttons and a scroll wheel, used to position the cursor and select objects, where a left click selects an item, a right click opens a menu, and a double click (pressing the left button twice quickly) opens a program. The trackball is a variant of the mouse commonly built into laptops, where instead of moving the whole device the user rotates a stationary ball with a finger, and the sensor detects the ball's movement. The joystick is a stick attached to a flexible rubber sheath inside a plastic cover, commonly used for video games such as racing or flying games, containing a circuit that detects the stick's movement and sends this information to the computer. The digitizing tablet is used to input drawings and sketches, for example in Computer Aided Design (CAD) for building or map design; it consists of an electronic tablet and a pen, with a circuit in the tablet detecting the pen's movement, converting it to digital signals and sending them to the computer.

Pick devices provide input by pointing directly at a location on the monitor rather than typing. The light pen is a pen-like device used to select objects and draw directly on the screen; it contains a photocell that responds to the light from the screen at the pen's location, and this response is transmitted to the computer, which identifies the position being pointed at. The touch screen accepts input when a fingertip touches the screen, commonly used in mobile phones and Automated Teller Machines (ATMs); it consists of a clear glass panel with sensors using an infrared beam, and when a fingertip interrupts the beam, the location is recorded and sent to the computer.

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 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.

Open this answer on its own page →

Human Data Entry Devices

2080 · 5 marks

Define hard copy and soft copy devices. List any six human data entry devices. [5]

A hard copy device is an output device that produces output in a physical, tangible form that can be touched and carried. The output is printed or plotted on paper or similar material and exists permanently even when the computer is turned off. Examples: Printer, Plotter A soft copy device is an ...

Open this answer on its own page →

2075 · 5 marks

Explain the working mechanism of a keyboard. [5]

Show solved 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.

Open this answer on its own page →

0 · 5 marks

Explain the working mechanism of a keyboard. [5]

Show solved 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.

Open this answer on its own page →

Output Devices

2079 · 5 marks

Discuss different types of printers with examples. [5]

A printer is an output device that produces a hard copy (printed output) of documents, images, or other data from a computer onto paper or other media. Printers are broadly classified into two main categories: --- Impact printers work by physically striking an ink ribbon against the paper to form...

Open this answer on its own page →

2074 · 5 marks

Mention the use of plotter. How quality of printer is determined? [5]

A plotter is a hard copy output device used to produce high-quality drawings, diagrams, and graphical output on paper or other surfaces. The main uses of a plotter are: 1. Engineering Drawings: Plotters are widely used by engineers to produce precise technical drawings, blueprints, and CAD (Compu...

Open this answer on its own page →

Source Data Entry Devices

2078 · 5 marks

Discuss about the source data entry device with example. [5]

Source data entry devices are input devices that are used for audio input, video input, and to enter data from a source document directly into the computer. Unlike traditional input devices (such as keyboard or mouse), source data entry devices do not require data to be typed-in, keyed-in, or poi...

Open this answer on its own page →

Input Devices

2077 · 5 marks

Explain any two input devices in detail. [5]

An input device is hardware that allows a user to enter data, instructions, or commands into a computer for processing. Input devices are mainly of two kinds: - Human data entry devices (keyboard, mouse, joystick, light pen, touch screen, etc.) - Source data entry devices (scanner, OCR, OMR, MICR...

Open this answer on its own page →