Latest Update: UPSC CSE 2025 Notification Out!
Computer Knowledge Notes

Computer Basics Notes: Hardware and Software for Competitive

Komal Gupta

UPSC Exam Expert & Content Editor

Updated 17 Oct 2026

PDF Notes: Computer Basics Notes: Hardware and Software for Competitive

Premium PDF · one-time payment of ₹5 · instant access

Computer knowledge is a regular section in banking, SSC, railways, insurance, defence and many state-level examinations, and basic computer literacy is needed in every job today. The chapter on hardware and software forms the foundation: it explains the parts of a computer you can touch, the programs that run on it, how data is stored and how a computer works. This note covers the meaning of a computer, its generations, input and output devices, the CPU and memory, storage units and number systems, types of software, operating systems and programming languages, with tables and solved examples, in simple language.

What Is a Computer?

A computer is an electronic machine that accepts data as input, processes it according to instructions, stores it and gives the result as output. Its main features are speed, accuracy, diligence (it does not get tired), versatility and storage. The cycle is described as Input, Process, Output and Storage. Data are raw facts such as numbers and words, while information is data that is processed and has meaning. Charles Babbage is called the father of the computer for his Analytical Engine design, and Ada Lovelace is considered the first programmer. The first general-purpose electronic computer was ENIAC (1946).

Generations of Computers

GenerationPeriodTechnology
First1940 to 1956Vacuum tubes; machine language; large and costly
Second1956 to 1963Transistors; assembly language; smaller and faster
Third1964 to 1971Integrated Circuits (IC); high-level languages; operating systems
Fourth1971 to presentMicroprocessors (VLSI); personal computers; the Intel 4004 was the first microprocessor (1971)
FifthPresent and futureArtificial intelligence, parallel processing, ULSI, quantum research

Types of Computers

