WorksheetsBasic Arduino Programming
Total questions: 20
Worksheet time: 13mins
What is a variable?
A type of storage for us to store information we use in a code
Allows us to run the code many times
The type of information we store in a code
What is a loop?
A type of storage for us to store information we use in a code
Allows us to run the code many times
The type of information we store in a code
What is the variable of the following statement:
int count = 3;
int
count
3
;
What does this function does?
digitalWrite ()
writes output value to either HIGH or LOW
writes output value using PWM sequence
sets a pin to either INPUT or OUTPUT
pauses the program
What does this function does?
pinMode ()
writes output value to either HIGH or LOW
writes output value using PWM sequence
sets a pin to either INPUT or OUTPUT
pauses the program
What does this function does?
delay ()
writes output value to either HIGH or LOW
writes output value using PWM sequence
sets a pin to either INPUT or OUTPUT
pauses the program
What happens when you run this code:
digitalWrite (red, HIGH);
delay (5000);
The red LED lights up for 5000 seconds
The red LED turns off for 5000 seconds
The red LED turns on for 5 seconds
digitalWrite (LED1,HIGH);
What does it means by HIGH?
Blinking
Switch OFF
Switch ON
Sequence
digitalWrite (LED1, HIGH);
delay(1000);
digitalWrite (LED1, LOW);
What does the program do?
LED Switch Off at the beginning, wait for 60s and then switch ON.
LED Switch ON at the beginning, wait for 10s and then Switch OFF.
LED Switch ON at the beginning, wait for 1s and then switch ON.
LED Switch ON at the beginning, wait for 1s and then switch OFF.
Identify this component
Uno Cards
Raspberry Pi
Arduino Duo board
Arduino Uno board
Identify this component
Arduino Uno board
Raspberry Pi
Breadboard / Protoboard
White Plastic Board
Which command is called repetitively over and over again as long as the Arduino has power.
loop ( )
(output)
setup ( )
(input)
This part is called a
Piezo buzzer
Push button
Potentiometer
None of the Above
" if (digitalRead(3)==HIGH) " what is "==" stand for ?
equal
and
or
not
Long end of an LED
+ (Anode)
- (Cathode)
If coded correctly, would the following circuit function?
Yes
No
What is the correct pinMode setup code for this circuit?
pinMode(12, OUTPUT);
pinMode(8, INPUT);
pinMode(8, OUTPUT);
pinMode(7, INPUT);
What component is NOT being using in the circuit?
Light Dependent Resistor
Light Emitting Diode
Resistor
Jumper Leads
Complete circuit with lit light source.
delay(5000); stands for :
Wait 50 seconds
Wait 5 seconds
Wait 5 minutes
No one
