Page 15 - Demo
P. 15
Practice Questions %u2013 Project 4 (Potentiometer Controlled LED Brightness) Multiple Choice Questions (MCQs)Q1. Which Arduino pin is used for reading the potentiometer value?a) 9b) A0c) 13d) 10Answer: b) A0Q2. What is the range of values returned by analogRead()?a) 0%u2013255b) 0%u20131023c) 0%u20135d) 0%u2013100Answer: b) 0%u20131023Q3. Which Arduino function is used for PWM output?a) digitalWrite()b) analogRead()c) analogWrite()d) pinMode()Answer: c) analogWrite()Q4. Why is the map() function used in this project?a) To convert values from 0%u20131023 to 0%u2013255 rangeb) To reduce brightnessc) To speed up LED blinkingd) To create delaysAnswer: a) To convert values from 0%u20131023 to 0%u2013255 range Fill in the BlanksQ1. The LED is connected to Arduino pin _____, which supports PWM.Answer: 9Q2. The potentiometer is connected to analog input pin _____.Answer: A0Q3. The function _____ is used to output a PWM signal.Answer: analogWrite()Q4. The potentiometer acts as a _____ resistor, changing its resistance when rotated.Answer: Variable