Computer Fundamentals: Generations, Hardware, CPU and MCQs
A computer is an electronic machine that accepts data (input), processes it according to a stored set of instructions, stores it and gives results (output). Almost every computer operator, clerk and IT post test opens with short questions on this chapter: which device is an input device, what the ALU does, which generation used transistors, or what type of computer a bank mainframe is. The facts are simple, so learn them in groups and most questions can be answered in seconds.
Asked in: PPSC, FPSC, NTS, ETEA, KPPSC, SSC, IBPS and ICS/ECAT computer
What a computer does: the IPO cycle
Every computer follows the same basic cycle: Input β Process β Output, with Storage holding data and programs before, during and after processing. Raw facts given to the computer are called data; processed, meaningful results are called information.
The main hardware blocks are the input unit, the central processing unit (CPU), the memory or storage unit and the output unit. Programs and data are kept in memory and the CPU fetches instructions from there one after another. This stored-program idea is the basis of almost all modern computers.
A computer is fast, accurate and tireless, and can store huge amounts of data, but it has no intelligence or judgement of its own: it does exactly what its program tells it. The phrase GIGO (garbage in, garbage out) means wrong input produces wrong output.
- IPO cycle: Input β Process β Output (+ Storage)
- Data = raw facts; Information = processed, meaningful data
- GIGO: Garbage In, Garbage Out
- Charles Babbage is called the father of the computer (Analytical Engine)
Generations of computers
Computers are grouped into generations by the main electronic component they used. First-generation machines used vacuum tubes: they were huge, consumed a lot of power, produced great heat, failed often and were programmed in machine language.
The second generation replaced vacuum tubes with transistors, making computers smaller, faster, cooler and more reliable; assembly language and early high-level languages such as FORTRAN and COBOL came into use. The third generation used integrated circuits (ICs), which placed many transistors on one silicon chip; keyboards, monitors and operating systems that could run several programs became common.
The fourth generation is based on the microprocessor, an entire CPU on a single chip made with very large scale integration (VLSI). This made personal computers possible. The fifth generation is described in terms of artificial intelligence, parallel processing and natural-language interaction, and is still developing.
- 1st: vacuum tubes
- 2nd: transistors
- 3rd: integrated circuits (ICs)
- 4th: microprocessors (VLSI), personal computers
- 5th: artificial intelligence, parallel processing
Hardware and software
Hardware is the physical part of a computer that you can touch: the keyboard, monitor, motherboard, hard disk and so on. Software is the set of programs (instructions) that tells the hardware what to do. Neither is useful without the other.
System software runs and manages the computer itself. It includes the operating system (Windows, Linux, macOS, Android), device drivers, utility programs (antivirus, disk cleanup, file compression) and language translators. Application software helps the user do a particular task, for example MS Word, Excel, a web browser, a payroll package or a game.
Language translators convert programs into machine code. A compiler translates the whole program at once and reports errors after the full translation; an interpreter translates and executes one statement at a time; an assembler converts assembly language into machine language. Firmware is software permanently stored on a hardware chip, such as the BIOS or UEFI that starts a PC.
- Hardware = physical parts; Software = programs
- System software: OS, drivers, utilities, translators
- Application software: Word, Excel, browser, games
- Compiler: whole program at once; Interpreter: line by line
- Assembler: assembly language β machine language
Input and output devices
Input devices send data or commands into the computer: keyboard, mouse, scanner, microphone, webcam, joystick, light pen, touchpad, barcode reader and biometric (fingerprint) scanner. Special readers are common in exams: OMR (Optical Mark Recognition) reads filled bubbles on MCQ answer sheets, OCR (Optical Character Recognition) turns printed text into editable text, and MICR (Magnetic Ink Character Recognition) reads the magnetic-ink numbers printed at the bottom of bank cheques.
Output devices give results from the computer: monitor, printer, speakers, headphones, plotter and multimedia projector. Output on screen is called soft copy; printed output on paper is called hard copy. A plotter draws large, accurate drawings such as maps and engineering designs.
Printers are impact or non-impact. Impact printers strike an inked ribbon against the paper (dot-matrix, daisy-wheel and line printers) and can print carbon copies. Non-impact printers do not strike the paper (laser, inkjet and thermal printers) and are quieter and of better quality. A touchscreen works as both an input and an output device.
- OMR: MCQ answer sheets; OCR: printed text β editable text
- MICR: bank cheques
- Soft copy = screen; Hard copy = paper
- Impact: dot-matrix, daisy-wheel, line; Non-impact: laser, inkjet, thermal
- Touchscreen = input + output
The CPU and its parts
The central processing unit (CPU) is often called the brain of the computer. It has three main parts. The arithmetic logic unit (ALU) performs arithmetic (addition, subtraction and so on) and logical operations (comparisons such as equal to or greater than, and AND, OR, NOT).
The control unit (CU) directs the operation of the whole computer. It fetches instructions from memory, decodes them and sends control signals to the ALU, memory and input/output devices; it does not process data itself. Registers are very small, very fast storage locations inside the CPU that hold the data, addresses and instructions being worked on right now.
The CPU works in a repeating machine cycle: fetch an instruction, decode it, execute it and store the result. The speed at which it ticks is the clock speed, measured in hertz; modern processors run at several gigahertz (GHz). A multi-core processor has two or more processing cores on one chip and can work on several tasks at once. The CPU sits on the motherboard, the main circuit board that connects all components.
- CPU = ALU + CU + Registers
- ALU: arithmetic and logical operations
- CU: fetch, decode, control signals (no data processing)
- Machine cycle: fetch β decode β execute β store
- Clock speed in hertz (GHz today)
Types of computers
By the way they handle data, computers are analog, digital or hybrid. Analog computers work with continuously varying quantities such as temperature, pressure or voltage. Digital computers work with discrete values, ultimately the binary digits 0 and 1; almost all modern computers are digital. Hybrid computers combine both, for example in hospital monitoring equipment that measures analog signals and processes them digitally.
By size and power, computers are classed as supercomputers, mainframes, minicomputers and microcomputers. Supercomputers are the fastest and are used for weather forecasting, scientific simulation and nuclear research; their speed is measured in FLOPS (floating-point operations per second). Mainframes serve thousands of users at once and handle huge volumes of transactions in banks, airlines and large organisations.
Minicomputers (mid-range computers) are smaller multi-user machines for medium-sized organisations. Microcomputers are personal computers built around a microprocessor: desktops, laptops, tablets and smartphones. A server is a computer that provides services or resources to other computers (clients) over a network.
- Analog: continuous data; Digital: discrete (0 and 1); Hybrid: both
- Size order: Supercomputer, Mainframe, Minicomputer, Microcomputer
- Supercomputer speed: FLOPS; weather forecasting
- Mainframe: banks, airlines, many users at once
- PC, laptop, smartphone = microcomputers
Solved examples
- Which of these is an output device? (A) Scanner (B) Plotter (C) Joystick (D) Light pen
- An output device carries results out of the computer to the user.
- A scanner (A) captures an image of a page and sends it into the computer, a joystick (C) controls movement in games and simulators, and a light pen (D) is used to point at or draw on the screen. All three are input devices.
- A plotter takes data from the computer and draws it on large paper, so it is an output device.
Answer: (B) Plotter - Which part of the CPU compares two numbers to decide whether one is greater than the other? (A) Control unit (B) Arithmetic logic unit (C) Cache memory (D) Motherboard
- Comparison is a logical operation.
- The ALU carries out both arithmetic and logical operations, so comparisons are done there.
- The control unit (A) only directs and coordinates; cache (C) is fast memory; the motherboard (D) is the circuit board, not part of the CPU.
Answer: (B) Arithmetic logic unit - Which generation of computers first used transistors in place of vacuum tubes? (A) First (B) Second (C) Third (D) Fourth
- Match the component to the generation: vacuum tubes, transistors, ICs, microprocessors.
- The first generation (A) used vacuum tubes. Transistors replaced them in the second generation.
- The third generation (C) introduced integrated circuits and the fourth (D) introduced microprocessors.
Answer: (B) Second - A university checks the bubble answer sheets of an entry test by machine. Which technology is used? (A) OCR (B) MICR (C) OMR (D) Barcode reader
- Bubble sheets contain marks in fixed positions, not printed text.
- OMR (Optical Mark Recognition) detects whether each bubble is filled, so it is the right choice.
- OCR (A) reads printed characters as text, MICR (B) reads magnetic-ink numbers on cheques, and a barcode reader (D) reads the stripes of a product code.
Answer: (C) OMR - Classify each as system or application software: Windows 11, MS Excel, a printer driver, a web browser.
- System software runs and manages the computer; application software does a task for the user.
- Windows 11 is an operating system and a printer driver lets the OS control a device, so both are system software.
- MS Excel (spreadsheets) and a web browser (viewing websites) do jobs for the user, so both are application software.
Answer: System: Windows 11 and the printer driver; Application: MS Excel and the web browser - A program is translated completely into machine code, and only then is a list of all errors shown; after that, the translated program can run again and again without the translator. Which translator is this, and how does it differ from an interpreter?
- Translating the whole program in one go and producing a separate executable file is the work of a compiler.
- An interpreter instead translates and runs one statement at a time, stops at the first error it meets, and is needed every time the program runs.
- So compiled programs usually run faster, while interpreters make it easier to test small pieces of code.
Answer: A compiler; an interpreter translates and executes line by line and is needed on every run
Exam shortcuts
- Remember the generations by their parts in order: tube, transistor, IC, microprocessor, AI.
- If a device feeds data into the computer it is input; if it gives results to the user it is output. Touchscreens do both.
- Bank cheque means MICR; bubble sheet means OMR; scanning text into Word means OCR.
- ALU computes and compares; CU controls and coordinates; registers hold what the CPU is using right now.
- Weather forecasting and scientific simulation point to a supercomputer; bank and airline transaction processing points to a mainframe.
Common mistakes
- Saying the control unit performs calculations. It only directs other parts; the ALU does arithmetic and logic.
- Calling a scanner an output device because it produces an image. The image goes into the computer, so the scanner is an input device.
- Listing a compiler or an antivirus as application software. Translators and utilities are system software.
- Thinking laser printers are impact printers. Laser, inkjet and thermal printers are non-impact; dot-matrix is the common impact printer.
- Mixing up OCR and OMR. OCR recognises characters; OMR only detects marks.
Practice MCQs
- Which of the following is an input device?
A) Loudspeaker
B) Plotter
C) Microphone
D) Monitor
Answer: C) Microphone β A microphone captures sound and sends it into the computer, so it is an input device. A loudspeaker produces sound, a plotter draws output on large paper and a monitor shows output on screen; all three carry results out of the computer and are output devices. - Printed output on paper is called:
A) Hard copy
B) Soft copy
C) Firmware
D) Bitmap image
Answer: A) Hard copy β Output printed on paper is hard copy. Soft copy is output shown on the screen or kept as a file. Firmware is software stored on a hardware chip, and a bitmap image is a type of picture file made of pixels; neither describes printed output. - Which part of the CPU fetches and decodes instructions and directs the other units?
A) Arithmetic logic unit
B) Hard disk
C) Graphics card
D) Control unit
Answer: D) Control unit β The control unit fetches each instruction, decodes it and sends control signals to coordinate the computer. The arithmetic logic unit performs calculations and comparisons but does not direct other units. A hard disk is secondary storage and a graphics card produces display output; neither is part of the CPU. - Integrated circuits (ICs) were the main component of which generation of computers?
A) First generation
B) Third generation
C) Second generation
D) Fifth generation
Answer: B) Third generation β The third generation was built with integrated circuits, which placed many transistors on one chip. The first generation used vacuum tubes and the second used transistors. The fifth generation is described by artificial intelligence and parallel processing, not by the introduction of ICs. - Banks use which technology to read the account and cheque numbers printed at the bottom of cheques?
A) OMR
B) MICR
C) OCR
D) RFID
Answer: B) MICR β MICR (Magnetic Ink Character Recognition) reads characters printed in magnetic ink, which is how cheque numbers are processed. OMR detects filled marks such as MCQ bubbles, OCR converts ordinary printed text into editable text, and RFID reads radio tags; none of these is the standard cheque technology. - Which of these is an example of system software?
A) Device driver
B) Spreadsheet program
C) Video game
D) Word processor
Answer: A) Device driver β A device driver lets the operating system control a piece of hardware, so it is system software. A spreadsheet, a video game and a word processor each perform a task for the user, which makes them application software. - Which type of printer works by striking an inked ribbon against the paper?
A) Laser printer
B) Inkjet printer
C) Dot-matrix printer
D) Thermal printer
Answer: C) Dot-matrix printer β A dot-matrix printer is an impact printer: tiny pins strike an inked ribbon to form characters. A laser printer fuses toner using a laser and heat, an inkjet sprays droplets of ink and a thermal printer uses heat on special paper; all three are non-impact printers. - Which device works as both an input and an output device?
A) Keyboard
B) Touchscreen
C) Scanner
D) Multimedia projector
Answer: B) Touchscreen β A touchscreen displays output and also accepts input when it is touched, so it is both. A keyboard and a scanner are input-only devices, and a multimedia projector only displays output. - The microprocessor, which put an entire CPU on a single chip, marks which generation?
A) Second generation
B) Fourth generation
C) Third generation
D) First generation
Answer: B) Fourth generation β The fourth generation is based on the microprocessor built with VLSI technology, which made personal computers possible. The second generation used transistors, the third used integrated circuits that did not yet hold a whole CPU, and the first used vacuum tubes. - Which type of computer is mainly used for weather forecasting and large scientific simulations?
A) Microcomputer
B) Minicomputer
C) Laptop
D) Supercomputer
Answer: D) Supercomputer β Supercomputers are the fastest computers and are designed for huge calculations such as weather models and scientific simulations. Microcomputers and laptops are personal machines, and minicomputers serve medium-sized organisations; none has the needed computing power. - A computer that works with continuously varying physical quantities such as temperature or voltage is called:
A) Analog computer
B) Digital computer
C) Mainframe computer
D) Personal computer
Answer: A) Analog computer β An analog computer processes continuous quantities directly. A digital computer works with discrete values (binary 0 and 1). Mainframe and personal computer are size classes, not descriptions of how data is represented, and both are digital. - Which statement about a compiler is correct?
A) It translates the whole program before execution
B) It translates and runs the program one line at a time
C) It converts assembly language into machine language
D) It removes viruses from program files
Answer: A) It translates the whole program before execution β A compiler translates the complete program into machine code and produces a file that can run without the compiler. Translating and running one line at a time describes an interpreter, converting assembly language into machine language is the job of an assembler, and removing viruses is the work of antivirus software. - Which unit is used to measure the speed of a supercomputer?
A) DPI
B) PPM
C) FLOPS
D) BPS
Answer: C) FLOPS β Supercomputer performance is measured in FLOPS, floating-point operations per second. DPI (dots per inch) measures printer or scanner resolution, PPM (pages per minute) measures printer speed, and BPS (bits per second) measures data transfer rate. - In the machine cycle of a CPU, which step comes immediately after an instruction is fetched from memory?
A) Execute
B) Store
C) Input
D) Decode
Answer: D) Decode β The order is fetch, decode, execute and store, so decoding follows fetching: the control unit works out what the instruction means. Execution can only happen after decoding, storing the result comes last, and input is a stage of the IPO cycle rather than a step of the machine cycle. - A large bank needs a single computer that can process millions of transactions for thousands of users at the same time. Which is the most suitable?
A) Supercomputer
B) Single-user microcomputer
C) Mainframe computer
D) Analog computer
Answer: C) Mainframe computer β Mainframes are designed for very high volumes of transactions and many simultaneous users, which is why banks and airlines use them. Supercomputers are built for raw calculation speed in scientific work rather than transaction processing, a single-user microcomputer is built for one person, and an analog computer handles continuous quantities, not bank records.
Questions
What are the three main parts of a CPU?
The arithmetic logic unit (ALU), which performs calculations and comparisons; the control unit (CU), which fetches, decodes and directs; and registers, which are tiny, fast storage locations inside the CPU.
What is the difference between hardware and software?
Hardware is the physical equipment you can touch, such as the keyboard and hard disk. Software is the set of programs that tell the hardware what to do, such as Windows or MS Word.
Which component defines each generation of computers?
Vacuum tubes (first), transistors (second), integrated circuits (third), microprocessors with VLSI (fourth), and artificial intelligence with parallel processing (fifth).
How many fundamentals questions come in computer operator tests?
Computer operator, clerk and assistant tests in PPSC, FPSC, NTS and KPPSC usually include several direct questions on devices, CPU parts, generations and software types, and these facts also support questions in later chapters.