wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Arduino 2

Total questions: 75

Worksheet time: 50mins

Name
Class
Date
1.
delay(5000); stands for
a)
Wait 5 minutes
b)
Wait 5 seconds
c)
Wait 50 seconds
2.
A forward slash is used for 
a)
code
b)
output
c)
comments
3.
A function is a series of programming statements that can be called by name. Which command is called once when the program starts:
a)
loop()
b)
setup()
c)
(output)
d)
(input)
4.
A function is a series of programming statements that can be called by name. Which command is called repetitively over and over again as long as the Arduino has power.
a)
loop()
b)
setup()
c)
(output)
d)
(input)
5.
What does this sketch do?
a)
This sets up the pin that our LED is connected to as an OUTPUT pin.
b)
This sets up the pin that our LED is connected to as an INPUT pin
c)
This sets up and LED to turn off
d)
Turns the LED off by writing LOW out on the pin.
6.
If we start by writing HIGH out on the pin connected to the LED. What will it make the LED do? (HIGH means putting 5V out on the pin)
a)
Turn the LED on
b)
Turn the LED off
7.
If we start by writing LOW out on the pin connected to the LED. What will it make the LED do? (LOW means putting 0V out on the pin)
a)
Turn the LED on
b)
Turn the LED off
8.
It starts with a /* and continues until a */  What does this do?
a)
Loads a sketch
b)
Makes comments
c)
Compiles quicker
d)
Makes stars appear
9.

Which line correctly includes the Servo library?

a)

Servo.include{}

b)

#include <Servo.h>

c)

#include {Servo.h}

d)

Servo.include()

10.

servoLeft.Microseconds(1500) makes the servo...

a)

Turn clockwise

b)

Turn counterclockwise

c)

Reverse direction

d)

Stop

11.

pinMode is used to set a pin on the breadboard. Which command is used to set a servo motor pin?

a)

pinMode

b)

servoLeft.attach()

c)

Servo servoleft

d)

servoMode()

12.

If I want my BOE bot to move forward, how should my wheels be set?

a)

servoLeft.writeMicroseconds(1600);

servoRight.writeMicroseconds(1600);

b)

ServoLeft.writeMicroseconds(1600);

servoRight.writeMicroseconds(1400);

c)

ServoLeft.writeMicroseconds(1500);

servoRight.writeMicroseconds(1500);

d)

ServoLeft.writeMicroseconds(1400);

servoRight.writeMicroseconds(1400);

13.

What is the correct layout for declaring a variable?

a)

Datatype = Name = Value

b)

Name = Datatype Value

c)

Name Value = Datatype

d)

Datatype Name = Value

14.

Which if statement with print the numbers 1-10 in ascending order?

a)

if (int i = 1; i<=10; i++)

{

Serial.println(i);

}

b)

if (int i = 1; i<10; i++)

{

Serial.println(i);

}

c)

if (int i = 0; i<11; i++)

{

Serial.println(i);

}

d)

if (int i = 0; i<=10; i++)

{

Serial.println(i);

}

15.

What will the the last two numbers this while loop prints?

int counter = 0;

while (counter < 12) {

Serial.println(counter);

counter=counter+2;

}

a)

10, 12

b)

11, 12

c)

8, 10

d)

9, 10

16.

What will this code print?

int num1 = 6;

int num2 = 6*2;

if (num2==num1)

{

Serial.print("blue");

}

else if (num2!=num1)

{

Serial.print("red");

}

else if (num2>num1) {

Serial.print("purple");

}

else {

Serial.print("green")

}

a)

blue

b)

red

c)

purple

d)

green

17.

Serial.print ("Hello");

Serial.println ("world!");

Serial.print( ":D");


If I ran this code, what would appear on the serial monitor.

a)

Hello

world!

:D

b)

Hello world! :D

c)

Helloworld!

:D

d)

Hello

world! :D

18.

Name the datatype

'a'

a)

String

b)

char

c)

int

d)

float

19.

Name the datatype

"bob"

a)

String

b)

char

c)

int

d)

float

20.

Name the datatype

14

a)

String

b)

char

c)

int

d)

float

21.

Name the datatype

3.14

a)

String

b)

char

c)

int

d)

float

22.

What could I put in the blank to get "red"? Multiple answers

int foo = 17;

if (foo______17)

{Serial.print("red");}

else

{Serial.print("green");}

a)

!=

b)

<

c)

<=

d)

==

23.

int i = 3;

while (i<6)

{

Serial.print("!");

i=i+1;

}


What gets printed?

a)

!!!

b)

!

c)

!!!!

d)

!!!!!!

24.

What gets printed?


