WorksheetsQuiz #8 (CC106)
Total questions: 20
Worksheet time: 10mins
What component acts as an electronically operated switch to turn on and off high-voltage devices?
Transistor
Potentiometer
Relay
Diode
Which Arduino function is used to configure a pin as an output for driving the relay?
digitalWrite()
pinMode()
analogRead()
Serial.begin()
What argument do you pass to digitalWrite() to activate (turn on) the relay?
LOW
INPUT
HIGH
OUTPUT
Which function initializes serial communication for the serial-monitor control version?
Serial.read()
Serial.available()
Serial.begin()
Serial.print()
What baud rate is configured with Serial.begin() in the tutorial?
9600
57600
115200
74880
What two environmental parameters can the DHT sensor read?
Pressure and light
Temperature and pressure
Temperature and humidity
Humidity and soil moisture
How many pins does the DHT sensor have?
Two
Three
Four
Five
What is the exact name of the library installed?
DHT Sensor Library
DHT11 Library
HumidityTemp Library
DHT22 Library
Which header is included to use the DHT functions in code?
A. #include <Wire.h>
B. #include <DHT.h>
C. #include <SPI.h>
D. #include <Adafruit_Sensor.h>
Which method initializes the DHT sensor in setup()?
dht.setup()
dht.init()
dht.begin()
dht.start()
After uploading, if the IDE hangs at “Connecting…”, which key should you hold?
Reset
Boot
EN
IO0
Where do you look to find the ESP32’s IP address?
Browser URL bar
Network router admin page
Serial Monitor
OLED display
What is the first thing you must do when opening MIT App Inventor for the first time?
Install an APK on your phone
Create an account with email and password
Download a template project
Connect your ESP32 via USB
MIT App Inventor splits the interface into two main sections. What are they called?
A. Layout and Logic
B. Designer and Blocks
UI and Code
Screen and Script
Which Arduino library is included to handle Bluetooth serial communication on the ESP32?
<WiFi.h>
<BluetoothSerial.h>
<BLEDevice.h>
<SoftwareSerial.h>
Which Arduino IDE library must be installed to drive the I²C LCD?
LiquidCrystal
LiquidCrystal_I2C
Wire.h
SPI.h
Which method is called to initialize the LCD object before printing?
lcd.begin()
lcd.init()
lcd.start()
lcd.setup()
Which method turns on the LCD’s backlight?
lcd.lightOn()
lcd.backlight()
lcd.enableLight()
lcd.turnOnBacklight()
1. Which method clears all characters from the LCD?
lcd.reset()
lcd.clear()
lcd.erase()
lcd.clean()
Into which function must you place the LCD initialization calls (init() and backlight())?
loop()
setup()
main()
initialize()
