CSS NEXUS

Computer & IT · Topic 1

Hardware and software

Parts of a computer, memory, storage units and kinds of software.

Computer & IT

Learn first

Explanation

Learn the parts of a computer, the difference between kinds of memory, and the kinds of software.

History and parts

  • Charles Babbage is called the father of the computer (he designed the Analytical Engine); Ada Lovelace is called the first programmer.
  • The CPU is the "brain" of the computer; it has the arithmetic logic unit (ALU), the control unit (CU) and registers.
  • Input devices: keyboard, mouse, scanner, microphone. Output devices: monitor, printer, speakers.
  • Generations of computers: vacuum tubes, transistors, integrated circuits, microprocessors, and artificial intelligence.

Memory and storage

  • RAM is volatile: it loses its contents when the power goes off. ROM is non-volatile and holds start-up instructions.
  • Cache memory is the fastest memory and sits close to the CPU.
  • 1 byte = 8 bits; 1 kilobyte = 1,024 bytes; then megabyte, gigabyte, terabyte.
  • Hard disks (HDD) store data on spinning platters; solid-state drives (SSD) use flash memory and are faster.

Software

  • System software runs the computer (operating systems, drivers); application software does the user's tasks (word processors, browsers).
  • Firmware, such as the BIOS, is software stored permanently on hardware.
  • A compiler translates a whole program at once; an interpreter translates and runs it line by line.
  • Open-source software lets anyone read and change its source code.

Practise

Hardware and software MCQs

Try each question, then open the answer. MCQs 1–50 of 270.

1.Who is known as the father of the computer?

  1. A. John von Neumann
  2. B. Blaise Pascal
  3. C. Alan Turing
  4. D. Charles Babbage
Show answer

Answer: D. Charles Babbage

Babbage designed the Difference Engine and the Analytical Engine.

2.Which machine designed by Charles Babbage is seen as the first general-purpose computer design?

  1. A. Abacus
  2. B. Pascaline
  3. C. Analytical Engine
  4. D. Difference Engine
Show answer

Answer: C. Analytical Engine

The Analytical Engine (1837) had a mill, a store and punched-card input.

3.Who is regarded as the first computer programmer?

  1. A. Charles Babbage
  2. B. Ada Lovelace
  3. C. Alan Turing
  4. D. Grace Hopper
Show answer

Answer: B. Ada Lovelace

Ada Lovelace wrote an algorithm for the Analytical Engine in 1843.

4.Which was the first electronic general-purpose computer?

  1. A. IBM 701
  2. B. EDVAC
  3. C. ENIAC
  4. D. UNIVAC
Show answer

Answer: C. ENIAC

ENIAC was completed in the United States in 1945.

5.Which was the first commercial computer produced in the United States?

  1. A. UNIVAC I
  2. B. ENIAC
  3. C. Apple I
  4. D. IBM PC
Show answer

Answer: A. UNIVAC I

UNIVAC I was delivered in 1951.

6.The earliest known counting device is what?

  1. A. Napier's bones
  2. B. Abacus
  3. C. Slide rule
  4. D. Pascaline
Show answer

Answer: B. Abacus

The abacus has been used for thousands of years.

7.Who invented the first mechanical adding machine, the Pascaline?

  1. A. Blaise Pascal
  2. B. Herman Hollerith
  3. C. Gottfried Leibniz
  4. D. Charles Babbage
Show answer

Answer: A. Blaise Pascal

Pascal built it in 1642.

8.Who invented punched-card tabulating machines for the 1890 US census?

  1. A. Joseph Jacquard
  2. B. John Napier
  3. C. Herman Hollerith
  4. D. Charles Babbage
Show answer

Answer: C. Herman Hollerith

Hollerith's company later became part of IBM.

9.First-generation computers used which technology?

  1. A. Integrated circuits
  2. B. Transistors
  3. C. Vacuum tubes
  4. D. Microprocessors
Show answer

Answer: C. Vacuum tubes

First-generation computers (1940s–1950s) used vacuum tubes.

10.Second-generation computers used which technology?

  1. A. Integrated circuits
  2. B. Vacuum tubes
  3. C. Microprocessors
  4. D. Transistors
Show answer

Answer: D. Transistors

Transistors replaced vacuum tubes in the late 1950s.

11.Third-generation computers used which technology?

  1. A. Transistors
  2. B. Vacuum tubes
  3. C. Integrated circuits
  4. D. Artificial intelligence
Show answer

Answer: C. Integrated circuits

Integrated circuits came into use in the 1960s.

12.Fourth-generation computers are based on which technology?

  1. A. Microprocessors
  2. B. Relays
  3. C. Transistors only
  4. D. Vacuum tubes
Show answer

Answer: A. Microprocessors

The microprocessor put a whole CPU on one chip.

13.Fifth-generation computers are associated with what?

  1. A. Artificial intelligence
  2. B. Vacuum tubes
  3. C. Magnetic drums
  4. D. Punched cards
Show answer

Answer: A. Artificial intelligence

Fifth-generation computing aims at AI and natural language.

