Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Quiz #8 (CC106)

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What component acts as an electronically operated switch to turn on and off high-voltage devices?

a)

Transistor

b)

Potentiometer

c)

Relay

d)

Diode

2.

Which Arduino function is used to configure a pin as an output for driving the relay?

a)

digitalWrite()

b)

pinMode()

c)

analogRead()

d)

Serial.begin()

3.

What argument do you pass to digitalWrite() to activate (turn on) the relay?

a)

LOW

b)

INPUT

c)

HIGH

d)

OUTPUT

4.

Which function initializes serial communication for the serial-monitor control version?

a)

Serial.read()

b)

Serial.available()

c)

Serial.begin()

d)

Serial.print()

5.

What baud rate is configured with Serial.begin() in the tutorial?

a)

9600

b)

57600

c)

115200

d)

74880

6.

What two environmental parameters can the DHT sensor read?

a)

Pressure and light

b)

Temperature and pressure

c)

Temperature and humidity

d)

Humidity and soil moisture

7.

How many pins does the DHT sensor have?

a)

Two

b)

Three

c)

Four

d)

Five

8.

What is the exact name of the library installed?

a)

DHT Sensor Library

b)

DHT11 Library

c)

HumidityTemp Library

d)

DHT22 Library

9.

Which header is included to use the DHT functions in code?

a)

A. #include <Wire.h>

b)

B. #include <DHT.h>

c)

C. #include <SPI.h>

d)

D. #include <Adafruit_Sensor.h>

10.

Which method initializes the DHT sensor in setup()?

a)

dht.setup()

b)

dht.init()

c)

dht.begin()

d)

dht.start()

11.

After uploading, if the IDE hangs at “Connecting…”, which key should you hold?

a)

Reset

b)

Boot

c)

EN

d)

IO0

12.

Where do you look to find the ESP32’s IP address?

a)

Browser URL bar

b)

Network router admin page

c)

Serial Monitor

d)

OLED display

13.

What is the first thing you must do when opening MIT App Inventor for the first time?

a)

Install an APK on your phone

b)

Create an account with email and password

c)

Download a template project

d)

Connect your ESP32 via USB

14.

MIT App Inventor splits the interface into two main sections. What are they called?

a)

A. Layout and Logic

b)

B. Designer and Blocks

c)

UI and Code

d)

Screen and Script

15.

Which Arduino library is included to handle Bluetooth serial communication on the ESP32?

a)

<WiFi.h>

b)

<BluetoothSerial.h>

c)

<BLEDevice.h>

d)

<SoftwareSerial.h>

16.

Which Arduino IDE library must be installed to drive the I²C LCD?

a)

LiquidCrystal

b)

LiquidCrystal_I2C

c)

Wire.h

d)

SPI.h

17.

Which method is called to initialize the LCD object before printing?

a)

lcd.begin()

b)

lcd.init()

c)

lcd.start()

d)

lcd.setup()

18.

Which method turns on the LCD’s backlight?

a)

lcd.lightOn()

b)

lcd.backlight()

c)

lcd.enableLight()

d)

lcd.turnOnBacklight()

19.

1.       Which method clears all characters from the LCD?

a)

lcd.reset()

b)

lcd.clear()

c)

lcd.erase()

d)

lcd.clean()

20.

Into which function must you place the LCD initialization calls (init() and backlight())?

a)

loop()

b)

setup()

c)

main()

d)

initialize()