Variables
Control Flow
Loops
Functions
Troubleshooting Errors
100

What is the main purpose of a variable in programming?

To act as a "storage box" for saving data.

100

What keyword starts a simple conditional statement to test if a condition is true?

if

100

 What is the primary purpose of a loop in coding?

To repeat a block of code/instructions.

100

What are functions in programming?

Reusable blocks of instructions/code.

100

Is C++ / Arduino code case-sensitive?

Yes (e.g., pinMode vs pinmode).

200

Which data type holds a single character wrapped in single quotes, such as 'A'?

char

200

What Boolean operator stands for "Logical NOT" and reverses a true/false value?

! (Exclamation mark)

200

What type of loop runs as long as a specified conditional expression remains true (e.g., while (timer < 10))?

A while loop

200

Which built-in Arduino function runs only once when the board first powers on?

void setup()

200

What type of error happens during code translation due to bad syntax or incorrect casing?

Compilation Error

300

What character must be placed at the end of a variable declaration statement in C++?

A semicolon ;

300

What kind of statements can be used as an alternative to multiple if/else checks when matching a variable against specific discrete cases?

A switch statement

300

Which keyword is used to instantly stop and exit a loop?

break

300

Which Arduino function sends a HIGH (5V) or LOW (0V) signal to a digital pin?

digitalWrite()

300

What type of error occurs when the Arduino IDE fails to communicate with or flash code to the board?

Uploading Error

400

Which data type is used to store decimal numbers, like 19.99?

float (or double)

400

What statement exits a function completely and optionally passes a value back?

return

400

Besides a while loop, what other common loop structure allows you to repeat code for a set number of iterations?

A for loop

400

Which function reads the current state (HIGH or LOW) of a digital pin?

digitalRead()

400

What type of error allows code to compile and upload cleanly, but causes the program to behave incorrectly while running on hardware?

Execution (or Runtime/Logic) Error

500

What type of variable scope is accessible anywhere throughout the entire program?

Global scope

500

Which control flow modification statement skips the rest of the current loop iteration and moves to the next one?

continue

500

If a loop's conditional check is always true and never becomes false, what kind of loop is created?

An infinite loop

500

What do you call the values placed inside the parentheses when calling a function, such as 13 and HIGH in digitalWrite(13, HIGH)?

Parameters (or Arguments)

500

Selecting the wrong COM or Serial Port in the IDE causes which of the three error types?

Uploading Error

M
e
n
u