wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CODING QUIZZ

Total questions: 13

Worksheet time: 7mins

Name
Class
Date
1.

In which function do we indicate the initial instructions and if the components are INPUTS or OUTPUTS?

a)

Variables section

b)

void setup() function

c)

void loop (function)

d)

Comments

2.

The following piece of code tells me that...

a)

I have introduced a 2 in the variable led

b)

I have connected the LED component in the analog pin 2

c)

I have connected the LED component in the digital pin 2

d)

None is correct

3.

The buzzer component is... (INPUT or OUTPUT)?

(a)  

4.

In this project we have built a...

a)

Digital flute

b)

Traffic light

c)

Solar alarm

d)

Digital piano

5.

This piece of code...

a)

Moves a servo 90º

b)

Turn on a LED 90º

c)

indicates that the servo is in the digital pin 90

d)

None is correct

6.

The LDR (Light) Sensor is connected to...

a)

A digital pin, Analog pin, and 5V

b)

A digital pin, GND and 5V

c)

An analog pin,GND and 5V

d)

None is correct

7.

delay(2000) means...

a)

wait 2000 seconds

b)

wait 2 seconds

c)

wait 2000 years

d)

turn on the Arduino 2000 seconds

8.

The following piece of code...

a)

Configures the LED as digital output

b)

The syntax is not correct

c)

Turn off a LED

d)

Turn on a LED

9.

The following piece of code...

a)

Declare the servo at the digital pin 9

b)

Move the servo 9 degrees

c)

Change the name of the ServoMotor to Servo

d)

Include the library of the servo into my project

10.

Where I connect the Servo and the LDR (light sensor) in my arduino board?

a)

The servo to an analog pin and the LDR to the digital pin

b)

The servo to a digital pin and the LDR to the analog pin

c)

Both to digital pins

d)

Both to analog pins

11.

The following piece of code...

a)

Saves decimal random valuen in the POTENCIOMETRO

b)

Saves in the variable POTENCIOMENTRO the values of the potentiometer

c)

Transform the values of the potentiometer to the servo values

12.

To show a message in the lcd screen we use the following command

a)

lcd.clear()

b)

LiquidCrystal lcd(0)

c)

lcd.print()

d)

#include <LiquidCrystal.h>

13.

The buzzer is going to sound if...

a)

The distance detected by the ultrasonic sensor is equal 10cm

b)

The distance detected by the ultrasonic sensor is 9 cm

c)

The distance detected by the ultrasonic sensor is 11cm

d)

None is correct