wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Diagnostics for IoT302

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What programming languages can be used to program the ESP32?

a)

Swift

b)

Python 3

c)

Ruby

d)

C/C++, MicroPython, JavaScript, Lua

2.

What is the default baud rate for ESP32 serial communication?

a)

9600

b)

57600

c)

230400

d)

115200

3.

Which IDE is commonly used for ESP32 development?

a)

NetBeans

b)

Visual Studio Code

c)

Arduino IDE

d)

Eclipse IDE

4.

What is the purpose of the 'setup()' function in ESP32 programming?

a)

To handle user input during runtime.

b)

To initialize the program and set up the environment.

c)

To define the main loop of the program.

d)

To manage power consumption settings.

5.

How do you connect the ESP32 to a Wi-Fi network?

a)

Use WiFi.begin(SSID, PASSWORD) to connect the ESP32 to a Wi-Fi network.

b)

Invoke WiFi.link(SSID, PASSWORD) to access the Wi-Fi network.

c)

Use WiFi.connect(SSID, PASSWORD) to join a Wi-Fi network.

d)

Call WiFi.start(SSID, PASSWORD) to establish a connection.

6.

What library is commonly used for handling Wi-Fi connections on ESP32?

a)

Ethernet

b)

Bluetooth

c)

Zigbee

d)

WiFi

7.

What is the function of the 'loop()' method in an ESP32 sketch?

a)

The 'loop()' method executes code continuously after 'setup()'.

b)

The 'loop()' method is used to define the main function of the program.

c)

The 'loop()' method initializes variables before 'setup()'.

d)

The 'loop()' method runs only once after the 'setup()' method.

8.

How can you read digital input from a pin on the ESP32?

a)

Use pinMode(pin, INPUT) to set the pin as input and digitalRead(pin) to read the value.

b)

Set the pin as input using pinMode(pin, INPUT_PULLUP) and use analogRead(pin) to read the value.

c)

Use digitalWrite(pin, HIGH) to read the value from the pin.

d)

Use pinMode(pin, OUTPUT) to set the pin as output and digitalWrite(pin, value) to read the value.

9.

What is the maximum number of GPIO pins available on the ESP32?

a)

30

b)

20

c)

25

d)

40

10.

How do you define a pin as an output in ESP32 programming?

a)

pinMode(pinNumber, HIGH);

b)

pinMode(pinNumber, OUTPUT);

c)

configurePin(pinNumber, OUTPUT);

d)

setPinMode(pinNumber, OUTPUT);

11.

What is the purpose of the 'delay()' function in an ESP32 program?

a)

To increase the speed of program execution.

b)

To reset the ESP32 device.

c)

To initiate a network connection.

d)

To pause program execution for a specified time in milliseconds.

12.

How can you use the ESP32 to read analog values?

a)

Connect the ESP32 to a computer and read values through a serial monitor.

b)

Use the analogRead() function on the ESP32 to read values from ADC-configured GPIO pins.

c)

Use the analogWrite() function to output analog values.

d)

Use the digitalRead() function to read analog values.

13.

What is the function of the 'WiFi.begin()' method?

a)

To connect to a WiFi network.

b)

To disconnect from a WiFi network.

c)

To scan for available WiFi networks.

d)

To display the current WiFi status.

14.

How can you implement a simple web server using ESP32?

a)

You can implement a simple web server using ESP32 by setting up Wi-Fi, initializing a WebServer instance, defining routes, and handling client requests.

b)

Connecting to a Bluetooth device instead of Wi-Fi

c)

Creating a web server using only HTML and CSS without any backend code

d)

Using an Arduino board without any additional components

15.

What is the significance of the '#define' directive in ESP32 programming?

a)

The '#define' directive is a method for defining functions in ESP32 programming.

b)

The '#define' directive allows for the creation of macros for constants and expressions in ESP32 programming.

c)

The '#define' directive is used to manage memory allocation in ESP32 programming.

d)

The '#define' directive is used to include libraries in ESP32 programming.