CF Chap 1 Part 1
CF Chap 1 Part 1
1 Introduction to Computers
A computer is an electronic machine designed to take input, process it, and
deliver output as per predefined instructions. It is composed of hardware (the
physical components) and software (the programs or instructions). The com-
puter operates using the Input-Process-Output (IPO) cycle.
• Input: Data is fed into the computer via input devices like a keyboard or
mouse.
• Process: The data is processed by the Central Processing Unit (CPU)
according to specific instructions (software).
• Output: The processed information is delivered via output devices like
monitors or printers.
Additionally, a computer can store data for future use in Primary Memory
(RAM) for temporary use or Secondary Storage (Hard Disk) for long-term
storage.
2 Characteristics of Computers
Computers have several defining characteristics:
• Speed: Computers can process billions of instructions per second. Mod-
ern processors have speeds measured in gigahertz (GHz), meaning they
can handle several billion cycles per second.
• Accuracy: Computers follow precise instructions and produce accurate
results, with errors only occurring due to software bugs or human error.
• Automation: Once programmed, a computer can execute tasks automat-
ically without further human intervention, useful in industrial automation.
• Storage: Computers store vast amounts of data in primary storage
(RAM) for quick access and secondary storage (like hard drives) for
long-term data retention.
• Versatility: A single computer can perform a variety of tasks, such as
playing a movie, editing documents, or running a web server.
1
• Diligence: Computers can perform repetitive tasks without losing effi-
ciency or getting tired.
• Cost-effectiveness: The automation and speed of computers reduce
costs by lowering the time and manpower required to complete tasks.
• Input Unit: Devices like a keyboard, mouse, and scanner convert user
data and instructions into a format the computer can understand.
• Central Processing Unit (CPU): The brain of the computer, re-
sponsible for processing all instructions.
– Arithmetic Logic Unit (ALU): Performs arithmetic and logical
operations, e.g., addition, subtraction.
– Control Unit (CU): Directs data between the input unit, memory,
and output devices.
2
4 Types of Computers and Features
4.1 Mini Computers
• Size and Power: Larger than microcomputers but smaller than main-
frames. Used for tasks requiring moderate computing power.
• Examples: IBM AS/400.
3
5.3 High-Level Languages
• Closer to human languages, making them easier to write and understand.
• Example (Python): print("Hello, World!")
6 Data Organization
Data in computers is organized hierarchically:
• Bits: The smallest unit of data, represented as 0 or 1.
7 Types of Memory
7.1 Primary Memory
• RAM (Random Access Memory): Volatile memory used for tempo-
rary data storage.
• ROM (Read-Only Memory): Non-volatile memory storing essential
system instructions.
4
8.2 Output Devices
• Monitor (LCD/Plasma Display): Displays visual output.
• Printer: Produces hard copies of digital documents.
9 Number Systems
9.1 Binary System (Base-2)
• Uses only two digits, 0 and 1.
• Example: 10112 = 1110 .