
MCQ
What does a programmer use a variable for?
A. Storing data
B. Displaying images
C. Connecting to the internet
D. Turning on a computer
A
Explanation: Variables store information that can change during a program.

MCQ
Which structure repeats a set of instructions?
A. Loop
B. Variable
C. Function
D. Array
A
Explanation: Loops repeat instructions multiple times.

MCQ
What does "HTTP" relate to?
A. Web pages
B. Keyboards
C. Batteries
D. Printers
A
Explanation: HTTP is used for transferring web pages.

MCQ
Which component is often called the "brain" of the computer?
A. RAM
B. CPU
C. SSD
D. GPU
B
Explanation: The CPU performs calculations and processes instructions.

MCQ
AI stands for:
A. Automated Information
B. Artificial Intelligence
C. Advanced Internet
D. Artificial Interface
B
Explanation: AI enables computers to perform tasks requiring intelligence.

True/False
Variable names can usually contain numbers.
True
Explanation: Most programming languages allow numbers in variable names, but not as the first character.

True/False
An IF statement is used for decision-making.
True
Explanation: IF statements allow programs to choose actions.

True/False
A strong password should contain a mix of letters, numbers, and symbols.
True
Explanation: Complex passwords are harder to guess.
True/False
RAM stores data permanently even when the computer is turned off.
False
Explanation: RAM is temporary memory.

True/False
AI systems can make mistakes.
True
Explanation: AI depends on data and algorithms.

Fill in the Blank (MCQ)
A set of instructions written for a computer is called a:
A. Browser
B. Program
C. Folder
D. Network
B
Explanation: A program is a collection of instructions a computer follows.

Fill in the Blank (MCQ)
A ______ is a reusable block of code.
A. Variable
B. Browser
C. Function
D. Monitor
C
Explanation: Functions help organize and reuse code.

MCQ
Phishing attacks usually try to:
A. Upgrade software
B. Steal sensitive information
C. Speed up the internet
D. Improve passwords
B
Explanation: Phishing tricks users into revealing information.

Fill in the Blank (MCQ)
A device used to store files permanently is:
A. SSD
B. Monitor
C. Keyboard
D. Speaker
A
Explanation: SSDs provide permanent storage.

Fill in the Blank (MCQ)
Machine learning is a branch of:
A. Networking
B. Robotics
C. Artificial Intelligence
D. Hardware Design
C
Explanation: Machine learning allows systems to learn from data.

MCQ
What value does the expression 5 + 3 × 2 produce?
A. 16
B. 11
C. 13
D. 10
B
Explanation: Multiplication happens before addition (3 × 2 = 6; 5 + 6 = 11).

True/False
A loop can run forever if not programmed correctly.
True
Explanation: This is called an infinite loop.

Fill in the Blank (MCQ)
A malicious program designed to spread itself is called a:
A. Firewall
B. Cookie
C. Virus
D. Browser
C
Explanation: Viruses can replicate and infect systems.

MCQ
Which component mainly handles graphics?
A. CPU
B. RAM
C. GPU
D. Motherboard
C
Explanation: GPUs process visual information.

True/False
AI always understands information exactly like humans.
False
Explanation: AI processes information differently.

True/False
Computers understand programming languages exactly as humans write them.
False
Explanation: Code must be translated into machine language.
MCQ
Which logical operator requires BOTH conditions to be true?
A. OR
B. NOT
C. XOR
D. AND
D
Explanation: Both conditions must be true.

True/False
HTTPS is generally more secure than HTTP.
True
Explanation: HTTPS encrypts data.

True/False
The motherboard connects major computer components.
True
Explanation: It allows communication between parts.

MCQ
Self-driving cars rely heavily on:
A. Sensors and AI
B. Paint colour
C. Fuel quality only
D. Tire size
A
Explanation: They use sensors and algorithms to navigate.

MCQ
Which of the following is NOT a programming language?
A. Python
B. Java
C. HTML
D. C++
C
Explanation: HTML is a markup language, not a programming language.

MCQ
Which operator usually checks if two values are equal?
A. =
B. ==
C. +=
D. !=
B
Explanation: == is commonly used for comparison

MCQ
Which is the safest password?
A. password123
B. qwerty
C. 12345678
D. M@r5!T9#Lp2
D
Explanation: Long, random passwords are strongest.

MCQ
Which device is an input device?
A. Printer
B. Monitor
C. Speaker
D. Keyboard
D
Explanation: Keyboards send data into a computer.

MCQ
Which concern is often discussed regarding AI?
A. Screen brightness
B. Battery colour
C. Job displacement
D. Keyboard size
C
Explanation: Automation may affect certain jobs.