PIF-Quiz 4

PIF-Quiz 4

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

SOAL TMKT/TELIND

SOAL TMKT/TELIND

11th Grade

10 Qs

Quiz MPP

Quiz MPP

11th Grade

10 Qs

Antarmuka Input Analog pada Arduino

Antarmuka Input Analog pada Arduino

12th Grade

10 Qs

Quiz su Arduino

Quiz su Arduino

12th Grade

19 Qs

Quiz tentang Rangkaian RC dan Arduino

Quiz tentang Rangkaian RC dan Arduino

11th Grade

14 Qs

UH 1 Audio Video

UH 1 Audio Video

9th - 12th Grade

20 Qs

Intro to Robotics Engineering Session SYP

Intro to Robotics Engineering Session SYP

9th - 12th Grade

11 Qs

LATIHAN MAteri Semester Gasala

LATIHAN MAteri Semester Gasala

10th Grade

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?