CODING BASICS
PROGRAMMING LOGIC
CATEGORY 3: INTERNET & CYBERSECURITY
COMPUTER HARDWARE
ARTIFICIAL INTELLIGENCE
100

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.

100

MCQ

Which structure repeats a set of instructions?

A. Loop
B. Variable
C. Function
D. Array

A

Explanation: Loops repeat instructions multiple times.

100

MCQ

What does "HTTP" relate to?

A. Web pages
B. Keyboards
C. Batteries
D. Printers

A

Explanation: HTTP is used for transferring web pages.

100

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.

100

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.

200

True/False

Variable names can usually contain numbers.

True

Explanation: Most programming languages allow numbers in variable names, but not as the first character.

200

True/False

An IF statement is used for decision-making.

True

Explanation: IF statements allow programs to choose actions.

200

True/False

A strong password should contain a mix of letters, numbers, and symbols.

True

Explanation: Complex passwords are harder to guess.

200


True/False

RAM stores data permanently even when the computer is turned off.

False

Explanation: RAM is temporary memory.

200

True/False

AI systems can make mistakes.

True

Explanation: AI depends on data and algorithms.

300


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.

300

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.

300

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.

300


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.

300

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.

400

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).

400

True/False

A loop can run forever if not programmed correctly.

True

Explanation: This is called an infinite loop.

400


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.

400

MCQ

Which component mainly handles graphics?

A. CPU
B. RAM
C. GPU
D. Motherboard

C

Explanation: GPUs process visual information.

400

True/False

AI always understands information exactly like humans.

False

Explanation: AI processes information differently.

500

 

True/False

Computers understand programming languages exactly as humans write them.

False

Explanation: Code must be translated into machine language.

500


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.

500

True/False

HTTPS is generally more secure than HTTP.

True

Explanation: HTTPS encrypts data.

500

True/False

The motherboard connects major computer components.

True

Explanation: It allows communication between parts.

500

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.

600

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.

600

MCQ

Which operator usually checks if two values are equal?

A. =
B. ==
C. +=
D. !=

B

Explanation: == is commonly used for comparison

600

MCQ

Which is the safest password?

A. password123
B. qwerty
C. 12345678
D. M@r5!T9#Lp2

D

Explanation: Long, random passwords are strongest.

600

MCQ

Which device is an input device?

A. Printer
B. Monitor
C. Speaker
D. Keyboard

D

Explanation: Keyboards send data into a computer.

600

 

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.

M
e
n
u