Font size
WorksheetsArduino and Programming Errors
Total questions: 26
Worksheet time: 24mins
int LED1=4;
What is 'int= integer' used for?
Alphabets
Capital and small letters
Combination of Numbers and Alphabets
Numbers
int LED2=8;
What is number eight is referring in the coding above?
Analog Pin
5V
Ground
Digital Pin
LED is set up to blink. LEDs is an
Output
Input
pinMode
digitalWrite
digitalWrite (LED1,HIGH);
What does it means by HIGH?
Blinking
Switch OFF
Switch ON
Sequence
delay (1000);
1000 in delay is equivalent to how many second?
10s
2s
60s
1s
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.
Digital or Analog signal?
Digital
Analog
Digital or Analog signal?
Digital
Analog
Which LED is ON ?
8
9
None!
ALL!
Where is the position of this command?
pinMode(8, OUTPUT);
void setup()
void loop()
How many volts do the ultrasonic sensors need to operate?
5v
12v
3v
10v
Observe the above statement to identify the type of error occurred.
Logic error
Syntax error
Run–time error
Operator error
Which of the following is the Verify icon?
Bracket)
Curly Bracket }
Bracket )
Curly Bracket }
