Test your understanding of pins, serial output, variables, conditionals, and basic C syntax
32-Week Course � Semester 1
What does pinMode(13, OUTPUT); tell the Arduino to do?
pinMode(13, OUTPUT);
Which line of code turns a digital output on?
digitalWrite(ledPin, HIGH);
pinMode(ledPin, OUTPUT);
Serial.println(ledPin);
delay(1000);
What is the main difference between Serial.print() and Serial.println()?
Serial.print()
Serial.println()
loop()
Which variable type is best for storing a whole number like 10?
10
float
int
char
bool
What does if (count == 0) mean?
if (count == 0)
count
Which statement about semicolons and comments is correct?
//
if
Explain the difference between x = 0; and x == 0.
x = 0;
x == 0
Describe your blink-and-count program. How did you use digital output, variables, or Serial messages in your code?
These results have been automatically sent to your instructor.