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 301–347 of 347.
301.Which method is used by computers to store negative whole numbers?
A.Floating point
B.Two's complement
C.Hexadecimal
D.ASCII
Show answerHide answer
Answer: B. Two's complement
It lets the same circuits add and subtract numbers.
302.Numbers with decimal points, like 3.14, are stored in computers in which form?
A.Floating point
B.Binary coded decimal
C.ASCII code
D.Two's complement
Show answerHide answer
Answer: A. Floating point
The format is defined by the IEEE 754 standard.
303.How many characters could the original ASCII code represent?
A.128
B.256
C.1,000
D.65,536
Show answerHide answer
Answer: A. 128
Original ASCII used 7 bits.
304.The high-speed slot used for graphics cards on modern motherboards is called what?
A.Serial ATA (SATA)
B.PCI Express (PCIe)
C.VGA
D.PS/2
Show answerHide answer
Answer: B. PCI Express (PCIe)
SSDs using NVMe also connect through PCIe lanes.
305.Which old connector, often purple and green, was used for keyboards and mice?
A.RJ45
B.USB
C.HDMI
D.PS/2
Show answerHide answer
Answer: D. PS/2
USB replaced it on most computers.
306.Which analogue video connector with 15 pins was used for older monitors?
A.DisplayPort
B.VGA
C.HDMI
D.USB-C
Show answerHide answer
Answer: B. VGA
VGA stands for Video Graphics Array.
307.Which connector is used for Ethernet network cables?
A.VGA
B.RJ45
C.RJ11
D.PS/2
Show answerHide answer
Answer: B. RJ45
RJ11 is the smaller connector used for telephone lines.
308.The fast connection standard Thunderbolt was developed by Intel together with which company?
A.Apple
B.Samsung
C.Dell
D.Microsoft
Show answerHide answer
Answer: A. Apple
Recent versions of Thunderbolt use the USB-C connector.
309.A metal part with fins that draws heat away from a processor is called what?
A.Motherboard
B.Power supply
C.Expansion card
D.Heat sink
Show answerHide answer
Answer: D. Heat sink
It is usually used with a fan.
310.The common shape of widescreen monitors is described by which aspect ratio?
A.1:1
B.16:9
C.3:2
D.4:3
Show answerHide answer
Answer: B. 16:9
Older square-looking monitors used 4:3.
311.Which type of touchscreen, used in smartphones, senses the electrical charge of a finger?
A.Infrared
B.Capacitive
C.Resistive
D.Magnetic
Show answerHide answer
Answer: B. Capacitive
Resistive screens respond to pressure and work with any object.
312.The brightness of a screen is measured in what?
A.Nits
B.Hertz
C.Pixels
D.Decibels
Show answerHide answer
Answer: A. Nits
One nit equals one candela per square metre.
313.Which input device has a ball on top that the user rolls with fingers?
A.Light pen
B.Joystick
C.Trackball
D.Touchpad
Show answerHide answer
Answer: C. Trackball
It works like an upside-down mouse.
314.Which old input device was pointed directly at the screen to select items?
A.Plotter
B.Scanner
C.Light pen
D.Trackball
Show answerHide answer
Answer: C. Light pen
It was used with old CRT monitors.
315.Which device turns paper documents and photos into digital images?
A.Plotter
B.Projector
C.Scanner
D.Printer
Show answerHide answer
Answer: C. Scanner
A flatbed scanner is the most common type.
316.Which output device prints raised dots for blind readers?
A.Dot-matrix printer
B.Plotter
C.Braille embosser
D.Thermal printer
Show answerHide answer
Answer: C. Braille embosser
Braille is read by touch.
317.Which device lets a computer send data over telephone lines by converting signals?
A.Modem
B.Switch
C.Router
D.Hub
Show answerHide answer
Answer: A. Modem
Modem is short for modulator-demodulator.
318.Which data structure works on the "last in, first out" (LIFO) rule?
A.Array
B.Queue
C.Stack
D.Tree
Show answerHide answer
Answer: C. Stack
Like a stack of plates, the last one added is the first taken off.
319.Which data structure works on the "first in, first out" (FIFO) rule?
A.Stack
B.Queue
C.Tree
D.Graph
Show answerHide answer
Answer: B. Queue
Like a line at a bank, the first to arrive is served first.
320.A collection of items of the same type stored one after another, reached by an index number, is called what?
A.An array
B.A pointer
C.A function
D.A loop
Show answerHide answer
Answer: A. An array
In most languages the first item has index 0.
321.Which search method works only on sorted data, by repeatedly halving the list?
A.Binary search
B.Random search
C.Bubble search
D.Linear search
Show answerHide answer
Answer: A. Binary search
It is much faster than checking items one by one.
322.Which simple sorting method repeatedly swaps neighbouring items that are in the wrong order?
A.Quick sort
B.Merge sort
C.Heap sort
D.Bubble sort
Show answerHide answer
Answer: D. Bubble sort
It is easy to understand but slow for large lists.
323."Big O" notation is used to describe what?
A.How an algorithm's running time grows with input size
B.The size of a computer's memory chips
C.The download speed of an internet connection
D.The resolution of a computer screen
Show answerHide answer
Answer: A. How an algorithm's running time grows with input size
For example, binary search is O(log n).
324.In programming, a named block of code that does a task and can be reused is called what?
A.A variable
B.A comment
C.A constant
D.A function
Show answerHide answer
Answer: D. A function
Functions are also called procedures or methods.
325.A value in a program that cannot change while it runs is called what?
A.A constant
B.A loop
C.An array
D.A variable
Show answerHide answer
Answer: A. A constant
For example, the value of pi.
326.A data type that can hold only true or false is called what?
A.String
B.Float
C.Boolean
D.Integer
Show answerHide answer
Answer: C. Boolean
It is named after the mathematician George Boole.
327.A sequence of characters such as a name or sentence is stored as which data type?
A.Boolean
B.Integer
C.Float
D.String
Show answerHide answer
Answer: D. String
Strings are usually written inside quotation marks.
328.Which program joins compiled pieces of code and libraries into one runnable program?
A.Linker
B.Loader
C.Debugger
D.Editor
Show answerHide answer
Answer: A. Linker
The loader then places the program in memory to run.
329.Which program places a program into memory so it can run?
A.Assembler
B.Compiler
C.Linker
D.Loader
Show answerHide answer
Answer: D. Loader
It is part of the operating system.
330.Programming that describes a program as steps and procedures, as in C, is called what?
A.Procedural programming
B.Logic programming
C.Object-oriented programming
D.Functional programming
Show answerHide answer
Answer: A. Procedural programming
Object-oriented languages group data and functions into objects.
331.In object-oriented programming, a blueprint from which objects are created is called what?
A.A class
B.A module
C.A loop
D.A pointer
Show answerHide answer
Answer: A. A class
An object is one instance of a class.
332.In object-oriented programming, hiding an object's data and allowing access only through its methods is called what?
A.Polymorphism
B.Inheritance
C.Encapsulation
D.Compilation
Show answerHide answer
Answer: C. Encapsulation
Inheritance lets a class take on features of another class.
333.In object-oriented programming, a class taking on the features of another class is called what?
A.Inheritance
B.Iteration
C.Encapsulation
D.Abstraction
Show answerHide answer
Answer: A. Inheritance
The new class is called a subclass or child class.
334.Which was the first computer virus for IBM PCs, written in Lahore in 1986?
A.ILOVEYOU
B.Brain
C.Stuxnet
D.Melissa
Show answerHide answer
Answer: B. Brain
It was written by the brothers Basit and Amjad Farooq Alvi.
335.A program that pretends to be useful but secretly harms the computer is called what?
A.Trojan horse
B.Compiler
C.Web cookie
D.Firewall
Show answerHide answer
Answer: A. Trojan horse
Unlike a virus, it does not copy itself.
336.Malware that locks a user's files and demands payment to unlock them is called what?
A.Spyware
B.Freeware
C.Ransomware
D.Adware
Show answerHide answer
Answer: C. Ransomware
The WannaCry attack of 2017 was ransomware.
337.Software that secretly collects information about a user is called what?
A.Shareware
B.Spyware
C.Firmware
D.Middleware
Show answerHide answer
Answer: B. Spyware
It may record passwords and browsing habits.
338.Malware that spreads by itself across networks without attaching to files is called what?
A.A trojan
B.A patch
C.A macro
D.A worm
Show answerHide answer
Answer: D. A worm
A virus needs a host file to spread; a worm does not.
339.Grace Hopper is best known for what?
A.Designing the first Apple computer and its software
B.Inventing the computer mouse
C.Founding the company Intel
D.Developing early compilers and helping create COBOL
Show answerHide answer
Answer: D. Developing early compilers and helping create COBOL
She was a US Navy rear admiral and computer scientist.
340.Which company introduced the first commercial microprocessor, the 4004, in 1971?
A.AMD
B.Intel
C.Motorola
D.IBM
Show answerHide answer
Answer: B. Intel
The 4004 was a 4-bit processor.
341.The speed of RAM is commonly given in what?
A.Dots per inch (DPI)
B.Pages per minute (PPM)
C.Revolutions per minute (RPM)
D.Megatransfers per second (MT/s)
Show answerHide answer
Answer: D. Megatransfers per second (MT/s)
For example, DDR5-6000 means 6,000 MT/s.
342.What is the main job of a computer's graphics card?
A.To connect the computer to the internet
B.To supply power to all the parts
C.To store files when power is off
D.To create the images shown on the screen
Show answerHide answer
Answer: D. To create the images shown on the screen
Powerful graphics cards are needed for games, video editing and AI.
343.The design in which a computer has separate memory for data and instructions is called what?
A.Harvard architecture
B.Client-server architecture
C.Cloud architecture
D.Von Neumann architecture
Show answerHide answer
Answer: A. Harvard architecture
Many microcontrollers use the Harvard design.
344.A computer's ability to run several programs at the same time is called what?
A.Compiling
B.Booting
C.Multitasking
D.Formatting
Show answerHide answer
Answer: C. Multitasking
The operating system switches quickly between programs.
345.Preparing a disk so it can store files, which erases its data, is called what?
A.Partitioning
B.Defragmenting
C.Formatting
D.Compressing
Show answerHide answer
Answer: C. Formatting
Formatting creates a new file system on the disk.
346.Dividing one physical hard disk into separate sections, such as C: and D:, is called what?
A.Caching
B.Partitioning
C.Mirroring
D.Formatting
Show answerHide answer
Answer: B. Partitioning
Each partition can act like a separate drive.
347.Rearranging scattered pieces of files on a hard disk to speed it up is called what?
A.Encryption
B.Disk compression
C.Defragmentation
D.Formatting
Show answerHide answer
Answer: C. Defragmentation
It is not needed for SSDs.
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.