Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

MYP3

Total questions: 23

Worksheet time: 32mins

Name
Class
Date
1.

An if statement can be followed by an optional else statement, which executes when the boolean expression is ____.

a)

TRUE

b)

FALSE

2.

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.

a)

GND, VCC

b)

VCC, GND

3.

In the digitalWrite() function, ___means On, and ___means Off.

a)

High, Low

b)

LOW, HIGH

c)

Low, High

d)

HIGH, LOW

4.

The delay() function helps us ________.

a)

Skip few lines of instructions

b)

Makes computer faster

c)

Allows you to pause the execution of your program for a specified period

5.

The___________ function tells your Arduino to change the state of the device connected at a pin no.

a)

digitalRead()

b)

digitalWrit()

c)

digitalWrite()

d)

digitalRW()

6.

A buzzer is a basic audio device that _______ a sound from an incoming electrical signal. 

a)

generates

b)

reflects

c)

sends

d)

recevies

7.

Variable declarations usually follow the syntax _______

a)
  1. variable_name datatype;

b)
  1. datatype variable_name;

c)
  1. variable_name datatype

d)

datatype variable_name

8.

A for loop is a __________ that allows you to efficiently write a loop that needs to execute a specific number of times.

a)
  1. Conditional statement

b)

Initialization statement


c)
  1. Repetition Control Structure 

d)
  1. Variable structure

9.

After the body of the for loop executes, the flow of control jumps back up to the _____statement.

a)

conditional

b)

increment

c)

intialization

d)

next instruction

10.

A ______ is just like a classroom space that allows students and teachers to connect. 

a)

Resistor

b)

LED

c)

Breadboard

d)

Jumper Wires

11.

An if statement consists of a ________ followed by one or more statements.

a)

Variable

b)

Boolean Expresion

c)

Keyword

d)

Syntax

12.

A _______ is an electronic sensor used in detecting and recording physical touch.

a)

Sound Sensor

b)

Resistance Sensor

c)

Touch Sensor

d)

Light Sensor

13.

The _____ function tells your Arduino what type of devices are connected on those pins

a)

void loop()

b)

void setup()

c)

pinMode()

d)

digitalWrite()

14.

What language is the Arduino IDE built on?

a)

JAVA

b)

HTML

c)

C/C++

d)

Python

15.

Arduino Codes are referred to as ________ in the Arduino IDE.

a)

sketches

b)

drawings

c)

links

d)

notes

16.

What will be the output of the following Arduino code?

a)

0xAB

b)

0xa

c)

0

d)

Error

17.

IDE stands for

a)

Integrated Development Environment

b)

Interleaving Deficit Expander

c)

Interfaced Developed Module

d)

Interleaving The Developed Environment

18.

To ground the circuit _____ pin is used in Arduino

a)

PIN

b)

GND

c)

RESET

d)

None of the above

19.

How many Analog pins exist in Arduino?

a)

9

b)

5

c)

6

d)

10

20.

Which function repeatedly executes in the main program?

a)

SETUP

b)

LOOP

c)

WHILE

d)

None of the above

21.

Which of the following is the correct syntax for reading data from a sensor connected to an analog input pin?

a)

analogRead(sensor_pin)

b)

analogWrite(sensor_pin, value);

c)

digitalWrite(sensor_pin, value);

d)

digitalRead(sensor_pin);

22.

Which of the following is the correct syntax for sending data over the serial port in an Arduino sketch?

a)

Serial.show(data)

b)

Serial.write(data)

c)

Serial.read(data)

d)

Serial.print(data)

23.

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.

4 lines