Arithmetic
Conditionals
Arrays/for loops
Arduino
100

int A = 5;

A++;

A -= 2;

A = ?

4
100

if (3 > 2 && 4 > 5){

  //Steal some french fries

} else {

  //Leave your shoes untied

}

Leave your shoes untied

100

int A[6] = {1.2, -5.0, 3.9, 4.3, -6.5, -2.5};

A[4] = ?

-6

100
Set the pin number variable (piezoPin) for the buzzer to 8.
int piezoPin = 8;
200

int A = 3;

int B = 2;

B--;

A *= B;

A = ?

3

200
int A = 5;

if (A >= 7 || 7 - 2 != A){

  //Eat some toast with hot sauce

} else {

  //Go to bed with a shark

}

Go to bed with a shark

200

int A[5] = {2, 6, -4, -1, 0};

A[2]++;

A[4] -= A[2];

A[4] = ?

2

200

Play the buzzer sound for frequency 700 for half a second.

tone(piezoPin, 700, 500);

300

int A = 4;

int B = -1;

A++;

B -= 8;

A = A + B;

A = ?

-4

300

int A = 9;

int B = 2;

if (A / 3 >= B && B * 2 <= A){

  //Buy 57 bottles of detergent

} else {

  //Make a bagel for breakfast

}

Buy 57 bottles of detergent

300

int A[3] = {24, 9, -5};

A[0] = A[1];

A[2] += A[0] + A[1];

A = ?

{9, 9, 13}

300

Turn on the LED.

digitalWrite(ledPin, LOW);

400

int A = -2;

int B = 1;

A += 3;

B *= 2;

B--;

A *= B;

A = ?

1

400

int A = 9;

if (A + 3 <= 12 || A-- >= 7){

  //Call for an ambulance

} else {

  //(╯°□°)╯︵ ┻━┻

}

Call for an ambulance

400

int A[3] = {3, 5, 3};

for (int i = 0; i < 3; i++){

  A[i] = i + 1;

}

A = ?

{1, 2, 3}

400

Get the boolean variable for if the button is being pushed or not.

bool button = analogRead(buttonPin);

500

int A = 3;

int B = -2;

int C = -1;

C += A * B;

B = A;

A -= B + C;

A = ?

7

500

int A = -2;

int B = 5;

if (A - B <= 0 && B - (-2) < 3){

  //Adopt an orphaned baby sea elephant

} else {

  //Trip and fall into your toilet

}

Trip and fall into your toilet

500

int A[4] = {3, 5, 3, 2};

for (int i = 0; i < 3; i++){

  A[i] = A[i+1];

}

A = ?

{5, 3, 2, 2}

500

If the button is pressed, turn on the LED, otherwise, turn it off.

if (button == HIGH) {

  digitalWrite(ledPin, LOW);

} else {

  digitalWrite(ledPin, HIGH);

}

M
e
n
u