PIF-Quiz 4

PIF-Quiz 4

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

kuis Pemrograman & Aplikasi Mikrokontroller

kuis Pemrograman & Aplikasi Mikrokontroller

9th - 12th Grade

12 Qs

EVALUACION M4S2

EVALUACION M4S2

12th Grade

16 Qs

STS 2

STS 2

12th Grade

20 Qs

PIF-Quiz 3

PIF-Quiz 3

9th - 12th Grade

15 Qs

Arduino Quiz

Arduino Quiz

12th Grade

10 Qs

Pemrograman Arduino_input output

Pemrograman Arduino_input output

12th Grade

20 Qs

Robotics Quiz 2

Robotics Quiz 2

12th Grade

20 Qs

PRACTICE TEST ARDUINO

PRACTICE TEST ARDUINO

11th Grade - University

20 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?