PIF-Quiz 4

PIF-Quiz 4

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Quiz sobre Sensores e Componentes Eletrônicos

Quiz sobre Sensores e Componentes Eletrônicos

12th Grade

10 Qs

X RPL - PPLG (HTML 1)

X RPL - PPLG (HTML 1)

11th Grade

12 Qs

Quiz on Architecture of the ATmega328

Quiz on Architecture of the ATmega328

12th Grade

15 Qs

Arduino Robotics S2

Arduino Robotics S2

9th - 12th Grade

10 Qs

latihan_kelas_12

latihan_kelas_12

12th Grade

20 Qs

Pemrograman Arduino: Input Analog

Pemrograman Arduino: Input Analog

12th Grade

20 Qs

Dasar Arsitektur Arduino

Dasar Arsitektur Arduino

11th Grade

20 Qs

Antar Muka Digital Arduino

Antar Muka Digital Arduino

12th Grade

15 Qs

PIF-Quiz 4

PIF-Quiz 4

Assessment

Quiz

Engineering

9th - 12th Grade

Medium

Created by

Chun Ng

Used 2+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the output of the following code? <br> int x = 5;<br> x = x + 2;<br> Serial.println(x);
2
7
5
10

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does the following code do? <br> pinMode(13, OUTPUT);
Reads the state of digital pin 13
Sets digital pin 13 to high
Sets digital pin 13 to low
Configures digital pin 13 as an output

3.

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()

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of the delay() function in Arduino?
To read data from a sensor
To print output to the serial monitor
To pause the program execution for a specified time
To define a function

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the correct way to declare a constant variable named "LED_PIN" with a value of 9 in Arduino?
const int LED_PIN = 9;
int const LED_PIN = 9;
#define LED_PIN 9
All of the above

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which operator is used to check if two values are NOT equal in Arduino?
=
==
!=
>

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of a comment in Arduino code?
To tell the Arduino what to do
To make the code look nicer
To explain the code to humans
To store data

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?