Font size
WorksheetsDay 1 quiz Arduino
Total questions: 16
Worksheet time: 13mins
What is an Arduino?
Something edible, it's delicious
A very user-friendly version of the microcontroller ATmega328, you can use it to build a lot of projects
It's very unpopular and hard-to-use microcontroller
What header pins does Arduino have?
Digital Pins
Analog Pins
Electric Pins
Motor Pins
Power Pins
What does this cable do?
Power Arduino only
Users use this to upload codes only
Charge Samsung/Huawei phones
To upload codes to Arduino, and it also power up Arduino
Is this breadboard connection correct?
Yes
No
How is a tactile button connected when you press it? (Red line is the connection)
Why can't you directly connect a 5V to LED's anode?
The current is too high for the LED to take, it will spoil it
The resistance is too high for the LED to take, it will spoil it
Anode cannot take 5V
LED cannot take 5V
Arduino communicate with other computers using
(a)
setup() and loop() functions will automatically run when you power on the Arduino
True
False
Which data below is an integer?
3
3.333
integer
'3'
Which data below is a String?
'A'
String
"B"
"Arduino is fun"
which data below is a real bool?
0/false
1/true
"1"
3.1423
What's wrong with this declaration of a variable?
int a( = 5
It only doesn't have semicolon
5 is not an integer
the name a( is ugly
It doesn't have semicolon and the variable name contains special characters
What's wrong with this definition of a variable?
char grade = "A";
Nothing's wrong
char type data must be surrounded by single-quotes ' '
it uses too many semicolon
grade is not a good name
Which of the following statements are correct?
Programming languages are case sensitive including Arduino, so "John" does not equal to "joHn"
everything after comments (//) is ignored by the program
Keywords are built-in, so we don't have to define them and the computer already know where they are
Constants are used when you know you won't change the data value of a certain variable (e.g. π, months)
What is the final value of a?
int a = 5;
a ++;
a *= 2;
a --;
a = a + 3;
7
11
14
93
What is the formula for Ohm's law?
P = VI
V = IR
F = ma
E = milk * coffee²
