WorksheetsArduino Junior Certification Practice Questions 3
Total questions: 20
Worksheet time: 10mins
Which is not present in a working electric motor?
permanent magnet
AC current
coiled wire
DC current
How many void loop( ) functions can you include in a sketch
As many as you declare in the void setup( ) function.
two
As many as you want.
one
What is a common use of a for( ) statement?
To repeat a section of code continuously.
To repeat a section of code as long as a specified condition is true.
To repeat a section of code a specified number of times.
To repeat a section of code one time.
On a multimeter, which setting would be appropriate to measure the voltage of a 9-volt battery?
Setting C
Setting D
Setting B
Setting A
An LED is connected to Pin 9 and a potentiometer is connected to Pin A0. What does the following sketch do?
It flashes the LED at a rate based on the value of the potentiometer.
It fades the brightness of the LED based on the value of the potentiometer.
It sets the value of the potentiometer based on whether the LED is on or off.
It changes the color of the LED based on the value of the potentiometer.
An electrical component that stores an electric charge.
resistor
potentiometer
capacitor
phototransistor
The electrode or wire through which current exits a device, such as an LED, where the current can flow in only one direction.
anode
diode
ode
cathode
The electrode or wire through which current enters a device, such as an LED, where current can flow only in one direction.
anode
diode
ode
cathode
An electronics device component that converts light energy into electrical energy.
photoresistor
photon converter
phototransistor
photograph
An electrical device that has variable resistance; often used to control the voltage in a circuit.
Push Button
Slide Switch
Potentiometer
Limit Switch
If the LEDs in this circuit are identical, which LED would you expect to be the brightest? Why?
The LED connected to the 220 ohm resistor because it has the highest voltage
The LED connected to the 1,000 ohm resistor because it is the first branch of the circuit.
The LED connected to the 540 ohm resistor because it is the last branch in the circuit and therefore gets all the leftover voltage.
The LED connected to the 5,000 ohm resistor because it is the branch with the highest resistance.
What is the advantage of using a switch-case structure in a program?
Switch-case lets you program multiple behaviors and use a single variable to choose which behavior to run.
Switch-case lets you repeat a series of commands based on a condition.
Switch-case lets you combine two or more conditions based on different variables.
Switch-case lets you test for ranges of values for a variable.
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?
INPUT
input
output
OUTPUT
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?
PinMode
pinMode
pinmode
PINMODE
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?
INPUT
input
OUTPUT
output
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?
DigitalRead
digitalread
DIGITALREAD
digitalRead
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?
high
low
LOW
HIGH
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?
include
Include
#include
#Include
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?
MyServo
myServo
myservo
Myservo
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?
Float
float
int
Int
