Search Header Logo

PIF-Week 5

Authored by Chun Ng

Engineering

9th - 12th Grade

Used 1+ times

PIF-Week 5
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

31 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the primary function of a microcontroller?

Perform complex calculations in a computer
Store and retrieve large amounts of data
Display information on a screen
Control the behavior of electronic devices
Connect to the internet

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is NOT a key component of a microcontroller?

CPU (Central Processing Unit)
ALU (Arithmetic Logic Unit)
Memory (RAM, ROM)
Keyboard
Input/Output peripherals

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of the Arduino setup() function?

Execute code repeatedly
Read data from sensors
Control the brightness of an LED
Initialize variables and settings once at the beginning
Define a function for later use

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which Arduino function is used to configure a digital pin as an output?

digitalRead()
digitalWrite()
pinMode()
delay()
Serial.print()

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does the following code do? <br> digitalWrite(13, HIGH);

Reads the state of digital pin 13
Sets digital pin 13 to high (turns on an LED connected to pin 13)
Sets digital pin 13 to low
Configures digital pin 13 as an input
Prints the value of pin 13 to the serial monitor

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which function is used to read the value of an analog pin in Arduino?

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

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of the delay() function in Arduino?

Read data from a sensor
Print output to the serial monitor
Pause the program execution for a specified time
Define a function
Control the brightness of an LED

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?