Arduino Basics Quiz

Arduino Basics Quiz

Test your knowledge of the Arduino IDE, sketch structure, and setup. — 6 questions

Question 1 of 6 Score: 0

About the Arduino Basics Quiz

Test your knowledge of the Arduino IDE, sketch structure, and setup. This quiz has 6 multiple-choice questions. Each question has one correct answer, and you see an explanation straight after you answer, so you learn from every question — including the ones you get wrong. There is no time limit and nothing to sign up for; your answers are not stored.

The questions follow the material in the Getting Started with Arduino guide and the Arduino Quick Reference cheatsheet. Read them first if you want to prepare, or take the quiz cold to find the gaps in what you know.

Questions in this quiz

Preview the questions below. Each answer and its explanation are hidden until you choose to reveal them, so you can still take the quiz above without spoilers.

1. Which function runs once when an Arduino powers on?

  1. loop()
  2. setup()
  3. main()
  4. init()
Show answer

Answer: B. setup()
setup() runs exactly once at power-on or reset. loop() runs continuously afterwards.

2. What does the upload button (߆’) do in the Arduino IDE?

  1. Opens the Serial Monitor
  2. Compiles the sketch only
  3. Compiles and transfers the sketch to the board
  4. Resets the board
Show answer

Answer: C. Compiles and transfers the sketch to the board
The upload button compiles the sketch and then transfers it to the connected board over USB.

3. On the Arduino Uno, what is LED_BUILTIN?

  1. Pin 0
  2. Pin 5
  3. Pin 13
  4. Pin A0
Show answer

Answer: C. Pin 13
LED_BUILTIN is a constant equal to 13 on the Uno, corresponding to the built-in LED soldered on the board.

4. Why should you avoid using digital pins 0 and 1 while debugging with the Serial Monitor?

  1. They only support 3.3 V
  2. They are shared with the USB serial interface
  3. They cannot be used as OUTPUT
  4. They are reserved for I2C
Show answer

Answer: B. They are shared with the USB serial interface
Pins 0 (RX) and 1 (TX) are connected to the USB-to-serial chip, so using them can corrupt serial communication.

5. How many digital I/O pins does the Arduino Uno have?

  1. 6
  2. 8
  3. 12
  4. 14
Show answer

Answer: D. 14
The Uno has 14 digital I/O pins (0߀“13), with 6 of them also supporting PWM output.

6. What does delay(1000) do?

  1. Waits 1 microsecond
  2. Waits 1 millisecond
  3. Waits 1 second
  4. Waits 1 minute
Show answer

Answer: C. Waits 1 second
delay() takes milliseconds as its argument. 1000 ms = 1 second.

How to use this quiz

  • Answer every question before reading the explanations below — retrieving an answer from memory is what makes it stick.
  • Note the questions you missed and revisit the matching section of the guide or cheatsheet.
  • Retake the quiz a day or two later. Spaced repetition is one of the most reliable ways to remember technical details.

Related