Podcast
Questions and Answers
What is the purpose of the setup() function in Arduino IDE?
What is the purpose of the setup() function in Arduino IDE?
- It is called when a sketch starts to initialize variables, pin modes, start libraries, etc. (correct)
- It is used to reset the Arduino board
- It is called automatically in the background
- It sets the initial values to be executed repeatedly
What does the loop() function do in the Arduino IDE?
What does the loop() function do in the Arduino IDE?
- It initializes and sets the initial values to be executed repeatedly (correct)
- It is called when a sketch starts
- It initializes and sets the initial values to be executed only once
- It is used to reset the Arduino board
When is the setup() function executed in the Arduino IDE?
When is the setup() function executed in the Arduino IDE?
- Repeatedly during the program execution
- After each powerup or reset of the Arduino board (correct)
- When the program is terminated
- Before the start of the program
Flashcards are hidden until you start studying