
PRP 02 Pushbutton Quiz

Quiz
•
Computers
•
12th Grade
•
Medium

Alex Song
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the `pinMode` function in the Arduino code?
To read the state of a pin
To set a pin as either an input or output
To write a value to a pin
To initialise the Arduino board
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the given code, what is the role of the `digitalRead` function?
To turn the LED on or off
To set the pin mode
To read the state of a digital pin
To initialise the LED pin
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen when the pushbutton is pressed according to the code?
The LED will turn off
The LED will blink
The LED will turn on
The LED will change colour
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which pin is configured as an output in the code?
Pin 7
Pin 12
Pin 0
Pin 1
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the initial value of `buttonState` in the code?
1
0
HIGH
LOW
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of variable is `buttonState` in the code?
String
Float
Integer
Boolean
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the `digitalWrite` function do in the code?
It reads the value from a pin
It sets a pin to HIGH or LOW
It configures the pin mode
It initialises the Arduino board
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Microbit 3

Quiz
•
6th Grade - University
5 questions
Arduino Basics

Quiz
•
12th Grade
12 questions
IT Acronyms v.1

Quiz
•
12th Grade
15 questions
Quiz Arduino & Buzzer

Quiz
•
9th - 12th Grade
14 questions
Unit 6 Microcontrollers Intro 2022

Quiz
•
11th Grade - University
10 questions
UNOARDUINO

Quiz
•
12th Grade
10 questions
UJi Pemahaman Wokwi dan perintah sederhana pemrograman arduino

Quiz
•
12th Grade
15 questions
Arduino Level 2

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade