Summary

This document is an exam reviewer for IS110, focusing on Arduino programming symbols, quiz questions, and various electronic components. It includes questions about Arduino programming symbols, logical operations, and functions, as well as descriptions of different components like relay modules, sensors and more.

Full Transcript

IS110 FINALS EXAM REVIEWER 1. RELAY MODULE 4. PIEZO BUZZER 2. ARDUINO UNO BOARD 5. LIGHT EMITTING DIODE 3. ULTRASONIC SENSOR 6. RGB LED 7. ANALOG JOYSTICK 10. IR REMOTE 8. RESISTOR...

IS110 FINALS EXAM REVIEWER 1. RELAY MODULE 4. PIEZO BUZZER 2. ARDUINO UNO BOARD 5. LIGHT EMITTING DIODE 3. ULTRASONIC SENSOR 6. RGB LED 7. ANALOG JOYSTICK 10. IR REMOTE 8. RESISTOR 11. LIGHT DEPENDENT RESISTOR 9. LIQUID CRYSTAL DISPLAY 12. 4X4 KEYPAD 13. IR RECEIVER 16. BREADBOARD 14. SEVEN SEGMENT DISPLAY 17. POTENTIOMETER 18. MOTION SENSOR 15. SERVO MOTOR 19. HUMIDITY SENSOR 3. What symbol is used to decrement a value by 1 in Arduino? ANSWER: -- 4. What symbol is used for subtraction in Arduino? ANSWER: - 5. What symbol is used to multiply a value by a variable and assign the result to the variable in Arduino? ANSWER: *= 6. What symbol is used to check if a value is less than another in 20. PUSH-BUTTON Arduino? ANSWER: < 7. What symbol is used to check if a value is less than or equal to another in Arduino? ANSWER: = 1. What symbol is used for division in Arduino? 9. What symbol is used to check if a ANSWER: / value is greater than another in Arduino? ANSWER: > 2. What symbol is used to increment a value by 1 in Arduino? ANSWER: ++ 10. What symbol is used for logical OR in Arduino? ANSWER: || 11. What symbol is used for logical AND 19. What symbol is used for logical NOT in Arduino? in Arduino? ANSWER: && ANSWER: ! 12. What symbol is used to add a value 20. What symbol is used for to a variable and assign the result to multiplication in Arduino? the variable in Arduino? ANSWER: * ANSWER: += QUIZ 3: ARDUINO 13. What symbol is used to divide a 1. What is the purpose of the delay() value by a variable and assign the function? result to the variable in Arduino? ANSWER: To pause the program ANSWER: /= execution for a specified time. 2. What is the difference between 14. What symbol is used to check for digitalWrite() and digitalRead()? inequality in Arduino? ANSWER: digitalWrite() writes a ANSWER: != value to a digital pin, while digitalRead() reads a value from a digital pin. 15. What symbol is used for addition in Arduino? 3. What is the purpose of the map() ANSWER: + function in Arduino? ANSWER: To map one range of values to another range of values. 16. What symbol is used to check for equality in Arduino? 4. Which library is commonly used for ANSWER: == controlling servos in Arduino? ANSWER: Servo. 17. What symbol is used for modulo 5. What is the primary function of the (remainder after division) in millis() function? Arduino? ANSWER: To measure the time ANSWER: % elapsed since the program started. 6. What is the purpose of the if 18. What symbol is used to subtract a statement? value from a variable and assign the ANSWER: To execute a block of result to the variable in Arduino? code conditionally. ANSWER: -= 7. Which loop structure repeats a block 17. Which of the following is NOT a data of code a specific number of times? type supported by Arduino? ANSWER: for loop. ANSWER: string. 8. What is the baud rate in serial 18. What is the difference between a communication? digital pin and an analog pin? ANSWER: 9600 bps. ANSWER: Digital pins can only read high or low values, while analog pins 9. Which function is used to initialize can read a range of values. serial communication in Arduino? ANSWER: Serial.begin(). 19. What is the purpose of the Serial.print() function? 10. A potentiometer is often used to: ANSWER: To send data serially to ANSWER: Control a variable the computer. voltage. 20. What is the difference between a for 11. What is the range of values that an loop and a while loop? analogRead() function can return? ANSWER: A for loop executes a ANSWER: 0 to 1023. fixed number of times, while a while loop executes until a condition is 12. What is the maximum voltage that a met. digital pin on an Arduino board can handle? ANSWER: 5V. 13. To turn an LED on, we typically write a _________ value to the digital pin. ANSWER: HIGH. 14. What is the purpose of the pinMode() function in Arduino? ANSWER: To set the pin mode as input or output. 15. Which of the following is NOT a fundamental component of an Arduino circuit? ANSWER: Capacitor. 16. What is the primary purpose of the setup() function in an Arduino sketch? ANSWER: To define variables and initialize pins.

Use Quizgecko on...
Browser
Browser