wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Arduino programming quiz 1

Total questions: 49

Worksheet time: 27mins

Name
Class
Date
1.

Identify this component

a)

Arduino Uno board

b)

Raspberry Pi

c)

Breadboard / Protoboard

d)

White Plastic Board

2.
What is an LED?
a)
a light
b)
a light emitting diode
c)
a part of a circuit
3.
Why is a resistor important?
a)
It isn't important
b)
It increases the power of a circuit
c)
It controls the flow of electricity by lessening it to a certain amount
4.
A potentiometer is also known as a ___________________
a)
knob
b)
button
c)
variable resistor
5.
The resistor that changes resistance based on how much light it receives is called a _________ . resistor.
a)
photo
b)
potentiometer
c)
LED
d)
light
6.
How long is the LED on?

digitalWrite(13, HIGH); 
 
delay(1000);   
digitalWrite(13, LOW); 
 
delay(1000); 
a)
1000 seconds
b)
100 seconds
c)
1 second
d)
100 milliseconds
7.
Which symbol ends a statement?
a)
Semicolon ;
b)
Parenthesis )
c)
Comma ,
d)
Curly Brace }
8.
What does pressing the check-mark do when working with your code?
a)
Saves your work.
b)
Downloads your code onto the arduino board.
c)
Checks your code for mistakes.
d)
Checks to see if the arduino is connected to the computer.
9.
Which pin is the jumper wire connected to?

digitalWrite(13, HIGH); 
 
delay(1000);   
digitalWrite(13, LOW); 
 
 delay(1000); 
a)
13
b)
12
c)
100
d)
digital pin
10.
A function is a series of programming statements that can be called by name. Which command is called repetitively over and over again as long as the Arduino has power.
a)
loop()
b)
setup()
c)
(output)
d)
(input)
11.
A function is a series of programming statements that can be called by name. Which command is called once when the program starts:
a)
loop()
b)
setup()
c)
(output)
d)
(input)
12.
Before your program “code” can be sent to the board, it needs to be converted into instructions that the board understands. This process is called...
a)
Stop
b)
Compile
c)
Create Sketch
d)
Serial Monitor
13.

This part is called a

a)

Piezo buzzer

b)

Push button

c)

Potentiometer

d)

None of the Above

14.
If a pin is set to HIGH; it is considered to be ________
a)
On
b)
Off
c)
Once
d)
Twice
15.
Writes a HIGH or a LOW value to a digital pin.
a)
digitalWhat
b)
digitalWet 
c)
digitalWrong
d)
digitalWrite
16.
The pinMode() function configures a pin as either ______or In ________
a)
High or Low
b)
Input or Output
c)
Input or Off
d)
Inside or Outside
17.
All programming in a void setup or void loop must take place between
a)
{ } Curly Braces
b)
() Brackets
c)
\\ Forwardslashs
d)
// Backslashs
18.
The programming language used by the Arduino microprocessor is _________?
a)
Java
b)
Python
c)
C++
d)
PHP
19.

int LED1= 4;

What statement is this?

a)

Void Loop

b)

Void Setup

c)

Declaration

d)

C language

20.

int LED1=4;

What is 'int= integer' used for?

a)

Alphabets

b)

Capital and small letters

c)

Combination of Numbers and Alphabets

d)

Numbers

21.

Which term is NOT used in declaration?

a)

Float

b)

Integer

c)

Output

22.

int LED1=4;

Is that necessary to label LED into LED1, LED2, LED3 and so on....

a)

YES

b)

NO

23.

int LED2=8;

What is number eight is referring in the coding above?

a)

Analog Pin

b)

5V

c)

Ground

d)

Digital Pin

24.

LED is setup-up to blink. LEDs is an

a)

Output

b)

Input

c)

pinMode

d)

digitalWrite

25.

digitalWrite (LED1,HIGH);

What does it means by HIGH?

a)

Blinking

b)

Switch OFF