14.Who invented the transistor?

  1. A. Charles Babbage
  2. B. Bardeen, Brattain and Shockley
  3. C. Jack Kilby and Robert Noyce
  4. D. Thomas Edison
Show answer

Answer: B. Bardeen, Brattain and Shockley

They invented it at Bell Labs in 1947.

15.Who invented the integrated circuit?

  1. A. John Bardeen
  2. B. Jack Kilby (with Robert Noyce)
  3. C. Bill Gates
  4. D. Ted Hoff
Show answer

Answer: B. Jack Kilby (with Robert Noyce)

Kilby and Noyce independently invented the IC in 1958–59.

16.Which was the first commercial microprocessor?

  1. A. Motorola 68000
  2. B. Intel 8086
  3. C. Intel 4004
  4. D. Zilog Z80
Show answer

Answer: C. Intel 4004

Intel released the 4004 in 1971.

17.What is the full form of CPU?

  1. A. Central Program Unit
  2. B. Central Processing Unit
  3. C. Computer Processing Unit
  4. D. Control Processing Unit
Show answer

Answer: B. Central Processing Unit

The CPU carries out instructions.

18.The CPU is often called what?

  1. A. The memory of the computer
  2. B. The brain of the computer
  3. C. The eye of the computer
  4. D. The heart of the computer
Show answer

Answer: B. The brain of the computer

It processes all instructions and data.

19.What are the main parts of the CPU?

  1. A. Hard disk, SSD and USB
  2. B. Keyboard, mouse and monitor
  3. C. ALU, control unit and registers
  4. D. RAM, ROM and cache
Show answer

Answer: C. ALU, control unit and registers

The ALU calculates, the control unit directs and registers hold data.

20.What does ALU stand for?

  1. A. Arithmetic Length Unit
  2. B. Array Logic Unit
  3. C. Automatic Logic Unit
  4. D. Arithmetic Logic Unit
Show answer

Answer: D. Arithmetic Logic Unit

The ALU does arithmetic and logical operations.

21.The speed of a CPU is measured in what?

  1. A. Hertz (GHz)
  2. B. Bytes (GB)
  3. C. Pixels
  4. D. Bits per second
Show answer

Answer: A. Hertz (GHz)

Clock speed is given in gigahertz.

22.A processor with several processing units on one chip is called what?

  1. A. Co-processor
  2. B. Mainframe
  3. C. Multi-core processor
  4. D. Microcontroller
Show answer

Answer: C. Multi-core processor

Multi-core CPUs run several tasks at once.

23.Which processor is designed especially for graphics?

  1. A. CPU
  2. B. ALU
  3. C. GPU
  4. D. NPU only
Show answer

Answer: C. GPU

Graphics Processing Units also power AI training.

24.The main circuit board of a computer is called what?

  1. A. Breadboard
  2. B. Circuit card
  3. C. Motherboard
  4. D. Daughterboard
Show answer

Answer: C. Motherboard

All components connect through the motherboard.

25.What does RAM stand for?

  1. A. Random Allocation Memory
  2. B. Random Access Memory
  3. C. Read Access Memory
  4. D. Rapid Action Memory
Show answer

Answer: B. Random Access Memory

RAM is the computer's working memory.

26.What does ROM stand for?

  1. A. Read Only Memory
  2. B. Run Only Memory
  3. C. Rewritable Optical Memory
  4. D. Random Only Memory
Show answer

Answer: A. Read Only Memory

ROM holds permanent instructions.

27.Which memory loses its contents when the power is switched off?

  1. A. Flash memory
  2. B. RAM
  3. C. Hard disk
  4. D. ROM
Show answer

Answer: B. RAM

RAM is volatile.

28.Which memory is non-volatile and holds start-up instructions?

  1. A. RAM
  2. B. Cache
  3. C. ROM
  4. D. Registers
Show answer

Answer: C. ROM

ROM keeps its contents without power.

29.Which is the fastest memory in a computer?

  1. A. Registers
  2. B. Cache
  3. C. Hard disk
  4. D. RAM
Show answer

Answer: A. Registers

Registers inside the CPU are fastest; cache comes next.

30.Cache memory is placed between which two components?

  1. A. CPU and main memory (RAM)
  2. B. Keyboard and CPU
  3. C. Monitor and GPU
  4. D. RAM and hard disk
Show answer

Answer: A. CPU and main memory (RAM)

Cache keeps frequently used data close to the CPU.

31.Virtual memory uses which device to extend RAM?

  1. A. Registers
  2. B. ROM
  3. C. Cache
  4. D. Hard disk or SSD
Show answer

Answer: D. Hard disk or SSD

The operating system uses storage space as extra memory.

32.What does EPROM stand for?

  1. A. Electrical Program ROM
  2. B. Extended Programmable ROM
  3. C. Erasable Programmable Read Only Memory
  4. D. Erasable Portable ROM
Show answer

Answer: C. Erasable Programmable Read Only Memory

EPROM can be erased with ultraviolet light and reprogrammed.

