NEW
Font size
WorksheetsQuiz No. 2 - Arduino Fundamentals
Total questions: 40
Worksheet time: 20mins
What happens when a sketch is compiled?
A binary file indexes a collection of object files that the linker can use to fill in gaps and generate a complete program
The sketch, any necessary libraries, and runtime code are compiled at the same time and linked into a single binary executable image.
The sketch is loaded when the application is started and linking occurs at that time.
The sketch, any necessary libraries and runtime code are uploaded to the board where they are then complied.
Which of the following is true about AVR microcontrollers?
The AVR microcontroller is a modified Harvard architecture RISC controller.
Programs and modifiable data (variables) share the same memory space.
Both statements are true. The AVR microcontroller is a modified Harvard Architecture RISC. Programs and modifiable data share the same memory space.
Both are true: The AVR microcontroller is a modified Harvard architecture RISC Code and modifiable data are stored in separate memory space
Code and modifiable data are stored in separate memory space.
The AVR MCU memory core consists of Flash, SRAM, EEPROM, and fuses. Which of the folowing statements is true?
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.
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.
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).
Program code and modifiable data are stored in flash memory, EEPROM and SRAM will lose their content if the AVR is powered off.
None of the statement is true.
ATMega 2560 has twice the amount of flash memory as the ATMega 1280, otherwise they are basically the same chip.
TRUE
FALSE
Once the compiler converts the source code to object code, it is immediately executable using the firmware in bootloader.
TRUE
FALSE
The AVR MCU uses a __________ to fetch, decode and execute instructions from the flash memory.
Subroutine
Status Register
Single-level Pipeline
Static Routine
What does delay(10000) result in?
10000 seconds
10 seconds
100 seconds
10 minutes
Source code is converted to __________ using the _________ compiler, and it must be converted to __________ before it is uploaded to the bootloader using the ________ utility.
Object Code, AVR-Dude, Intel Hex Format, AVR-GCC
C++, AVR-Dude, Object Code, AVR-GCC
Simple C, AVR-GCC, Intel Hex Format, AVR-Dude
Object Code, AVR-GCC, IntelHex Format, AVR -Dude
Analog(write) is used for true analog signals on ATMega based Arduino Boards.
True
False
It can be used to implement an RS-232 or RS-485 interface, or without external interface logic for chip to chip communication.
I2C
UART
PWM
SPI
The void setup() function will run only once.
TRUE
FALSE
Where can be a code be placed to make a LED flash 10 times?
Void Setup()
Void Loop()
Either of the Two
None of the Two
A LED driver is an example of an _______?
Input
Output
Process
Storage
A knob is an example of an _______?
Input
Output
Process
Storage
Which of the following is NOT a mode of Operation for an AVR 8-bit timer/counter?
Clear Time on Compare (CTC)
Fast PWM Mode
Phase Correct PWM Mode
TWI Mode
Adding more lightbulbs to a series circuit makes the light brighter?
TRUE
FALSE
Which of the following statements is true?
Analog pins convert analog input signals using ADC (analog-to-digital-converter)
PWM pins can mimic the results of an analog signal.
Analog pins are a useful interface for sensors that generate output
All of the above
Which board does NOT use an ATmega32U4 as its primary processor?
Arduino Leonardo
Arduino Mega
Arduino Micro
Arduino Yun
A push button is an example of an ___________ .
Input
Output
Storage
Process
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.
Sketch Editor
Text Console
Command Line
Serial Monitor
Anything that appears between /* and */ is ____________.
Used in arithmetic operations
Used to send instructions to the interpreter
Ignored by the compiler
Used once and then is ignored
Which of the following options is an alternative to the Arduino IDE for programming Arduino?
Visual Studio
Eclipse Arduino IDE
PlatformIO
All of the Above
Arduino undergoes pre-processing to turn your sketch into a(n) _______ program. Next dependencies of the sketch are found.
Arduino
Simple C
C/C++
Java
If you connect an LED to pin 13, digitalWrite (13, LOW) ?
Turns the LED on
Turns the LED off
Makes the LED dim
Makes the LED flicker
What is the numeric value of the character "H" ?
74
68
72
73
It is used for controlling Arduino board and performing computations.
Structure
Variables
Functions
Sketch
What Arduino API used to assign constants and data types?
Sketch
Functions
Structure
Variables
What is the file extension of a Sketch file?
.c++
.cc
.ino
.exe
What Arduino program function is used to define things, serial communication and initialization of libraries?
Array
void setup
If Else
void loop
What Arduino commands is used to print the value to the serial monitor?
serial.print
serial.display
serial.println
serial.value
What is the correct file extension on an Arduino Library?
.cc
.ino
.lib
.h
What feature does Arduino IDE 2.0.x differs from IDE 1.8.x?
it has legacy editor function
it uses Java IDE
it supports Auto-completion and Debugging.
It provides auto restart and power cycle
What makes Arduino CLI unique to other version?
It has web user interface.
It has auto debugging feature
It has no visual UI
It can store Sketch file on the web.
What term refers to a function where your main program is store and it will run as long as the Arduino board is powered
Array
Loop
If Else
Break
A function used to pause the program for a set number of milliseconds.
loop
delay
digitalWrite
millis
What function is use to allow multiple events from happening simultaneously, without pausing the program code?
Loop
Delay
interval
millis
What data type is used for numbers with lots of decimals?
int
string
float
bool
What function is used to configure digital pin to behave as an input or output?
pinMode
digitalWrite
serial.print
serial.read
What function used to read the state of a digital pin?
digitalWrite
digitalRead
pinMode
serial.Read
What function is used to provide a value between and 8-bit resolution used for dimming lights or setting speed of a motor?
digitalWrite
analogWrite
Setup.Write
analogRead
