WorksheetsG10 LESSON 3 REVIEW
Total questions: 22
Worksheet time: 8mins
Name
Class
Date
1.
COMPLETE NAME
4 lines
2.
SECTION
a)
10-ANTARES`
b)
10-ATLAS
c)
10-SCEPTRUM
3.
What is the file extension used for Arduino sketches?
a)
.cpp
b)
.txt
c)
.ino
d)
.java
4.
Which function in Arduino executes only once when the board is powered on?
a)
loop()
b)
delay()
c)
setup()
d)
pinMode()
5.
What is the purpose of the loop() function in Arduino?
a)
To execute setup configurations
b)
To define data types
c)
To execute code repeatedly
d)
To configure communication channels
6.
Which function is used to configure a digital pin as an input or output?
a)
pinMode()
b)
digitalRead()
c)
digitalWrite()
d)
analogRead()
7.
What does the analogRead() function in Arduino do?
a)
Reads the state of a digital pin
b)
Writes a value to an analog pin
c)
Reads the voltage of an analog pin
d)
Configures a pin as an input or output
8.
Which function is used to send data to the serial port in Arduino?
a)
Serial.begin()
b)
Serial.print()
c)
Serial.read()
d)
Serial.available()
9.
What does the delay() function do in Arduino programming?
a)
Executes code once
b)
Pauses the program for a specified time
c)
Reads incoming serial data
d)
Writes data to the serial port
10.
What is the purpose of local variables in Arduino programming?
a)
They offer data sharing across functions
b)
They are limited to specific functions
c)
They are defined outside any function
d)
They are accessible from anywhere in the sketch
11.
Which data type is used to represent true or false values in Arduino?
a)
int
b)
float
c)
boolean
d)
char
12.
What does the digitalWrite() function do in Arduino?
a)
Reads the state of a digital pin
b)
Writes a value to a digital pin
c)
Reads the voltage of an analog pin
d)
Configures a pin as an input or output
13.
How do you upload a sketch to an Arduino board using the Arduino IDE?
a)
Compile and run
b)
Connect and upload
c)
Save and close
d)
Open and edit
14.
What does the pinMode() function do in Arduino?
a)
Writes a value to a digital pin
b)
Reads the voltage of an analog pin
c)
Configures a pin as an input or output
d)
Pauses the program for a specified time
15.
Which function is used to read a floating-point number from the serial buffer in Arduino?
a)
Serial.begin()
b)
Serial.available()
c)
Serial.parseFloat()
d)
Serial.readStringUntil()
16.
What is the purpose of the Serial Monitor in Arduino IDE?
a)
To compile sketches
b)
To upload sketches to the board
c)
To debug and monitor board activity
d)
To configure board settings
17.
What is the first function called when an Arduino board is powered on?
a)
loop()
b)
pinMode()
c)
delay()
d)
setup()
18.
Which function is used to read data from the serial port in Arduino?
a)
Serial.begin()
b)
Serial.print()
c)
Serial.read()
d)
Serial.available()
19.
What does the digitalWrite() function do when the argument is HIGH?
a)
Sets the pin to 0V
b)
Sets the pin to 5V
c)
Sets the pin to input mode
d)
Sets the pin to output mode
20.
Which function is used to send a string of characters to the serial port in Arduino?
a)
Serial.begin()
b)
Serial.print()
c)
Serial.read()
d)
Serial.available()
21.
What does the analogWrite() function do in Arduino?
a)
Reads the state of a digital pin
b)
Writes a value to an analog pin
c)
Reads the voltage of an analog pin
d)
Configures a pin as an input or output
22.
Which statement best describes an Arduino sketch?
a)
A physical diagram of the Arduino board
b)
A sequence of instructions written for Arduino programming
c)
A collection of electronic components
d)
A mathematical formula for computation
100 %