33.Which kind of ROM can be erased electrically and is used in flash drives?

  1. A. Mask ROM
  2. B. EPROM
  3. C. PROM
  4. D. EEPROM (flash)
Show answer

Answer: D. EEPROM (flash)

Flash memory is a type of EEPROM.

34.What is the smallest unit of data in a computer?

  1. A. Word
  2. B. Nibble
  3. C. Byte
  4. D. Bit
Show answer

Answer: D. Bit

A bit is a single 0 or 1.

35.How many bits make one byte?

  1. A. 8
  2. B. 16
  3. C. 2
  4. D. 4
Show answer

Answer: A. 8

One byte is eight bits.

36.Four bits are called what?

  1. A. Byte
  2. B. Nibble
  3. C. Word
  4. D. Kilobit
Show answer

Answer: B. Nibble

A nibble is half a byte.

37.One kilobyte is equal to how many bytes?

  1. A. 2,048
  2. B. 1,000
  3. C. 512
  4. D. 1,024
Show answer

Answer: D. 1,024

In binary terms, 1 KB = 2¹⁰ = 1,024 bytes.

38.Which is the largest of these units?

  1. A. Kilobyte
  2. B. Megabyte
  3. C. Gigabyte
  4. D. Terabyte
Show answer

Answer: D. Terabyte

KB < MB < GB < TB.

39.One gigabyte is equal to how many megabytes?

  1. A. 100
  2. B. 512
  3. C. 1,024
  4. D. 1,000,000
Show answer

Answer: C. 1,024

1 GB = 1,024 MB.

40.Which unit comes after the terabyte?

  1. A. Zettabyte
  2. B. Gigabyte
  3. C. Petabyte
  4. D. Exabyte
Show answer

Answer: C. Petabyte

After TB come PB, EB, ZB and YB.

41.Computers store data using which number system?

  1. A. Octal
  2. B. Hexadecimal
  3. C. Binary
  4. D. Decimal
Show answer

Answer: C. Binary

Binary uses only 0 and 1.

42.The binary number 1010 equals which decimal number?

  1. A. 10
  2. B. 8
  3. C. 5
  4. D. 12
Show answer

Answer: A. 10

1×8 + 0×4 + 1×2 + 0×1 = 10.

43.The hexadecimal number system has a base of what?

  1. A. 16
  2. B. 2
  3. C. 10
  4. D. 8
Show answer

Answer: A. 16

Hexadecimal uses 0–9 and A–F.

44.The octal number system has a base of what?

  1. A. 16
  2. B. 8
  3. C. 10
  4. D. 2
Show answer

Answer: B. 8

Octal uses the digits 0 to 7.

45.ASCII is a code for representing what?

  1. A. Programs as machine code
  2. B. Images as pixels
  3. C. Characters as numbers
  4. D. Sound as waves
Show answer

Answer: C. Characters as numbers

ASCII stands for American Standard Code for Information Interchange.

46.Which character-encoding standard covers most of the world's writing systems, including Urdu?

  1. A. BCD
  2. B. ASCII
  3. C. EBCDIC
  4. D. Unicode
Show answer

Answer: D. Unicode

Unicode includes Arabic and Urdu script.

47.Which of these is an input device?

  1. A. Printer
  2. B. Keyboard
  3. C. Speaker
  4. D. Monitor
Show answer

Answer: B. Keyboard

Input devices send data into the computer.

48.Which of these is an output device?

  1. A. Scanner
  2. B. Microphone
  3. C. Mouse
  4. D. Printer
Show answer

Answer: D. Printer

Output devices present results.

49.Which device works as both input and output?

  1. A. Touchscreen
  2. B. Scanner
  3. C. Printer
  4. D. Keyboard
Show answer

Answer: A. Touchscreen

A touchscreen shows output and takes touch input.

50.Who invented the computer mouse?

  1. A. Douglas Engelbart
  2. B. Bill Gates
  3. C. Tim Berners-Lee
  4. D. Steve Jobs
Show answer

Answer: A. Douglas Engelbart

Engelbart demonstrated the mouse in 1968.

Test yourself

Free timed quizzes

Each quiz has 50 MCQs from this topic and 50 minutes. A correct answer earns 1 mark and each wrong answer takes off 0.25; skipped questions score nothing. No password needed.

Next topicOperating systems

Tags

  • #Hardware and software
  • #Hardware and software MCQs
  • #Hardware and software MCQs with answers
  • #Hardware and software quiz
  • #Computer & IT MCQs
  • #Computer MCQs
  • #Computer Science MCQs
  • #IT MCQs
  • #Basic Computer MCQs
  • #MS Office MCQs
  • #Computer Shortcut Keys
  • #Networking MCQs
  • #Computer MCQs for PPSC
  • #Computer MCQs for FPSC
  • #General Knowledge
  • #GK MCQs
  • #GK for PPSC
  • #GK for FPSC
  • #GK for PMS
  • #PMS 2027
  • #CSS 2027
  • #PPSC
  • #FPSC
  • #NTS
  • #One Paper MCQs
  • #Competitive Exams Pakistan
  • #CSS Nexus