By size and power, computers are classified into supercomputers (the fastest, used for weather forecasting and scientific research; India's PARAM series was developed by C-DAC under Dr. Vijay Bhatkar), mainframes (used by banks and large organisations), minicomputers, and microcomputers (desktops, laptops, tablets and smartphones). By working principle, computers are analog (measure continuous data like temperature), digital (work on binary data) and hybrid (a mix, used in hospitals).

Hardware: The Physical Parts

Input Devices

Input devices send data to the computer: keyboard, mouse, scanner, microphone, webcam, joystick, touchpad, light pen, barcode reader, OMR (Optical Mark Reader, used in examination answer sheets), OCR (Optical Character Reader) and MICR (Magnetic Ink Character Reader, used for bank cheques).

Output Devices

Output devices show the result: monitor (soft copy), printer (hard copy), speakers, projector and plotter. Printers are of two kinds. Impact printers (dot matrix) strike the paper, and non-impact printers (inkjet and laser) do not. Laser printers are faster and give better quality. The monitor display is measured by resolution (pixels). Touchscreens act as both input and output devices.

The CPU: Brain of the Computer

The Central Processing Unit (CPU), also called the processor, has three parts: the Arithmetic Logic Unit (ALU) performs calculations and logical comparisons; the Control Unit (CU) directs and coordinates all operations; and registers are small, very fast storage locations inside the CPU. The speed of a CPU is measured in hertz (MHz or GHz). Modern processors have multiple cores, which means they can do several tasks together. The motherboard is the main circuit board that connects the CPU, memory and other parts. The power supply unit (SMPS) provides electricity to all components.

Memory and Storage

TypeFeatures
RegistersInside the CPU; fastest; very small
Cache memoryVery fast memory between CPU and RAM; stores frequently used data
RAM (Random Access Memory)Main memory; temporary and volatile (data lost when power is off); read and write
ROM (Read Only Memory)Permanent and non-volatile; stores the boot instructions (BIOS)
Hard disk (HDD) and SSDSecondary storage; permanent; SSD is faster, has no moving parts
Optical disks and flash drivesCD, DVD, Blu-ray, pen drives: portable storage

The memory hierarchy, from fastest and costliest to slowest and cheapest, is: registers, cache, RAM, secondary storage. The types of ROM include PROM (programmable once), EPROM (erasable by ultraviolet light) and EEPROM (erasable by electricity). The process of starting a computer is called booting; a cold boot starts from the power-off state, and a warm boot restarts it without turning the power off.

Units of Data and Number Systems

The smallest unit of data is a bit (binary digit, 0 or 1). A group of 8 bits is a byte. Then 1 KB (kilobyte) is 1,024 bytes, 1 MB is 1,024 KB, 1 GB is 1,024 MB, 1 TB is 1,024 GB and 1 PB is 1,024 TB. A nibble is 4 bits. Computers work in the binary system (base 2), but we use decimal (base 10). Other systems are octal (base 8) and hexadecimal (base 16, using digits 0 to 9 and letters A to F, where A is 10 and F is 15). Examples: binary 1010 equals decimal 10 (8 + 0 + 2 + 0); decimal 13 equals binary 1101 (8 + 4 + 0 + 1); hexadecimal 1F equals decimal 31 (1 × 16 + 15). The character codes ASCII (7 or 8 bits) and Unicode (supports many languages) represent letters and symbols.

Software: Instructions for the Computer

Software is a set of programs that tell the hardware what to do. System software manages the computer: operating systems, device drivers, language translators and utility programs such as antivirus, disk cleanup and backup tools. Application software helps users to do specific tasks: word processors, spreadsheets, presentation tools, browsers and games. Firmware is software permanently stored in hardware like ROM. Open source software (like Linux and LibreOffice) has public code that can be modified, while proprietary software (like Windows and MS Office) is owned by a company. Freeware is free to use, shareware is free for a trial period, and open-source software allows changes in the source code.

Operating System

The operating system (OS) is the main system software that manages hardware, memory, files and processes, and provides an interface for the user. Examples are Windows, Linux, macOS, Android and iOS. Functions include process management, memory management, file management, device management and security. A GUI (Graphical User Interface) uses icons and windows, while a CUI or command-line interface needs typed commands. Types of OS include single-user, multi-user, multitasking, real-time and network operating systems. The Linux kernel was created by Linus Torvalds in 1991.

Programming Languages and Translators

Programming languages are of two main levels. Low-level languages include machine language (binary) and assembly language, and are close to the hardware. High-level languages such as C, C++, Java, Python and COBOL are closer to human language. A compiler translates the entire program into machine code at once, an interpreter translates and runs it line by line, and an assembler converts assembly language to machine code. Python and JavaScript are generally interpreted, and C is compiled. A program error is called a bug, and the process of finding and fixing it is debugging.

Ports and Connectors

A port connects an external device to a computer. USB (Universal Serial Bus) is the most common; HDMI carries high-definition video and audio; VGA is an older video port; Ethernet is for wired networks; and an audio jack is for sound. Bluetooth and Wi-Fi are wireless means of connection.

Common Mistakes and Tips

Students confuse RAM with ROM, memory with storage, and data with information. Remember that RAM is temporary, ROM is permanent, and storage is the secondary device where files are kept. Also remember that a compiler checks the entire program, while an interpreter checks line by line. Learn the conversion tables and practice binary to decimal conversions. Use flashcards for full forms such as ALU, CPU, RAM, ROM, BIOS, USB, OMR, OCR, MICR, GUI and ASCII.

Practice Questions on Computer Basics

Check yourself with these quick questions. Which memory loses its data when power is switched off? RAM. Which unit performs arithmetic and logical operations? The ALU. How many bytes are there in 2 KB? 2,048 bytes. What is the binary value of decimal 5? 101. Which type of printer is a dot matrix printer? An impact printer. Which software is Linux? An open-source operating system. Which device is used to read bank cheques? MICR. Which memory is placed between the CPU and RAM to speed up processing? Cache memory. What do we call a program that translates high-level code into machine code all at once? A compiler. Write answers on a card, and review them the next day. Such short recall tests build lasting memory far better than reading the same page again and again.

Quick Revision

  • CPU: ALU + CU + registers; RAM is volatile; ROM is non-volatile; cache is faster than RAM.
  • 8 bits = 1 byte; 1 KB = 1,024 bytes; binary is base 2; hexadecimal is base 16.
  • System software manages the computer; application software performs user tasks.
  • Compiler translates the whole program; interpreter translates line by line.

Computer basics are easy marks once you learn the terms and their relations. Revise the tables, practise conversions, and connect each concept with a device you use daily, such as your phone or laptop.

Continue your preparation with these related notes from the same subject:

Frequently Asked Questions (FAQ)

What is a computer?

A computer is an electronic machine that accepts input, processes data according to instructions, stores it and produces output.

Who is known as the father of the computer?

Charles Babbage is known as the father of the computer because of his design of the Analytical Engine.

What is the difference between RAM and ROM?

RAM is temporary, volatile memory used while the computer is running, while ROM is permanent, non-volatile memory that stores the boot instructions.

What are the parts of the CPU?

The CPU has the Arithmetic Logic Unit (ALU), the Control Unit (CU) and the registers.

What is the difference between hardware and software?

Hardware is the physical parts of a computer you can touch, such as the keyboard and monitor, while software is the set of programs and instructions that run on it.

What is the difference between system software and application software?

System software, such as an operating system, manages the computer itself, whereas application software helps users to do tasks such as writing documents or browsing.

How many bits are in a byte?

There are 8 bits in one byte.

What is the first microprocessor?

The Intel 4004, introduced in 1971, is considered the first microprocessor.

What is the difference between a compiler and an interpreter?

A compiler converts the whole program into machine code before running it, while an interpreter translates and runs the program line by line.

What does OMR stand for?

OMR stands for Optical Mark Reader, a device used to read marked bubbles on answer sheets.

What is booting?

Booting is the process of starting a computer and loading the operating system into memory.

Which is the fastest memory in a computer?

Registers inside the CPU are the fastest memory, followed by cache memory.

About the Author

Komal Gupta

UPSC Exam Expert & Content Editor

Komal is a senior UPSC exam strategist with 8+ years of experience helping aspirants crack CSE, CDS and NDA exams. She writes in-depth notification breakdowns, exam pattern guides and preparation strategies.