WorksheetsMYP3
Total questions: 23
Worksheet time: 32mins
An if statement can be followed by an optional else statement, which executes when the boolean expression is ____.
TRUE
FALSE
An LED has two legs, a positive, and a negative, the positive leg can go to the positive ____of the Arduino, and the negative leg can go to the negative _____ of the Arduino.
GND, VCC
VCC, GND
In the digitalWrite() function, ___means On, and ___means Off.
High, Low
LOW, HIGH
Low, High
HIGH, LOW
The delay() function helps us ________.
Skip few lines of instructions
Makes computer faster
Allows you to pause the execution of your program for a specified period
The___________ function tells your Arduino to change the state of the device connected at a pin no.
digitalRead()
digitalWrit()
digitalWrite()
digitalRW()
A buzzer is a basic audio device that _______ a sound from an incoming electrical signal.
generates
reflects
sends
recevies
Variable declarations usually follow the syntax _______
variable_name datatype;
datatype variable_name;
variable_name datatype
datatype variable_name
A for loop is a __________ that allows you to efficiently write a loop that needs to execute a specific number of times.
Conditional statement
Initialization statement
Repetition Control Structure
Variable structure
After the body of the for loop executes, the flow of control jumps back up to the _____statement.
conditional
increment
intialization
next instruction
A ______ is just like a classroom space that allows students and teachers to connect.
Resistor
LED
Breadboard
Jumper Wires
An if statement consists of a ________ followed by one or more statements.
Variable
Boolean Expresion
Keyword
Syntax
A _______ is an electronic sensor used in detecting and recording physical touch.
Sound Sensor
Resistance Sensor
Touch Sensor
Light Sensor
The _____ function tells your Arduino what type of devices are connected on those pins
void loop()
void setup()
pinMode()
digitalWrite()
What language is the Arduino IDE built on?
JAVA
HTML
C/C++
Python
Arduino Codes are referred to as ________ in the Arduino IDE.
sketches
drawings
links
notes
What will be the output of the following Arduino code?
0xAB
0xa
0
Error
IDE stands for
Integrated Development Environment
Interleaving Deficit Expander
Interfaced Developed Module
Interleaving The Developed Environment
To ground the circuit _____ pin is used in Arduino
PIN
GND
RESET
None of the above
How many Analog pins exist in Arduino?
9
5
6
10
Which function repeatedly executes in the main program?
SETUP
LOOP
WHILE
None of the above
Which of the following is the correct syntax for reading data from a sensor connected to an analog input pin?
analogRead(sensor_pin)
analogWrite(sensor_pin, value);
digitalWrite(sensor_pin, value);
digitalRead(sensor_pin);
Which of the following is the correct syntax for sending data over the serial port in an Arduino sketch?
Serial.show(data)
Serial.write(data)
Serial.read(data)
Serial.print(data)
Go to Tinkercad and create a new circuit with LED, Buzzer and Ultrasonic Sensor.
Write the code to make LED Glow and Buzzer ring when the distance at Ultrasonic Sensor is less then 30cm.