c)

Switch ON

d)

Sequence

26.

delay (1000);

1000 in delay is equivalent to how many second?

a)

10s

b)

2s

c)

60s

d)

1s

27.

digitalWrite (LED1, HIGH);

delay(1000);

digitalWrite (LED1, LOW);

What does the program do?

a)

LED Switch Off at the beginning, wait for 60s and then switch ON.

b)

LED Switch ON at the beginning, wait for 10s and then Switch OFF.

c)

LED Switch ON at the beginning, wait for 1s and then switch ON.

d)

LED Switch ON at the beginning, wait for 1s and then switch OFF.

28.

int Led1=4;

void setup(){

digitalWrite (LED1, High);

}

Find the errors?

a)

LED 1

b)

DigitalWrite

c)

HIGH

d)

Void Setup

29.

I use temperature sensor to read the room temperature. How do I write Temperature Sensor Set-up.

void setup(){

_______________________;

}

a)

PinMode (Tsensor, Output);

b)

pinMode (Tsensor, OUTPUT);

c)

PinMode (Tsensor, Input);

d)

pinMode (Tsensor, INPUT);

30.

A==7 means

a)

A is equal to 7

b)

7 is assigned as an int A

c)

A is not equal to 7

d)

A is greater than 7

31.

What does A&&B mean

a)

It is a logical AND operator

b)

It is a logical OR operator

c)

It is a multiplication operator

d)

it is a division operator

32.

what is the name of this chip

a)

Break

b)

Twix

c)

Embedded

d)

Arduino

33.

Arduino needs an expert programmer

a)

no

b)

yes

34.

we can program an input without out put for arduino

a)

no

b)

yes

35.

choose the right order

a)

output - process - input

b)

process - output - input

c)

input - process - output

d)

input - output - process

36.

what is the main role of this chip

a)

to heat the board

b)

save the programmed input only

c)

being the brain of the Arduino

d)

there is no role at all

37.

arduino has a USB port

a)

yes

b)

no

38.

A micro-controller is...

a)

small CPU made of transistors and conductors of heat and sound sensor

b)

portable circuits capable of making other circuits

c)

small computer on a single integrated circuit containing a processor core, memory, and programmable input/output peripherals

d)

small chip made of silver

39.

Identify this component

a)

Uno Cards

b)

Raspberry Pi

c)

Arduino Duo board

d)

Arduino Uno board

40.

What does IDE stand for?

a)

Integrated Development Environment

b)

In Deep Environment

c)

Internal Deep Escape

d)

IDE

41.

A program written with the IDE for Arduino is calle

a)

Editor

b)

Console

c)

Sketch

d)

IDE error

42.
What does this sketch do?
a)
This sets up the pin that our LED is connected to as an OUTPUT pin.
b)
This sets up the pin that our LED is connected to as an INPUT pin
c)
This sets up and LED to turn off
d)
Turns the LED off by writing LOW out on the pin.
43.

A!=3 means

a)

A is NOT equal to 3

b)

A is equal to 3

c)

A is greater than 3

d)

A is less than 3

44.
What is an electrical circuit?
a)
An electrical loop with a starting point and an ending point.
b)
An arduino board
c)
A circuit that has leds, potentiometers, positive and negative volts.
45.
A resistor with color bands: orange, orange, brown, gold is how many ohms?
a)
500
b)
330
c)
1000
d)
750
46.
The (-) column on your breadboard represents the ground.
a)
True
b)
False
47.
An output is something that happens when a circuit is in use.  An example of an output is:
a)
Light flashing
b)
Buzzer sounding
c)
Temperature being given
d)
All of the answers are correct
48.
A push button on a circuit is an ___________
a)
input
b)
output
c)
command
d)
variable
49.

What is a Variable?

a)

It is a place where you can store some data

b)

It is a place in your code that changes

c)

It is a name given to a special sub-routine that changes how the program works

d)

It is when you want to add two number together