wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Arduino ELESA

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What type of signal does the analogWrite() function output?

a)

Pulse Code Modulated Signal

b)

Frequency Modulated Signal

c)

Pulse Width Modulated Signal

d)

Pulse Amplitude Modulated Signal

2.

Which of the following is used to control the brightness of an LED connected to an Arduino board?

a)

Analog input pin

b)

Digital input pin

c)

Analog output pin

d)

Digital output pin

3.

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)

digitalRead(sensor_pin);

c)

analogWrite(sensor_pin, value);

d)

digitalWrite(sensor_pin, value);

4.

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

a)

Serial.println(data);

b)

Serial.print(data);

c)

Serial.write(data);

d)

Serial.read(data);

5.

Which of the following is the correct syntax for creating a delay of 1 second in an Arduino sketch?

a)

delay(60);

b)

delay(1);

c)

delay(1000);

d)

delay(60000);

6.

What is the microcontroller used in Arduino UNO?

a)

ATmega328p

b)

ATmega2560

c)

ATmega32114

d)

AT91SAM3x8E

7.

Arduino IDE consists of 2 functions. What are they?

a)

Loop() and build() and setup()

b)

Build() and loop()

c)

Setup() and build()

d)

Setup() and loop()

8.

What is the use of the Arduino.h header file?

a)

It enables the programmer to access all of Arduino’s core functionality

b)

It doesn’t have any use and can be omitted any point of time in the code

c)

It gives root access to the microcontroller’s file system

d)

It allows other people to create libraries for the Arduino code

9.

How many times does the setup() function run on every startup of the Arduino System?

a)

5

b)

4

c)

1

d)

2

10.

What is the function of the setup() function in an Arduino sketch?

a)

It runs continuously while the sketch is running

b)

It sets up the initial configuration of the sketch

c)

It handles the input/output operations of the sketch

d)

It is used to define custom functions in the sketch