Page 8 - Demo
P. 8


                                    Q1. The push button in this project is connected to Arduino pin _____.Answer: 2Q2. The function _____ is used to check whether a button is pressed or not.Answer: digitalRead()Q3. A _____ resistor is used to keep the button pin at LOW when not pressed.Answer: Pull-down (10k%u03a9)Q4. In the program, LED is turned ON when the button state is _____.Answer: HIGH Match the FollowingColumn A (Arduino Term) Column B (Meaning)1. digitalRead() a. Keeps input pin LOW by default2. buttonPin b. Reads state of button3. Pull-down Resistor c. Variable storing pin number 24. if-else condition d. Decides LED ON or OFFAnswer Key:1 %u2192 b2 %u2192 c3 %u2192 a4 %u2192 d
                                
   2   3   4   5   6   7   8   9   10   11   12

 

 

 

 

 

Web hosting by Somee.com