wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Introduction to Arduino ( Part -II )

Total questions: 15

Worksheet time: 15mins

Name
Class
Date
1.

You can write a digital output to a specific pin on the Arduino board with the help of:

a)

digitalRead( ledPin, HIGH);

b)

analogWrite( ledPin, HIGH) ;

c)

digitalWrite( ledPin, LOW) ;

d)

analogRead( ledPin, LOW) ;

2.

What is the difference between Serial.print() and Serial.println() in Arduino programming?

a)

"Serial.print" prints two line

b)

"Serial.println()" adds a new line

c)

"Serial.print" prints the output in multiple lines

d)

"Serial.println()" don't add a new line

3.

What will be the output of the above code ?

a)

LED connected at pin 13 will blink with delay of 0.5 sec

b)

LED connected at pin 13 will blink with delay of 1 sec

c)

LED connected at pin 13 will remain in OFF state always

d)

LED connected at pin 13 will remain in ON state always

4.

What will be output of the given Arduino program?

a)

LED will blink once in every 1 sec

b)

LED will blink once in every 0.5 sec

c)

LED will blink twice in every 1 sec

d)

LED will blink only one time then remain OFF

5.

What will be output of the given Arduino program?

a)

LED will blink with increasing delay of 0.01 sec

b)

LED will blink with decreasing delay of 1 sec

c)

LED will blink with increasing delay of 0.1 sec

d)

LED will blink with delay of 3 sec

6.

What is the value of “val” in the following program if the pin 12 is given 5V 3 times?

a)

NULL

b)

3

c)

2

d)

1

7.

What will the output for the code given , if executed on an Arduino UNO?

a)

1

b)

2

c)

3

d)

8

8.

What will be the output of the following code given ?

a)

8

b)

12

c)

NULL

d)

20

9.

A current ratio of IC/IE is usually less than one and is called:

a)

omega

b)

beta

c)

theta

d)

alpha

10.

Given that Ic = 2 mA and VCE= 10 V, determine R1 for the network of the fig.

a)

85.23kΩ

b)

86.52kΩ

c)

75.62kΩ

d)

80.62kΩ

11.

Which Arduino function is used to read the state (HIGH or LOW) of a digital input pin?

a)

arduinoRead()

b)

digitalRead()

c)

pinRead()

d)

analogWrite()

12.

What is the correct execution process of an Arduino code?

a)

Editor->Preprocessor->Compiler

b)

Preprocessor->Editor->Compiler

c)

Compiler->Preprocessor->Editor

d)

Editor->Compiler->Preprocessor

13.

Is the Arduino code an Object-Oriented programming language or a Procedural programming language?

a)

The Arduino Code follows the Top-Down Procedural ideology

b)

The Arduino Code follows a custom Procedural Ideology

c)

The Arduino Code follows the Bottom-Up Procedural ideology

d)

The Arduino Code follows the Object-Oriented ideology

14.

What is the difference between an IDE and a compiler?

a)

The compiler executes the code while the IDE gives a graphical environment for writing the code

b)

The compiler links the code to the respective files and the IDE takes it from there

c)

The compiler and the IDE are the same thing

d)

The IDE executes the code while the compiler gives a graphical environment for writing the code

15.

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

a)

drawings

b)

sketches

c)

links

d)

connection