char letters[]={'a','b','c','d'};

Serial.print(letters[3]);

a)

a

b)

b

c)

c

d)

d

25.

Which variable is declared correctly?

a)

var foo == 2

b)

var foo = 2

c)

int foo = 2

d)

char foo = 2

26.
delay(5000); stands for
a)
Wait 5 minutes
b)
Wait 5 seconds
c)
Wait 50 seconds
27.
A forward slash is used for 
a)
code
b)
output
c)
comments
28.
A function is a series of programming statements that can be called by name. Which command is called once when the program starts:
a)
loop()
b)
setup()
c)
(output)
d)
(input)
29.
A function is a series of programming statements that can be called by name. Which command is called repetitively over and over again as long as the Arduino has power.
a)
loop()
b)
setup()
c)
(output)
d)
(input)
30.
What does this sketch do?
a)
This sets up the pin that our LED is connected to as an OUTPUT pin.
b)
This sets up the pin that our LED is connected to as an INPUT pin
c)
This sets up and LED to turn off
d)
Turns the LED off by writing LOW out on the pin.
31.
If we start by writing HIGH out on the pin connected to the LED. What will it make the LED do? (HIGH means putting 5V out on the pin)
a)
Turn the LED on
b)
Turn the LED off
32.
If we start by writing LOW out on the pin connected to the LED. What will it make the LED do? (LOW means putting 0V out on the pin)
a)
Turn the LED on
b)
Turn the LED off
33.
It starts with a /* and continues until a */  What does this do?
a)
Loads a sketch
b)
Makes comments
c)
Compiles quicker
d)
Makes stars appear
34.

Which line correctly includes the Servo library?

a)

Servo.include{}

b)

#include <Servo.h>

c)

#include {Servo.h}

d)

Servo.include()

35.

servoLeft.Microseconds(1500) makes the servo...

a)

Turn clockwise

b)

Turn counterclockwise

c)

Reverse direction

d)

Stop

36.

pinMode is used to set a pin on the breadboard. Which command is used to set a servo motor pin?

a)

pinMode

b)

servoLeft.attach()

c)

Servo servoleft

d)

servoMode()

37.

If I want my BOE bot to move forward, how should my wheels be set?

a)

servoLeft.writeMicroseconds(1600);

servoRight.writeMicroseconds(1600);

b)

ServoLeft.writeMicroseconds(1600);

servoRight.writeMicroseconds(1400);

c)

ServoLeft.writeMicroseconds(1500);

servoRight.writeMicroseconds(1500);

d)

ServoLeft.writeMicroseconds(1400);

servoRight.writeMicroseconds(1400);

38.

What is the correct layout for declaring a variable?

a)

Datatype = Name = Value

b)

Name = Datatype Value

c)

Name Value = Datatype

d)

Datatype Name = Value

39.

Which if statement with print the numbers 1-10 in ascending order?

a)

if (int i = 1; i<=10; i++)

{

Serial.println(i);

}

b)

if (int i = 1; i<10; i++)

{

Serial.println(i);

}

c)

if (int i = 0; i<11; i++)

{

Serial.println(i);

}

d)

if (int i = 0; i<=10; i++)

{

Serial.println(i);

}

40.

What will the the last two numbers this while loop prints?

int counter = 0;

while (counter < 12) {

Serial.println(counter);

counter=counter+2;

}

a)

10, 12

b)

11, 12

c)

8, 10

d)

9, 10

41.

What will this code print?

int num1 = 6;

int num2 = 6*2;

if (num2==num1)

{

Serial.print("blue");

}

else if (num2!=num1)

{

Serial.print("red");

}

else if (num2>num1) {

Serial.print("purple");

}

else {

Serial.print("green")

}

a)

blue

b)

red

c)

purple

d)

green

42.

Serial.print ("Hello");

Serial.println ("world!");

Serial.print( ":D");


If I ran this code, what would appear on the serial monitor.

a)

Hello

world!

:D

b)

Hello world! :D

c)

Helloworld!

:D

d)

Hello

world! :D

43.

Name the datatype

'a'

a)

String

b)

char

c)

int

d)

float

44.

Name the datatype

"bob"

a)

String

b)

char

c)

int

d)

float

45.

Name the datatype

14

a)

String

b)

char

c)

int

d)

float

46.

Name the datatype

3.14

a)

String

b)

char

c)

int

d)

float

47.

What could I put in the blank to get "red"? Multiple answers

int foo = 17;

if (foo______17)

{Serial.print("red");}

else

{Serial.print("green");}

a)

!=

b)

<

c)

<=

d)

==

48.

int i = 3;

while (i<6)

{

Serial.print("!");

i=i+1;

}


