Search Header Logo

PIF-Quiz Week 5 B

Authored by Chun Ng

Engineering

9th - 12th Grade

15 Questions

Used 2+ times

PIF-Quiz Week 5 B
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You want to turn on a ventilation fan when the temperature inside the greenhouse exceeds 30°C. Which of the following code snippets is the most appropriate?

if (temperature < 30) { digitalWrite(fanPin, HIGH); }
if (temperature > 30) { digitalWrite(fanPin, HIGH); }
if (temperature == 30) { digitalWrite(fanPin, LOW); }
if (temperature != 30) { digitalWrite(fanPin, LOW); }

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

You are using a soil moisture sensor that outputs an analog value. Which Arduino function should you use to read the sensor data?

digitalRead()
analogRead()
pinMode()
digitalWrite()

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

You want to connect a water pump to your Arduino. Since the pump operates at a higher voltage than the Arduino can provide, which component should you use?

Resistor
Capacitor
Transistor
Relay module

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

You want to display the temperature and humidity readings on an LCD screen. Which Arduino library should you include in your code?

Servo.h
LiquidCrystal.h
Wire.h
SPI.h

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

You want to automatically turn on the grow lights at 7:00 AM every day. Which Arduino module can help you achieve this?

Ultrasonic sensor
Real Time Clock (RTC) module
GPS module
Bluetooth module

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

You notice that your water pump is running continuously, even when the soil moisture level is high. Which of the following could be a possible cause of this problem?

Faulty soil moisture sensor
Incorrect wiring
Error in the code
All of the above

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

You want to store the temperature and humidity readings in an array for later analysis. Which data type should you use for the array?

char
int
float
boolean

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?