wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

PRE-TEST (IoT - Arduino)

Total questions: 70

Worksheet time: 53mins

Name
Class
Date
1.

What does IDE stand for?

a)

Integrated Development Environment

b)

In Deep Environment

c)

Internal Deep Escape

d)

IDE

2.

Which command is called repetitively over and over again as long as the Arduino has power.

a)

loop ( )

b)

delay( )

c)

setup ( )

d)

input( )

3.

Which command is called when a sketch starts. Use it to initialize variables, pin modes, start using libraries, etc. It will only run once, after each power up or reset of the Arduino board.

a)

loop ( )

b)

delay( )

c)

setup ( )

d)

input( )

4.

Used to end a statement

a)

!

b)

"

c)

;

d)

\

5.

These tell the Arduino software when the setup section begins and ends. Without them, the software is lost and unable to compile your code. Think of these as additional punctuation that your code requires. Your code must be perfectly punctuated to compile.

a)

( )

b)

[ ]

c)

< >

d)

{ }

6.

Single line comment

a)

//

b)

&&

c)

<=

d)

>=

7.

Comparison operator which means greater than or equal to.

a)

//

b)

&&

c)

<=

d)

>=

8.

This is used to include outside libraries in your sketch. This gives the programmer access to a large group of standard C libraries (groups of pre-made functions), and also libraries written especially for Arduino.

a)

#include

b)

#define

c)

#library

d)

#find

9.

This allows the programmer to give a name to a constant value before the program is compiled. It does not take up any program memory space on the chip. The compiler will replace references to these constants with the defined value at compile time.

a)

#include

b)

#define

c)

#library

d)

#find

10.

This is used only in function declarations. It indicates that the function is expected to return no information to the function from which it was called.

a)

boolean

b)

float

c)

char

d)

void

11.

This is a data type that takes up 1 byte of memory that stores a character value. These literals are written in single quotes, like this: 'A' (for multiple of these - strings - use double quotes: "ABC").

a)

boolean

b)

float

c)

char

d)

void

12.

These numbers have a decimal point. They are often used to approximate analog and continuous values because they have greater resolution than integers.

a)

boolean

b)

float

c)

char

d)

void

13.

This holds one of two values, true or false.

a)

boolean

b)

float

c)

char

d)

void

14.

This pauses the program for the amount of time (in miliiseconds) specified as parameter. (There are 1000 milliseconds in a second.)

a)

loop ( )

b)

delay( )

c)

setup ( )

d)

input( )

15.

A variable that can be used and updated by any part of the code. Its scope is typically derived from the variable being declared (created) outside of any function, object, or method.

a)

global variable

b)

local variable

c)

true variable

d)

false variable

16.

A variable that can only be seen, used and updated by code within the same scope. Typically this means the variable was declared (created) inside a function -- includes function parameter variables.

a)

global variable

b)

local variable

c)

true variable

d)

false variable

17.

Complete circuit with lit light source.

a)
b)
c)
d)
e)
18.

The negative terminal of a circuit

a)

5V

b)

3.3V

c)

GND

d)

Reset

e)

TX<-1

19.

Steepness of the slope (C)

a)

Amperes

b)

Voltage

c)

Resistance

d)

Ω

20.

The amount of rocks (A)

a)

Amps

b)

V

c)

Resistance

d)

Ω

21.

Bushes on the slope that slow the rocks (B)

a)

Amperes

b)

Voltage

c)

I

d)

Ω

22.

Difference in potential energy between 2 points

a)

Amperes

b)

V

c)

Resistance

d)

GND

23.

Safer, more predictable

a)

Direct Current

b)

Alternating Current

c)

Voltage

d)

Ohms

24.

Travels farther, much higher voltage

a)

Direct Current

b)

Alternating Current

c)

Voltage

d)

Ohms

25.

Switches direction 50-60 times per s

a)

Direct Current

b)

Alternating Current

c)

Voltage

d)

Ohms

26.

Choose the most descriptive title

a)

Short Circuit

b)

Complete Circuit

c)

Incomplete Circuit

d)

Full Circuit

27.

Unused energy in a circuit is lost.

a)

True

b)

False

28.

The current of an outlet

a)

AC

b)

DC

c)

GND

d)

A

29.

The voltage of an outlet

a)

110V

b)

5V

c)

3.3V

d)

19V

30.

Long end of an LED

a)

+ (Anode)

b)

- (Cathode)

31.

220 Ohm resistor

a)
b)
c)
d)
32.

A microcontroller is...

a)

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

b)

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

c)

small chip made of silver

33.

What is Arduino?

a)

A company for selling microcontrollers

b)

An open-source electronics prototyping platform based on flexible, easy-to-use hardware and software

c)

A software used to program microcontrollers

34.

what is the name of this chip

a)

Arduino

b)

Embedded

c)

Software

35.

choose the right order of any process in the Arduino

a)

output - process - input

b)

input - output - process

c)

input - process - output

36.

the part of the Arduino that is circled is

a)

Power Jack

b)

Rest button

c)

Analogue pins

37.

In which of the following does electricity flow?

a)

