PIF-Quiz 4

PIF-Quiz 4

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

LATIHAN MAteri Semester Gasala

LATIHAN MAteri Semester Gasala

10th Grade

20 Qs

Eval. Sist Elec 3UD.

Eval. Sist Elec 3UD.

11th Grade

15 Qs

Uji Pengetahuan Robotik dan Mekatronik

Uji Pengetahuan Robotik dan Mekatronik

11th Grade

20 Qs

Intro to Robotics Engineering Session SYP

Intro to Robotics Engineering Session SYP

9th - 12th Grade

11 Qs

SOAL TMKT/TELIND

SOAL TMKT/TELIND

11th Grade

10 Qs

CH5-機電整合與控制(均悅版)

CH5-機電整合與控制(均悅版)

11th Grade

10 Qs

fungsi if else

fungsi if else

11th Grade

20 Qs

Quiz MPP

Quiz MPP

11th Grade

10 Qs

PIF-Quiz 4

PIF-Quiz 4

Assessment

Quiz

Engineering

9th - 12th Grade

Medium

Created by

Chun Ng

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?