10 questions
___________ are pre built circuit boards that fit on top of Android.
Sensor
Breadboard
Data Types
Sheilds
What does this line of code do? counter++;
Increment counter by an amount that depends on its definition.
This is not a legal statement in the Arduino language.
Adds 1 to the variable counter
None of the above
Is there anything wrong with this line of code, if yes, what? if(myVar = true) Serial.println("The light is ON");
There needs to be a space after the if keyword.
The = should be ==
There is nothing wrong.
An if statement must use braces.
What is the value of foo when these lines of code are executed? foo = 12; foo = foo % 10;
1
2
1.2
None of above
What does this line of code do? temp = !temp;
Sets the variable temp to its logical compliment.
Converts the variable temp to a boolean value.
The line is not a legal Arduino statement.
Preforms a factorial calculation.
What is the range of numbers you can store in a variable of type byte?
0 to 65535
-128 to 127
0 to 255
0 to 9
To subtract 1 from a variable counter, you can use the following statement(s) (check all that apply)
counter- = 1;
counter = counter -1;
counter--;
--counter;
None of above
A program written with the IDE for Arduino is called _________
IDE source
Cryptography
Sketch
Source code
What is wrong with the following
/*Turns on an LED on for one second, then off for one second, repeatedly. This example code is in the public domain.*/
int led = 13;
VOID setup() {
pinMode(led, INPUT);
}
VOID loop() {
digitalWrite(led, HIGH);
delay(1000);
digitalWrite(led, LOW);
delay(1000);
}
All the code
Void
High and Low
Low and High
Which statement when executed provides 5V @ the 13th pin on Arduino UNO board in order to turn ON the LED?
DigitalWrite(13,HIGH);
DigitalWrite(LED,HIGH);
DigitalWrite(13,LOW);
DigitalWrite(LED,LOW);