wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Quiz No. 2 - Arduino Fundamentals

Total questions: 40

Worksheet time: 20mins

Name
Class
Date
1.

What happens when a sketch is compiled?

a)

A binary file indexes a collection of object files that the linker can use to fill in gaps and generate a complete program

b)

The sketch, any necessary libraries, and runtime code are compiled at the same time and linked into a single binary executable image.

c)

The sketch is loaded when the application is started and linking occurs at that time.

d)

The sketch, any necessary libraries and runtime code are uploaded to the board where they are then complied.

2.

Which of the following is true about AVR microcontrollers?

a)

The AVR microcontroller is a modified Harvard architecture RISC controller.

b)

Programs and modifiable data (variables) share the same memory space.

c)

Both statements are true. The AVR microcontroller is a modified Harvard Architecture RISC. Programs and modifiable data share the same memory space.

d)

Both are true: The AVR microcontroller is a modified Harvard architecture RISC Code and modifiable data are stored in separate memory space

e)

Code and modifiable data are stored in separate memory space.

3.

The AVR MCU memory core consists of Flash, SRAM, EEPROM, and fuses. Which of the folowing statements is true?

a)

Program code is stored in the flash memory, SRAM holds transient data such as program variables, fuses can be reset by the bootloader, and EEPROM will lost data if the AVR is powered off.

b)

The Flash and EEPROM both retain their content when the AVR is powered off. SRAM will lose its content if the AVR is turned off.

c)

Program code is stored in flash memory, EEPROM can hold data that needs to persist between power cycles, and SRAM is used to store modifiable data (variables).

d)

Program code and modifiable data are stored in flash memory, EEPROM and SRAM will lose their content if the AVR is powered off.

e)

None of the statement is true.

4.

ATMega 2560 has twice the amount of flash memory as the ATMega 1280, otherwise they are basically the same chip.

a)

TRUE

b)

FALSE

5.

Once the compiler converts the source code to object code, it is immediately executable using the firmware in bootloader.

a)

TRUE

b)

FALSE

6.

The AVR MCU uses a __________ to fetch, decode and execute instructions from the flash memory.

a)

Subroutine

b)

Status Register

c)

Single-level Pipeline

d)

Static Routine

7.

What does delay(10000) result in?

a)

10000 seconds

b)

10 seconds

c)

100 seconds

d)

10 minutes

8.

Source code is converted to __________ using the _________ compiler, and it must be converted to __________ before it is uploaded to the bootloader using the ________ utility.

a)

Object Code, AVR-Dude, Intel Hex Format, AVR-GCC

b)

C++, AVR-Dude, Object Code, AVR-GCC

c)

Simple C, AVR-GCC, Intel Hex Format, AVR-Dude

d)

Object Code, AVR-GCC, IntelHex Format, AVR -Dude

9.

Analog(write) is used for true analog signals on ATMega based Arduino Boards.

a)

True

b)

False

10.

It can be used to implement an RS-232 or RS-485 interface, or without external interface logic for chip to chip communication.

a)

I2C

b)

UART

c)

PWM

d)

SPI

11.

The void setup() function will run only once.

a)

TRUE

b)

FALSE

12.

Where can be a code be placed to make a LED flash 10 times?

a)

Void Setup()

b)

Void Loop()

c)

Either of the Two

d)

None of the Two

13.

A LED driver is an example of an _______?

a)

Input

b)

Output

c)

Process

d)

Storage

14.

A knob is an example of an _______?

a)

Input

b)

Output

c)

Process

d)

Storage

15.

Which of the following is NOT a mode of Operation for an AVR 8-bit timer/counter?

a)

Clear Time on Compare (CTC)

b)

Fast PWM Mode

c)

Phase Correct PWM Mode

d)

TWI Mode

16.

Adding more lightbulbs to a series circuit makes the light brighter?

a)

TRUE

b)

FALSE

17.

Which of the following statements is true?

a)

Analog pins convert analog input signals using ADC (analog-to-digital-converter)

b)

PWM pins can mimic the results of an analog signal.

c)

Analog pins are a useful interface for sensors that generate output

d)

All of the above

18.

Which board does NOT use an ATmega32U4 as its primary processor?

a)

Arduino Leonardo

b)

Arduino Mega

c)

Arduino Micro

d)

Arduino Yun

19.

A push button is an example of an ___________ .

a)

Input

b)

Output

c)

Storage

d)

Process

20.

The IDE has a built-in ___________ that allows you to send messages between your computer and your Arduino Board. You can use it to debug sketches.

a)

Sketch Editor

b)

Text Console

c)

Command Line

d)

Serial Monitor

21.

Anything that appears between /* and */ is ____________.

a)

Used in arithmetic operations

b)

Used to send instructions to the interpreter

c)

Ignored by the compiler

d)

Used once and then is ignored

22.

Which of the following options is an alternative to the Arduino IDE for programming Arduino?

a)

Visual Studio

b)

Eclipse Arduino IDE

c)

PlatformIO

d)

All of the Above

23.

Arduino undergoes pre-processing to turn your sketch into a(n) _______ program. Next dependencies of the sketch are found.

a)

Arduino

b)

Simple C

c)

C/C++

d)

Java

24.

If you connect an LED to pin 13, digitalWrite (13, LOW) ?

a)

Turns the LED on

b)

Turns the LED off

c)

Makes the LED dim

d)

Makes the LED flicker

25.

What is the numeric value of the character "H" ?

a)

74

b)

68

c)

72

d)

73

26.

It is used for controlling Arduino board and performing computations.

a)

Structure

b)

Variables

c)

Functions

d)

Sketch

27.

What Arduino API used to assign constants and data types?

a)

Sketch

b)

Functions

c)

Structure

d)

Variables

28.

What is the file extension of a Sketch file?

a)

.c++

b)

.cc

c)

.ino

d)

.exe

29.

What Arduino program function is used to define things, serial communication and initialization of libraries?

a)

Array

b)

void setup

c)

If Else

d)

void loop

30.

What Arduino commands is used to print the value to the serial monitor?

a)

serial.print

b)

serial.display

c)

serial.println

d)

serial.value

31.

What is the correct file extension on an Arduino Library?

a)

.cc

b)

.ino

c)

.lib

d)

.h

32.

What feature does Arduino IDE 2.0.x differs from IDE 1.8.x?

a)

it has legacy editor function

b)

it uses Java IDE

c)

it supports Auto-completion and Debugging.

d)

It provides auto restart and power cycle

33.

What makes Arduino CLI unique to other version?

a)

It has web user interface.

b)

It has auto debugging feature

c)

It has no visual UI

d)

It can store Sketch file on the web.

34.

What term refers to a function where your main program is store and it will run as long as the Arduino board is powered

a)

Array

b)

Loop

c)

If Else

d)

Break

35.

A function used to pause the program for a set number of milliseconds.

a)

loop

b)

delay

c)

digitalWrite

d)

millis

36.

What function is use to allow multiple events from happening simultaneously, without pausing the program code?

a)

Loop

b)

Delay

c)

interval

d)

millis

37.

What data type is used for numbers with lots of decimals?

a)

int

b)

string

c)

float

d)

bool

38.

What function is used to configure digital pin to behave as an input or output?

a)

pinMode

b)

digitalWrite

c)

serial.print

d)

serial.read

39.

What function used to read the state of a digital pin?

a)

digitalWrite

b)

digitalRead

c)

pinMode

d)

serial.Read

40.

What function is used to provide a value between and 8-bit resolution used for dimming lights or setting speed of a motor?

a)

digitalWrite

b)

analogWrite

c)

Setup.Write

d)

analogRead