Open circuit

b)

Closed circuit

c)

None of the options are correct

38.

If there are several probable causes to a problem, which should be tested first?

a)

The easiest and most obvious

b)

The most complex and difficult to diagnose

c)

Those chosen by random selection

d)

Those the teachers believe are the most important

39.

Suppose you get the following options from the port, which one must you select to upload the program properly to the board

a)

COM 2

b)

COM 4(Arduino/Genuino Uno)

c)

Serial upload

d)

COM 3 (Upload to Arduino board)

40.

When a problem is extensive, What should you do in order to help solve it?

a)

Break it down into smaller problems

b)

Ask a friend

c)

Call the manufacturer for assistance

d)

Test the problem

41.

The long leg of the LED (Anode) must be connected to:

a)

The signal

b)

The ground

c)

Any cable

d)

The resistor

e)

None of the options are correct

42.

What can you determine from the following picture?

a)

There is a problem with the connections in the board

b)

There is an error in the code

c)

A problem occured while uploading the program to the board

d)

All the options are correct

43.

What type of circuit is the one you see in the image

a)

Open circuit

b)

DC circuit

c)

AC circuit

d)

Closed circuit

e)

Power circuit

44.

We want to turn on the built-in LED of the Arduino board, What pin and configuration do we use?

a)

pin 11 as an INPUT

b)

pin 13 as an OUTPUT

c)

pin 3 as an OUTPUT

d)

pin BUILT as an OUTPUT

e)

pin 13 as an INPUT

45.

Which button helps us find errors in the code?

a)

Upload

b)

Download

c)

Verify

d)

Error finder

e)

Fixer

46.

The code that is repeated over and over again in Arduino is:

a)

void setup

b)

void repeat

c)

void doItAgain

d)

void loop

e)

None of the options are correct

47.

BONUS: would the following assembly work if.....

a)

You change the cable from GND to pin 13

b)

None of the options are correct

c)

You change the 8 by a 10 in the code

d)

You change the cable from GND to pin 10

e)

It already works with the current configuration

48.

BONUS 2: Would the LED turn on and off if...

a)

You rotate the LED

b)

Change the cable from pin 9 to pin 13

c)

The LED turns on with the current configuration

d)

Change the cable from GND to pin 13

49.

Which is the format specifier for unsigned long int

a)

%ld

b)

%ul

c)

%lu

d)

%d

50.

What is the precision of Double (after decimal point)

a)

19

b)

6

c)

15

d)

12

51.

Standard c library files are added during which step of the compilation process

a)

Linker

b)

Compiler

c)

Assembler

52.

Which is the microcontroller present in Arduino

a)

ATMEGA328

b)

ATMEGA238

c)

ATMEGA326

d)

ATMEGA236

53.

How many PWM pins does Arduino have

a)

5

b)

8

c)

6

d)

7

54.

What is the data memory in Arduino

a)

FLASH

b)

DRAM

c)

EEPROM

d)

SRAM

55.

How many bits are required to transmit 8 bit data to a slave of 8 bit address using I2C protocol

a)

18

b)

19

c)

20

d)

21

56.

Which protocol does USB use

a)

IC2

b)

SPI

c)

URAT

57.

Which is the software or a programming language used for controlling of Arduino?

a)

C sharp

b)

C

c)

Assembly language

d)

Any Language

58.

Arduino IDE consists of 2 functions. What are they?

a)

Build() and loop()

b)

Setup() and build()

c)

Setup() and loop()

d)

Loop() and build() and setup()

59.

A program written with the IDE for Arduino is called ___

a)

IDE source

b)

Sketch

c)

Cryptography

d)

Source code

60.

Which function runs a set of codes only once?

a)

void main()

b)

void setup()

c)

void loop()

d)

void set()

61.

How many arguments does the digitalRead() function have?

a)

1

b)

2

c)

3

d)

4

62.

What computer languages are used in Robotics for today’s society?

a)

C++

b)

JavaScript

c)

Arduino

d)

Phyton

63.

What are the technical terms used for “ON"?

a)

HIGH

b)

LOW

64.

What is the technical term used for “OFF”?

a)

LOW

b)

HIGH

65.

The open-source electronic platforms based on easy-to-use hardware and software.

a)

ARDUINO

b)

C++

c)

HTML

d)

C#

66.

It is used to end a statement

a)

{}

b)

;

c)

()

d)

//

67.

Syntax means?

a)

Descriptions

b)

Grammar

c)

Code

d)

Output

68.

What is this picture classifies as?

a)

MICROCHIP

b)

CENTRAL PROCESSING UNIT (CPU)

c)

MOTHERBOARD

d)

ARDUINO BOARD

69.

What is the output of this program

a)

The Arduino robot will run itself, Also, the LED Lights, inside the Arduino will be on 13 times and off 13 times because, of the command HIGH and LOW

b)

The Arduino Lego will run and dance 13 times

c)

The command or program has syntax error

d)

The Arduino Lego will sleep 13 times

70.

It is used to include external libraries in your sketch

a)

#include

b)

#define

c)

void setup ()

d)

void loop ()