wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Arduino and Programming

Total questions: 35

Worksheet time: 12mins

Name
Class
Date
1.

What is an electrical circuit?

a)

An loop with a power source, load and conductive path

b)

A circuit that has leds, potentiometers, positive and negative volts.

c)

An arduino board

d)

All of the above.

2.

What is an LED?

a)

a light

b)

a part of a circuit

c)

a light emitting diode

d)

all of the above

3.

Why is a resistor important?

a)

It isn't important

b)

It controls the flow of electricity by lessening it to a certain amount

c)

It increases the power of a circuit

d)

All of the above

4.

Are all jumper wires the same?

a)

Yes

b)

Sometimes

c)

No

5.

The (-) column on your breadboard represents the ground.

a)

True

b)

False

6.

An output is something that happens when a circuit is in use. An example of an output is:

a)

Light flashing

b)

Buzzer sounding

c)

Liquid Crystal Display (LCD)

d)

All of the above

7.

A push button on a circuit is an ___________.

a)

input

b)

output

c)

command

d)

variable

8.

delay(5000); stands for

a)

Wait 5 minutes

b)

Wait 50 seconds

c)

Wait 5 seconds

d)

Wait 5 hours

9.

digitalWrite(13, LOW); turns the light

a)

on

b)

off

c)

dim

10.

An LED is an:

a)

output

b)

input

11.

An photoresistor is an:

a)

input

b)

output

12.

How long is the LED on?


digitalWrite(13, HIGH);

delay(1000);

digitalWrite(13, LOW);

delay(1000);

a)

1000 seconds

b)

1 second

c)

100 seconds

d)

100 milliseconds

13.

Which pin is the jumper wire connected to?


digitalWrite(13, HIGH);

delay(1000);

digitalWrite(13, LOW);

delay(1000);

a)

13

b)

100

c)

12

d)

A13

14.

Which statement do you change to alter the time?


void setup()

{

pinMode(13, OUTPUT);

}

void loop()

{

digitalWrite(13, HIGH);

delay(1000);

digitalWrite(13, LOW);

delay(1000);

}

a)

delay

b)

digitalWrite

c)

void loop

d)

pinMode

15.

Which means ON?


void setup()

{

pinMode(13, OUTPUT);

}

void loop()

{

digitalWrite(13, HIGH);

delay(1000);

digitalWrite(13, LOW);

delay(1000);

}

a)

OUTPUT

b)

LOW

c)

HIGH

d)

delay

16.

Which symbol begins a comment?

a)

;

b)

:

c)

//

d)

.

17.

The entire code must end with

a)

Comma ,

b)

Parenthesis )

c)

Curly Brace }

d)

Semicolon ;

18.

Which symbol ends a statement?

a)

Comma ,

b)

Semicolon ;

c)

Parenthesis )

d)

Curly Brace }

19.

Which of the following is true about comments added in the Arduino code?

a)

Comments help you understand how your program works

b)

Comments are only there for high level programmers

c)

Comments take up too much space and should never be used

d)

All of the above

20.

Why does the LED have different length legs?

a)

For ease of inserting into the breadboard.

b)

To ensure it does not easily break.

c)

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

21.

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 as normal.

c)

The LED would light up but be very dim.

22.

How many analog pins are used in Arduino UNO board?

a)

16

b)

13

c)

6

d)

19

23.

Which is the software or a programming language used for controlling of Arduino?

a)

Assembly Language

b)

JAVA

c)

C Languages

d)

Any Languages

24.

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)

25.

What is programming?

a)

Commands given to an animal

b)

something on television

c)

commands given to a computer

d)

something on a radio

26.

digitalWrite (LED1, HIGH);

delay(1000);

digitalWrite (LED1, LOW);


What does the program do?

a)

LED Switch Off at the beginning, wait for 60s and then switch ON.

b)

LED Switch ON at the beginning, wait for 1s and then switch ON.

c)

LED Switch ON at the beginning, wait for 10s and then Switch OFF.

d)

LED Switch ON at the beginning, wait for 1s and then switch OFF.

27.

Where is the position of this command?


pinMode(8, OUTPUT);

a)

void setup()

b)

void loop()

28.

Where is the position of this command?


digitalWrite(8, HIGH);

a)

void setup()

b)

void loop()

29.

Inputs are

a)

Speaker

b)

Keyboard

c)

Mouse

d)

Printer

30.

Outputs are:

a)

Mouse

b)

Printer

c)

Screen

d)

Keyboard

31.

How many volts do the ultrasonic sensors need to operate?

a)

5v

b)

3v

c)

12v

d)

10v

32.

An ultrasonic sensor is a device that can measure the ________ to an object by sending out _________ waves.

a)

density / echo

b)

path / seismic

c)

elevation / sonic

d)

distance / sound

33.

choose the right order

a)

output - process - input

b)

input - process - output

c)

process - output - input

d)

input - output - process

34.

LCD stands for

a)

Lighted Crystal Display

b)

Liquid Crystal Drawing

c)

Liquid Cube Display

d)

Liquid Crystal Display

35.

Photo resistors operate by

a)

Reducing resistance when less light is visible

b)

Increasing resistance when less light is visible

c)

Activates when motion is present

d)

All of the above