Computer Basics
CPU, input and output devices, memory, storage and ports. Open a topic to read its notes and practise it, then take the mixed tests: each question shows whether you were right and why, as soon as you answer.
Topics: notes and practice
What a computer is10 questions
A computer is an electronic machine that accepts data and instructions, processes the data as the instructions direct, stores it when needed and gives out the result. The word comes from "compute", to calculate. A computer cannot decide anything on its own. It follows a program, a set of instructions written by a person.
Data and information. Data is raw facts and figures, such as the marks 56, 71 and 59. Information is data after processing, such as the average 62. A computer turns data into information.
Basic parts
Every computer system has four units:
- Input unit: brings data and instructions in (keyboard, mouse, scanner).
- CPU (Central Processing Unit): the brain of the computer. Its ALU does arithmetic and logical work, and its CU (Control Unit) directs every other part.
- Memory unit: holds data and instructions while they are in use.
- Output unit: presents the results (monitor, printer).
The physical parts together are hardware, and the programs that run on them are software. The main circuit board that links all the parts is the motherboard.
The IPO cycle
All computer work follows one cycle: Input, Process, Output. Data goes in through an input device, the CPU processes it, and the result comes out through an output device. Storage supports the cycle by keeping data and results for later use.
Take a clerk who types marks, has the computer total them and prints a result sheet. Typing is input, totalling is processing and the printed sheet is output.
Advantages of computers
| Feature | Meaning |
|---|---|
| Speed | Works in microseconds and nanoseconds (a nanosecond is one billionth of a second) |
| Accuracy | Gives correct results when the data and program are correct |
| Diligence | Repeats a task for hours without tiring |
| Storage | Keeps huge amounts of data and finds it quickly |
| Versatility | Does many kinds of work: typing, calculating, music, video |
| Automation | Runs a whole job by itself once the program starts |
Limits. A computer has no intelligence of its own and cannot think or decide without instructions. It follows the rule GIGO, garbage in, garbage out: wrong input gives wrong output.
History. Charles Babbage is called the father of the computer, because he designed the Analytical Engine. Ada Lovelace is regarded as the first programmer.
Problem 1. In an ATM withdrawal, the card details and amount are entered, the machine checks the balance, and cash and a slip come out. Which stage is the balance check? (a) Input (b) Processing (c) Output (d) Storage
Answer: (b) Processing
Card details and the amount are input, and the cash and slip are output. Comparing the amount with the balance is work done on the data, which is processing.
Practise this topic10 questions, each with its solution
Types of computers10 questions
By size and power
| Type | Features and uses |
|---|---|
| Supercomputer | Fastest and most powerful. Used for weather forecasting, space and nuclear research. Speed is measured in FLOPS (floating point operations per second). India's PARAM series was built by C-DAC. |
| Mainframe | Large machine serving hundreds of users at once. Used by banks and railways for huge numbers of transactions. |
| Minicomputer | Smaller than a mainframe. Shared by a group of users in a small firm or laboratory. |
| Microcomputer | The personal computer, built around a microprocessor. Desktops, laptops and tablets belong here. |
The order of size and power, largest first, is supercomputer, mainframe, minicomputer, microcomputer.
Indian supercomputers. PARAM 8000 (1991) was the first PARAM machine, built by C-DAC under Vijay Bhatkar. Pratyush (at IITM, Pune) and Mihir (at NCMRWF, Noida), both commissioned in 2018, are used for weather and climate forecasting. Param Siddhi-AI (2020, C-DAC) is built for artificial intelligence work. Rankings such as the TOP500 list change every year, so learn the machines and their makers, not the ranks.
By the way they work
- Analogue computer: works on continuous physical quantities such as temperature, voltage and speed. Its readings are approximate. Examples: a needle speedometer, a thermometer, a voltmeter.
- Digital computer: works on discrete data in binary form, 0s and 1s. Examples: a desktop, a laptop, an electronic calculator. Digital computers are the common type today.
- Hybrid computer: combines both. It senses a continuous quantity (analogue part) and processes and shows it as numbers (digital part). Examples: a petrol pump, an ICU patient monitor.
Generations
| Generation | Period | Main technology | Example |
|---|---|---|---|
| First | 1940 to 1956 | Vacuum tubes | ENIAC, EDVAC, UNIVAC |
| Second | 1956 to 1963 | Transistors | IBM 1401 |
| Third | 1964 to 1971 | Integrated circuits (ICs) | IBM 360 |
| Fourth | 1971 onwards | Microprocessors (VLSI) | IBM PC, Apple II |
| Fifth | Present and beyond | Artificial intelligence, parallel processing | Expert systems, robots |
Each generation was smaller, faster and cheaper than the one before. ENIAC, an early electronic computer of 1946, belongs to the first generation. The microprocessor was introduced with the Intel 4004 in 1971.
Before the computer. The abacus is the oldest counting device. Blaise Pascal built the Pascaline, a gear-driven adding machine, in 1642. Jacquard's loom (1801) used punched cards to control a weaving pattern. Charles Babbage designed the Difference Engine for tables of numbers and then the Analytical Engine, which had a store and a mill (memory and processor) and took its program from punched cards.
Matching examples. Mainframe: banking and railway booking. Supercomputer: weather forecasts. Analogue: speedometer. Hybrid: petrol pump. Microcomputer: laptop.
Problem 2. The second generation of computers replaced vacuum tubes with which component? (a) Integrated circuits (b) Microprocessors (c) Transistors (d) Optical discs
Answer: (c) Transistors
First generation machines used vacuum tubes. Transistors replaced them in the second generation, integrated circuits came in the third and microprocessors in the fourth. Optical discs are storage, not a generation's technology.
Practise this topic10 questions, each with its solution
Input devices10 questions
An input device sends data and instructions to the computer.
Keyboard
The common letter layout is QWERTY, named after the first six letters of the top letter row. A standard keyboard has about 101 to 104 keys in these groups:
- Alphanumeric keys: letters, digits and symbols.
- Function keys F1 to F12: shortcuts for tasks in a program.
- Cursor keys (arrows), Home, End, Page Up and Page Down.
- Numeric keypad on the right.
- Toggle keys such as Caps Lock and Num Lock switch a setting on and off with each press. Ctrl, Alt and Shift are used while held down.
Pointing devices
- Mouse: moves a pointer on the screen. A mechanical mouse uses a rolling ball. An optical mouse uses light and has no ball. Douglas Engelbart invented the mouse.
- Trackball: the ball is rolled by the fingers while the device stays still.
- Touchpad: a touch-sensitive pad on a laptop.
- Light pen and stylus: touched to the screen to point or draw.
- Joystick: used mostly in games.
- Touch screen: both input and output.
Scanners and reading devices
A scanner copies a page or picture into the computer as an image. Types are flatbed (page lies on glass), handheld (moved by the user), sheet-fed (the sheet is pulled through) and drum.
| Device | Reads |
|---|---|
| OMR (Optical Mark Reader) | Pencil marks, such as bubbles on answer sheets |
| OCR (Optical Character Recognition) | Printed or typed characters, turned into editable text |
| MICR (Magnetic Ink Character Recognition) | Magnetic-ink digits on bank cheques |
| Barcode reader | Bars on a product label |
Biometric devices
A biometric device identifies a person by a body feature. Examples: fingerprint scanner, iris scanner (the coloured ring of the eye), retina scanner, face recognition, voice recognition. They are used for attendance, locks and Aadhaar enrolment, which takes fingerprints, iris scans and a photograph.
Other input devices
Microphone (sound), webcam and digital camera (pictures and video), and the digitiser or graphics tablet, which turns drawings and handwriting into digital form.
Problem 3. A librarian passes a hand-held device over the black and white stripes on a book jacket to issue the book. The device is (a) OMR (b) barcode reader (c) MICR reader (d) light pen
Answer: (b) barcode reader
Stripes of different widths on a label are a barcode, read by a barcode reader. OMR reads marked bubbles, MICR reads magnetic ink digits on cheques and a light pen is touched to a screen.
Practise this topic10 questions, each with its solution
Output devices10 questions
Output devices bring results out of the computer. Output on paper is hard copy. Output on a screen is soft copy.
Monitors
- CRT (Cathode Ray Tube): an electron beam strikes a phosphor-coated screen. Bulky and heavy.
- LCD (Liquid Crystal Display): crystals lit from behind. Thin and light. LED screens use light-emitting diodes for the backlight, and OLED screens make their own light.
- A pixel is the smallest dot of the picture. More pixels give a sharper image. The resolution is the pixels across × the pixels down. Screen size is measured diagonally, in inches.
- The VGA port carries analogue video and HDMI carries digital video and sound.
Other output devices
Speaker, headphones, projector and plotter. A plotter draws large, exact drawings such as maps and engineering plans using pens. A touch screen is both input and output. A modem is a communication device, not a plain output device: it converts digital signals to signals that travel on a telephone line, and back, so it works as both input and output.
Printers
| Impact printers | Non-impact printers |
|---|---|
| Strike the paper through an inked ribbon | Do not strike the paper |
| Dot matrix, line, daisy wheel | Inkjet, laser, thermal |
| Generally noisy | Generally quiet |
| Can make carbon copies | Cannot make carbon copies |
- Dot matrix: forms characters from pins. Used for bills in triplicate.
- Daisy wheel: presses fully formed characters, like a typewriter.
- Line printer: prints a whole line at a time. It is an impact printer, yet very fast, and it is faster than most inkjets.
- Inkjet: sprays tiny drops of liquid ink. Prints in colour.
- Laser: a laser beam, a drum and toner powder print a page at a time. Fast and sharp.
- Thermal: heats special paper. Used for receipts and ATM slips.
Print quality is measured in dpi (dots per inch). Speed is measured in pages per minute (laser), characters per second (dot matrix) or lines per minute (line printer).
Problem 4. An image shown on a monitor and a printed railway ticket are examples of which two kinds of output, in that order? (a) hard copy, soft copy (b) soft copy, hard copy (c) soft copy, soft copy (d) hard copy, hard copy
Answer: (b) soft copy, hard copy
Output on a screen is soft copy. Output on paper is hard copy. The monitor image comes first and the printed ticket second.
Problem 5. A screen has 1,280 pixels across and 720 pixels down. Its total pixels are (a) 921,600 (b) 92,160 (c) 2,000 (d) 9,216,000
Answer: (a) 921,600
Total pixels = pixels across × pixels down = 1,280 × 720. First 1,280 × 700 = 896,000, then 1,280 × 20 = 25,600, and the sum is 921,600.
Practise this topic10 questions, each with its solution
CPU, memory and storage10 questions
Parts of the CPU
- ALU: arithmetic (add, subtract) and logic (greater than, equal to).
- CU: fetches each instruction from memory, decodes it and directs the other parts. It does no calculation itself.
- Registers: tiny, very fast storage spots inside the CPU.
| Register | What it holds |
|---|---|
| Program Counter (PC) | Address of the next instruction |
| Instruction Register (IR) | The instruction being executed |
| Accumulator | Intermediate results of the ALU |
| MAR | Address of the memory location to read or write |
| MDR | Data just read from, or about to be written to, memory |
The instruction cycle
The CPU runs every program by repeating the fetch, decode, execute, store cycle.
- Fetch: the PC gives the address of the next instruction. The instruction is brought from memory into the IR.
- Decode: the CU reads the instruction in the IR and works out what it asks for.
- Execute: the ALU carries out the operation.
- Store: the result is kept in a register or written back to memory.
The stored-program concept (Von Neumann architecture) says that the program and its data are both kept in the same memory, and the CPU fetches the instructions from there one by one.
Clock speed is measured in MHz (millions of cycles a second) and GHz (billions). Word length is the number of bits the CPU handles at one time, such as 32 or 64. Machine language, made of 0s and 1s, is the only language a computer runs directly. Booting is starting the computer: a cold boot starts from switched off, and a warm boot restarts without cutting the power. In a boot the BIOS first runs POST (power-on self test), which checks the RAM, keyboard and other basic parts, and then loads the operating system into RAM.
Primary and secondary memory
Primary memory is used directly by the CPU. Secondary memory keeps data for the long term.
- RAM: holds programs and data in use. It is volatile, so it loses its contents when power goes off. SRAM is faster and used for cache. DRAM is cheaper, must be refreshed constantly and is used for main memory.
- ROM: non-volatile. It stores the start-up (BIOS) program.
| ROM type | Feature |
|---|---|
| PROM | Programmed once by the user |
| EPROM | Erased by ultraviolet light and rewritten |
| EEPROM | Erased electrically without removing the chip |
- Cache sits between the CPU and RAM and keeps frequently used data. L1 cache is inside the CPU and is the fastest and smallest. L2 and then L3 come after it, each larger and slower than the one before.
- Virtual memory uses part of the hard disk as an extension of RAM.
Speed, fastest first: registers, cache, RAM, secondary storage. The faster the memory, the smaller and costlier it is.
Secondary storage
- Hard disk: magnetic platters read by a moving head.
- SSD, pen drive, memory card: flash memory with no moving parts, faster and tougher. Flash memory is a kind of EEPROM, erased and rewritten electrically in blocks.
- Optical discs: CD (about 700 MB), DVD (4.7 GB for one layer) and Blu-ray (25 GB for one layer) are read by a laser. Blu-ray uses a blue-violet laser. A CD-ROM can be read but not written by the user.
- Magnetic tape: sequential access, used for backup. Disks give direct access.
Units of memory
A bit is a 0 or 1. 4 bits make a nibble and 8 bits make a byte, which holds one character.
| Unit | Size |
|---|---|
| 1 KB | 1,024 bytes |
| 1 MB | 1,024 KB |
| 1 GB | 1,024 MB |
| 1 TB | 1,024 GB |
| 1 PB | 1,024 TB |
Beyond PB come EB, ZB and YB, each 1,024 times the one before. To go down a unit multiply by 1,024, and to go up divide. To get bits, multiply bytes by 8. A memory with n address lines has 2ⁿ locations, so 10 lines give 1,024.
Problem 6. A memory has 2,048 locations. How many address lines does it need? (a) 10 (b) 11 (c) 12 (d) 2,048
Answer: (b) 11
n address lines give 2ⁿ locations. 2¹⁰ = 1,024 is too few, and 2¹¹ = 2,048. So 11 lines are needed.
Problem 7. Which pair is correctly matched? (a) Cache: stores the BIOS (b) EPROM: erased by ultraviolet light (c) DRAM: needs no refreshing (d) Plotter: input device
Answer: (b) EPROM: erased by ultraviolet light
The BIOS is stored in ROM, not cache. DRAM must be refreshed constantly. A plotter is an output device.
Practise this topic10 questions, each with its solution
Hardware and software10 questions
Hardware
Hardware is every part of a computer that can be touched. Parts inside the cabinet are internal, such as the motherboard, and devices outside it, such as the monitor, are peripherals.
The motherboard is the main board. It carries:
- the CPU socket, where the processor sits, with a heat sink and fan to cool it;
- memory slots for the RAM modules;
- expansion slots for extra cards such as a graphics or sound card;
- the ROM chip holding the BIOS, and the CMOS battery, a small cell that keeps the date, time and settings when the power is off;
- the chipset and the ports.
The SMPS (Switched Mode Power Supply) converts mains AC into the low DC voltages that the parts need.
| Port | Use |
|---|---|
| USB (Universal Serial Bus) | Pen drives, keyboards, mice, phones, printers |
| PS/2 | Older keyboards and mice |
| Serial and parallel | Older modems and printers |
| VGA | Analogue video to a monitor |
| HDMI | Digital video and audio together |
| Ethernet (RJ-45) | Network cable |
| Audio jack | Speakers and microphones |
System software
System software runs the computer itself.
- Operating system (OS): manages the memory, files, processes and devices and gives the user an interface. Examples: Windows, Linux, Unix, macOS, Android, iOS.
- Memory management: gives each program its share of RAM.
- File management: creates, names, stores and protects files and folders.
- Process management: decides which program gets the CPU and when.
- Device management: controls input, output and storage devices through their drivers.
- Types of OS:
- Batch: similar jobs are collected and run together, with no user contact while they run.
- Multiprogramming: several programs sit in memory and the CPU switches to another when one waits for input or output.
- Time-sharing: the CPU gives each user a short time slice in turn, so many users feel they have the machine to themselves.
- Real-time: answers within a fixed time limit, as in missile control and air traffic systems.
- Multi-user: lets many users work on one computer at the same time (Unix, Linux).
- Device drivers: let the OS work with a device such as a printer.
- Utility programs: antivirus, disk defragmenter, backup, file compression.
- Language translators: a compiler translates the whole program at once, an interpreter translates and runs it line by line, and an assembler converts assembly language to machine code.
- Firmware: permanent software stored in a chip, such as the BIOS.
Application software
Application software does a user's own work. General-purpose packages include MS Word, MS Excel, a web browser and Tally. Custom-made (tailor-made) software is written for one customer's exact needs, such as a school's fee program.
By licence, freeware is free to use, shareware is free for a trial period, open source software has its code open for change (Linux), and proprietary software belongs to its maker.
Problem 8. Which port carries digital video and audio together through one cable? (a) VGA (b) HDMI (c) PS/2 (d) Serial
Answer: (b) HDMI
HDMI carries digital video and sound. VGA carries analogue video only, PS/2 connects older keyboards and mice, and the serial port served older modems and printers.
Problem 9. Which of these is utility software? (a) Disk defragmenter (b) Spreadsheet package (c) Presentation package (d) Accounting package
Answer: (a) Disk defragmenter
Utility programs maintain and tune the computer, and a defragmenter is one. The other three serve the user's own work, so they are application software.
Practise this topic10 questions, each with its solution
Number systems and codes10 questions
Number systems
| System | Base | Digits |
|---|---|---|
| Binary | 2 | 0, 1 |
| Octal | 8 | 0 to 7 |
| Decimal | 10 | 0 to 9 |
| Hexadecimal | 16 | 0 to 9 and A to F (A = 10 up to F = 15) |
Binary to decimal. Multiply each digit by its place value (1, 2, 4, 8, 16 from the right) and add. 1101 = 8 + 4 + 0 + 1 = 13.
Decimal to binary. Divide by 2 again and again and write the remainders. Read them from the last to the first. For 37: 37 ÷ 2 gives remainder 1, then 18 gives 0, 9 gives 1, 4 gives 0, 2 gives 0, 1 gives 1. Read upward: 100101. Check: 32 + 4 + 1 = 37.
Binary and octal. Group the bits in threes from the right. 110 101 gives 6 and 5, so 110101 = 65 in octal. Reverse the steps to go from octal to binary.
Binary and hexadecimal. Group the bits in fours from the right. 1011 0111 gives B and 7, so 10110111 = B7 in hexadecimal. Hexadecimal to decimal: 3C = 3 × 16 + 12 = 60.
Decimal to octal or hexadecimal. Divide again and again by 8 or by 16 and read the remainders from the last to the first. For 255 ÷ 16: quotient 15, remainder 15, and 15 ÷ 16 gives quotient 0, remainder 15. Both remainders are 15, which is F, so 255 = FF in hexadecimal. For 64 ÷ 8: remainders 0, 0, 1 read upward give 100 in octal.
Octal to decimal. Multiply each digit by powers of 8 (1, 8, 64 from the right) and add. 17 in octal = 1 × 8 + 7 = 15.
Binary addition. 0 + 0 = 0, 0 + 1 = 1, 1 + 1 = 10 (write 0, carry 1) and 1 + 1 + 1 = 11. Example: 1011 + 110 = 10001, which is 11 + 6 = 17 in decimal. The 1's complement of a binary number flips each bit (1010 becomes 0101), and the 2's complement adds 1 to it (0110).
Binary subtraction by 2's complement. To find 1101 − 0101 (13 − 5), take the 2's complement of 0101: the 1's complement is 1010, and adding 1 gives 1011. Add it to 1101 to get 11000. Drop the extra carry bit on the left and the answer is 1000, which is 8. The 1's complement is also used to show negative numbers and to subtract. When the final carry is dropped the result is positive.
Character codes
A code gives each letter, digit and symbol a number made of bits.
| Code | Feature |
|---|---|
| BCD | 4 bits for each decimal digit. 59 is 0101 1001. |
| ASCII | Standard 7-bit code with 128 characters. Extended ASCII uses 8 bits and has 256. |
| EBCDIC | 8-bit code from IBM with 256 characters |
| Unicode | Covers almost all the world's languages and symbols. Its first 128 codes are the same as ASCII. |
In ASCII, A is 65, B is 66, and so on up to Z at 90. Small a is 97, so a small letter is its capital + 32. The digit 0 is 48.
Problem 10. Which of these is a valid octal number? (a) 1289 (b) 7461 (c) 5682 (d) 3908
Answer: (b) 7461
Octal uses only the digits 0 to 7. The numbers 1289, 5682 and 3908 each contain an 8 or a 9. Only 7461 has digits from 0 to 7 alone.
Problem 11. The decimal number 59 is written in BCD as (a) 111011 (b) 0101 1001 (c) 0101 0101 (d) 1001 0101
Answer: (b) 0101 1001
BCD codes each decimal digit separately in 4 bits. 5 is 0101 and 9 is 1001, so 59 is 0101 1001. Plain binary of 59 is 111011, and the option 1001 0101 reverses the digits.
Practise this topic10 questions, each with its solution
Quick revision
| Topic | Remember |
|---|---|
| IPO cycle | Input, Process, Output |
| CPU | ALU calculates, CU directs, registers store |
| Fastest memory | Registers, then cache, then RAM |
| RAM | Volatile. ROM is non-volatile |
| OMR, OCR, MICR | Marks, characters, magnetic ink on cheques |
| Printers | Impact: dot matrix, line, daisy wheel. Non-impact: inkjet, laser, thermal |
| Units | 1 byte = 8 bits, 1 KB = 1,024 bytes, steps of 1,024 |
| Bases | Binary 2, octal 8, decimal 10, hexadecimal 16 |
| Codes | ASCII 7-bit (128), EBCDIC 8-bit, Unicode all languages |
| Software | System: OS, driver, utility, translator. Application: Word, Excel, Tally |
Common mistakes
- Giving the CU the calculation work. The ALU calculates. The CU only fetches, decodes and directs.
- Calling ROM volatile or RAM permanent. RAM loses its contents when power goes off, and ROM keeps them.
- Mixing up OMR, OCR and MICR. OMR reads marks, OCR reads characters, and MICR reads magnetic ink on cheques.
- Treating a laser or inkjet printer as an impact printer. Only dot matrix, line and daisy wheel printers strike the paper.
- Using 1,000 instead of 1,024. In exam questions on memory, each step between units is 1,024. Forgetting to multiply bytes by 8 gives bytes where the question asks for bits.
- Reading the remainders of a binary conversion from the top. Write them from the last remainder to the first.
By ICE Academy · Updated 4 Dec 2026 · Found a mistake? Write to info@iceacademy.in
Mixed tests
All 145 questions of this chapter on paper, with the answer key and solutions. Free: the first download asks for your name, phone number and email.