Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Arduino Junior Certification Practice Questions 3

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Which is not present in a working electric motor?

a)

permanent magnet

b)

AC current

c)

coiled wire

d)

DC current

2.

How many void loop( ) functions can you include in a sketch

a)

As many as you declare in the void setup( ) function.

b)

two

c)

As many as you want.

d)

one

3.

What is a common use of a for( ) statement?

a)

To repeat a section of code continuously.

b)

To repeat a section of code as long as a specified condition is true.

c)

To repeat a section of code a specified number of times.

d)

To repeat a section of code one time.

4.

On a multimeter, which setting would be appropriate to measure the voltage of a 9-volt battery?

a)

Setting C

b)

Setting D

c)

Setting B

d)

Setting A

5.

An LED is connected to Pin 9 and a potentiometer is connected to Pin A0. What does the following sketch do?

a)

It flashes the LED at a rate based on the value of the potentiometer.

b)

It fades the brightness of the LED based on the value of the potentiometer.

c)

It sets the value of the potentiometer based on whether the LED is on or off.

d)

It changes the color of the LED based on the value of the potentiometer.

6.

An electrical component that stores an electric charge.

a)

resistor

b)

potentiometer

c)

capacitor

d)

phototransistor

7.

The electrode or wire through which current exits a device, such as an LED, where the current can flow in only one direction.

a)

anode

b)

diode

c)

ode

d)

cathode

8.

The electrode or wire through which current enters a device, such as an LED, where current can flow only in one direction.

a)

anode

b)

diode

c)

ode

d)

cathode

9.

An electronics device component that converts light energy into electrical energy.

a)

photoresistor

b)

photon converter

c)

phototransistor

d)

photograph

10.

An electrical device that has variable resistance; often used to control the voltage in a circuit.

a)

Push Button

b)

Slide Switch

c)

Potentiometer

d)

Limit Switch

11.

If the LEDs in this circuit are identical, which LED would you expect to be the brightest? Why?

a)

The LED connected to the 220 ohm resistor because it has the highest voltage

b)

The LED connected to the 1,000 ohm resistor because it is the first branch of the circuit.

c)

The LED connected to the 540 ohm resistor because it is the last branch in the circuit and therefore gets all the leftover voltage.

d)

The LED connected to the 5,000 ohm resistor because it is the branch with the highest resistance.

12.

What is the advantage of using a switch-case structure in a program?

a)

Switch-case lets you program multiple behaviors and use a single variable to choose which behavior to run.

b)

Switch-case lets you repeat a series of commands based on a condition.

c)

Switch-case lets you combine two or more conditions based on different variables.

d)

Switch-case lets you test for ranges of values for a variable.

13.

A push-button switch is connected to Pin 2, a red LED is connected to Pin 3, and a green LED is connected to Pin 4 on an Arduino board. Complete the program so that when the button is pressed, the red LED is on and the green LED is off. When the button is not pressed the red LED is off and the green LED is on.

What is needed for A?

a)

INPUT

b)

input

c)

output

d)

OUTPUT

14.

A push-button switch is connected to Pin 2, a red LED is connected to Pin 3, and a green LED is connected to Pin 4 on an Arduino board. Complete the program so that when the button is pressed, the red LED is on and the green LED is off. When the button is not pressed the red LED is off and the green LED is on.

What is needed for B?

a)

PinMode

b)

pinMode

c)

pinmode

d)

PINMODE

15.

A push-button switch is connected to Pin 2, a red LED is connected to Pin 3, and a green LED is connected to Pin 4 on an Arduino board. Complete the program so that when the button is pressed, the red LED is on and the green LED is off. When the button is not pressed the red LED is off and the green LED is on.

What is needed for C?

a)

INPUT

b)

input

c)

OUTPUT

d)

output

16.

A push-button switch is connected to Pin 2, a red LED is connected to Pin 3, and a green LED is connected to Pin 4 on an Arduino board. Complete the program so that when the button is pressed, the red LED is on and the green LED is off. When the button is not pressed the red LED is off and the green LED is on.

What is needed for D?

a)

DigitalRead

b)

digitalread

c)

DIGITALREAD

d)

digitalRead

17.

A push-button switch is connected to Pin 2, a red LED is connected to Pin 3, and a green LED is connected to Pin 4 on an Arduino board. Complete the program so that when the button is pressed, the red LED is on and the green LED is off. When the button is not pressed the red LED is off and the green LED is on.

What is needed for E?

a)

high

b)

low

c)

LOW

d)

HIGH

18.

A servo is connected to Pin 9 and a potentiometer is connected to Pin A0. Complete the program so that the angle of the servo is controlled by the potentiometer.

What is needed for Z?

a)

include

b)

Include

c)

#include

d)

#Include

19.

A servo is connected to Pin 9 and a potentiometer is connected to Pin A0. Complete the program so that the angle of the servo is controlled by the potentiometer.

What is needed for Y?

a)

MyServo

b)

myServo

c)

myservo

d)

Myservo

20.

A servo is connected to Pin 9 and a potentiometer is connected to Pin A0. Complete the program so that the angle of the servo is controlled by the potentiometer.

What is needed for X?

a)

Float

b)

float

c)

int

d)

Int