Page 3 - Demo
P. 3
Student learns:%u2022 How to define and use digital pins.%u2022 Difference between INPUT and OUTPUT in Arduino.%u2022 Basic timing with delay() function. Practice Questions %u2013 Project 1 (Blinking LED) Multiple Choice Questions (MCQs)Q1. Which Arduino pin is used in this project to connect the LED?a) Pin 5b) Pin 10c) Pin 13d) GNDAnswer: c) Pin 13Q2. What is the purpose of the resistor in this project?a) To store currentb) To protect the LED from excess currentc) To increase brightnessd) To reduce delayAnswer: b) To protect the LED from excess currentQ3. What will happen if delay(1000); is changed to delay(500);?a) LED will blink fasterb) LED will blink slowerc) LED will not blinkd) Nothing will changeAnswer: a) LED will blink fasterQ4. Which Arduino function is used to set a pin as input or output?a) digitalWrite()b) digitalRead()c) pinMode()d) analogWrite()Answer: c) pinMode() Fill in the BlanksQ1. The LED is connected to Arduino pin number _____ in this project.Answer: 13Q2. The function _____ is used to give HIGH or LOW signals to a pin.Answer: digitalWrite()Q3. In Arduino, the _____ function runs only once when the program starts.Answer: setup()