wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Arduino Programming

Total questions: 50

Worksheet time: 50mins

Name
Class
Date
1.

int LED1= 4;

What statement is this?

a)

Void Loop

b)

Void Setup

c)

Declaration

d)

C language

2.

int LED1=4;

What is 'int= integer' used for?

a)

Alphabets

b)

Capital and small letters

c)

Combination of Numbers and Alphabets

d)

Numbers

3.

Which term is NOT used in declaration?

a)

Float

b)

Integer

c)

Output

4.

LED is setup-up to blink. LEDs is an

a)

Output

b)

Input

c)

pinMode

d)

digitalWrite

5.

digitalWrite (LED1,HIGH);

What does it means by HIGH?

a)

Blinking

b)

Switch OFF

c)

Switch ON

d)

Sequence

6.

delay (1000);

1000 in delay is equivalent to how many second?

a)

10s

b)

2s

c)

60s

d)

1s

7.

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.

8.

R1: int Led1=4;

R2: void setup(){

R3: digitalWrite (LED1, High);

R4: }

LED1 was not declared above void setup. Which row is the error?

a)

R1

b)

R2

c)

R3

d)

R4

9.

int Led1=4;

void setup(){

digitalWrite (LED1, High);

}

Find the errors?

a)

LED 1

b)

DigitalWrite

c)

HIGH

d)

Void Setup

10.

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);

11.
Identify this component
a)
Arduino Uno board
b)
Breadboard
c)
Raspberry Pi
d)
White Plastic
12.
Identify this component
a)
Uno Cards
b)
Arduino Duo board
c)
Raspberry Pi
d)
Arduino Uno board
13.
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)
14.
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)
15.
A function is a series of programming statements that can be called by name. Which command delays the LED by a number of milliseconds is.
a)
loop()
b)
setup()
c)
delay()
d)
stop()
16.
If we start by writing HIGH out on the pin connected to the LED. What will it make the LED do? (HIGH means putting 5V out on the pin)
a)
Turn the LED on
b)
Turn the LED off
17.
If we start by writing LOW out on the pin connected to the LED. What will it make the LED do? (LOW means putting 0V out on the pin)
a)
Turn the LED on
b)
Turn the LED off
18.

It is a separate pop-up window that acts as an independent terminal and plays a vital role for sending and receiving the Serial Data.

a)

Serial Boarder

b)

Serial Chart

c)

Serial Monitor

d)

Serial Print

19.

Which component of Arduino board has a 14 pins?

a)

Analog Pins

b)

Digital Pins

c)

Microcontroller

d)

Power Pins

20.

How many PWM inputs does Arduino UNO have? ( ~ )

a)

14

b)

6

21.

How many analog inputs does Arduino UNO have?

a)

14

b)

6

22.

How many digital inputs does Arduino UNO have?

a)

14

b)

6

23.

Digital or Analog signal?

a)

Digital

b)

Analog

24.

Digital or Analog signal?

a)

Digital

b)

Analog

25.

What is the name of this component?

a)

LED

b)

Resistor

c)

Servo Motor

d)

Potentiometer

26.

What is the name of this component?

a)

LED

b)

Resistor

c)

Servo Motor

d)

Potentiometer

27.

What is the name of this component?

a)

LED

b)

Resistor

c)

Servo Motor

d)

Potentiometer

28.

What is the name of this component?

a)

LED

b)

Resistor

c)

Servo Motor

d)

Potentiometer

29.

Which LED is ON ?

a)

8

b)

9

c)

None!

d)

ALL!

30.

Which number is integer?

a)

14.8

b)

14

31.

Where is the position of this command?

pinMode(8, OUTPUT);

a)

void setup()

b)

void loop()

32.

Where is the position of this command?

digitalWrite(8, HIGH);

a)

void setup()

b)

void loop()

33.

How header file is to be defined to code for servo motors?

a)

# define Servo

b)

# include Servo

c)

#include<Servo.h>

d)

Servo myservo;

34.

If servo object is myServo and then servo control signal to make 150 degree angle, is coded as

a)

myServo.write(150);

b)

myServo.Write(852.5);

c)

myServo.write(852.5);

d)

analogWrite(852.5);

35.

Servo signal pin must be connected to

a)

any digital pin of Arduino

b)

analog input pins A0 to A5

c)

any one of the PWM pins

d)

5V pin

36.

An actuator is a ...

a)

Digital device that senses movement

b)

Digital device that produces movement

c)

Analogue device that senses movement

d)

Analogue device that produces movement

37.

What type of actuator would be best suited to operating a robot arm?

a)

Servo

b)

Solenoid

c)

DC Motor

d)

None of the above

38.

The area of magnetic force around a magnet is known as its

a)

magnet

b)

magnetic area

c)

magnetism

d)

magnetic field

39.

Processing is

a)

Printer

b)

CPU

c)

Mouse

d)

Keyboard

40.

Inputs are

a)

Speaker

b)

Mouse

c)

Keyboard

d)

Printer

41.

Outputs are:

a)

Mouse

b)

Screen

c)

Speaker

d)

Keyboard

e)

Printer

42.

Ultrasonic waves are a form of _______ waves

a)

sound

b)

ocean

c)

radio

d)

seismic

43.

What is the maximum speed our bot can go?

a)

100

b)

15

c)

1023

d)

255

44.

How many volts do the ultrasonic sensors need to operate?

a)

5v

b)

12v

c)

3v

d)

10v

45.

An ultrasonic sensor is a device that can measure the ________ to an object by sending out _________ waves.

a)

density / echo

b)

path / seismic

c)

elevation / sonic

d)

distance / sound

46.

Is this an example of INPUT or OUTPUT?


Keyboard

a)

Input

b)

Output

47.

A device or component that gives information to a computer.

a)

Input

b)

Output

c)

Algorithm

48.

What type of sensor would be used in this kettle?

a)

Light Sensor

b)

Temperature Sensor

c)

Infra-red sensor

d)

Pressure Sensor

49.
Which type is incorrect?
a)
int
b)
double
c)
float
d)
array
50.
How do you write an if statement?
a)
if ()
b)
als ()
c)
else ()
d)
else if ()