What gets printed?

a)

!!!

b)

!

c)

!!!!

d)

!!!!!!

49.

What gets printed?


char letters[]={'a','b','c','d'};

Serial.print(letters[3]);

a)

a

b)

b

c)

c

d)

d

50.

Which variable is declared correctly?

a)

var foo == 2

b)

var foo = 2

c)

int foo = 2

d)

char foo = 2

51.
What is the software for programming Arduino called?
a)
Arduino IDE
b)
System Programmer
c)
Arduino Coder
d)
Arduino Developer
52.

Arduino can interact with...

a)

buttons, leds

b)

smartphone

c)

sensors

d)

all of the above

53.

What are the uses of Arduino? Arduino?

a)

Inexpensive

b)

Cross-platform

c)

Open source and extensible software

d)

All of the above

54.

Which software is used for Arduino?

a)

EXE ARDUINO

b)

TURBO C

c)

IDEL

d)

ARDUINO IDE

55.

What does this button represents?

a)

A. Right Column

b)

B. Upload

c)

C. Render

d)

D. Upright

56.

A sketch is

a)

an Arduino file

b)

an Arduino picture

c)

an Arduino board

d)

an Arduino sensor

57.

Which of the following is the VERIFY icon?

a)
b)
c)
d)
58.

The function returns a value to the - variable blinks, and then will blink the LED blinks .....................times with a delay of.................... seconds before repeating.

a)

5; 2

b)

5000; 2000

c)

500; 2

d)

5; 200

59.

The value 9600 is the speed at which the data will travel between the computer and the Arduino, also known as baud. This value must match the speed setting at the bottom right of the Serial Monitor.

How to write the code?

a)

Serial.begin(9600);Serial.begin(9600);

b)

Serialln.begin(9600);Serial\ln.begin(9600);

c)

Serial.end(9600);Serial.end(9600);

d)

Serial.void(9600);Serial.void(9600);

60.

digitalWrite (ledPin, HIGH);

HIGH means?

a)

LED ON

b)

LED OFF

c)

LED STANDBY

d)

LED SLEEP

61.

digitalWrite(13,LOW)digitalWrite(13,LOW)  means?

a)

execute pin 13; ON

b)

execute pin 13; OFF

c)

turn OFF when pin is than 13 mV

d)

turn ON when pin is more than 13 mV

62.

What is Coding ?

a)

A set of instructions

b)

A group of instructions

c)

Individual commands

d)

All of the above

63.

Identify this component.

a)

Arduino Uno board

b)

Pin Board

c)

Breadboard

d)

White Plastic Board

64.
What do we call the chip used to control external systems?
a)

Brain

b)

Integrated Circuit (IC)

c)

LED

d)
Microcontroller
65.

These Pins are ?

a)

Digital Pins

b)

Pines PWM

c)

Analog pins

d)

Microcontroller

66.

What is the highlighted part

a)

Power Regular

b)

Drums

c)

Voltage Regulator

d)

Microcontroller

67.

WHAT IS THE UNIT OF RESISTOR

a)

FARAD

b)

OHM

c)

KG

d)

NONE OF ABOVE

68.

WHAT IS THE FUNCTION OF LED?

a)

MULTIPLE DIRECTION CONTROL

b)

ALLOWS THE CURRENT TO FLOW IN ONE DIRECTION ONLY

c)

TO SLOW DOWN THE CURRENT

d)

TO STORE THE CURRENT

69.

 In this case, the code between the curly brackets will execute ............. the conditions of the test  (while ( a < 100 ))  have been checked.

a)

before

b)

after

70.
It starts with a /* and continues until a */  What does this do?
a)
Loads a sketch
b)
Makes comments
c)
Compiles quicker
d)
Makes stars appear
71.
Before your program “code” can be sent to the board, it needs to be converted into instructions that the board understands. This process is called...
a)

Upload

b)

Verify

c)

Coding

d)
Serial Monitor
72.

delay (1000);

1000 in delay is equivalent to how many second?

a)

10s

b)

2s

c)

60s

d)

1s

73.

Which command is called repetitively as long as the Arduino has power.

a)

loop ( )

b)

(output)

c)

setup ( )

d)

(input)

74.

Why does the LED have different length legs?

a)

For ease of inserting into the breadboard.

b)

To indicate which side is negative and which side is positive.

c)

To ensure it does not easily break.

75.

What would happen if we used the following code but the wire was not plugged into pin 13?digitalWrite(13, HIGH);delay(1000);digitalWrite(13, LOW);delay(1000);

a)

The LED would not light up at all.

b)

The LED would light up but be very dim.

c)

The LED would light up as normal.