0% found this document useful (2 votes)
6K views2 pages

Arduino Certification Exam Review

The document contains questions from an online quiz about Arduino and assembly programming. It asks about concepts like what the extension for assembly files is (.asm), what AVRDUDE does (uploads the hex file to the Arduino board), and what commands like INIT, LDI, and semicolons represent (init is a subroutine name, ldi loads immediate values, and semicolons indicate comments). The quiz contains 32 multiple choice questions testing knowledge of Arduino and assembly programming fundamentals.

Uploaded by

Ruthra Devi
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (2 votes)
6K views2 pages

Arduino Certification Exam Review

The document contains questions from an online quiz about Arduino and assembly programming. It asks about concepts like what the extension for assembly files is (.asm), what AVRDUDE does (uploads the hex file to the Arduino board), and what commands like INIT, LDI, and semicolons represent (init is a subroutine name, ldi loads immediate values, and semicolons indicate comments). The quiz contains 32 multiple choice questions testing knowledge of Arduino and assembly programming fundamentals.

Uploaded by

Ruthra Devi
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
  • Arduino Test - Quiz

10/9/21, 2:55 PM Arduino Test

You are logged in as RUTHRA DEVI A (Logout)

Arduino Test
Home ► ARD-TST-001 ► General ► Arduino Test

Quiz navigation Question 25 In the below code, what does init represents?
Complete init:

1 2 3 4 5 6 7 Mark 2.00 out of LDI R16, 0b00100000

2.00 OUT DDRB, R16

8 9 10 11 12 13 14
Flag question RET
15 16 17 18 19 20 21
Select one:
22 23 24 25 26 27 28
Library
29 30 31 32
None of them
Show all questions on one page
Subroutine name
Finish review
Program name

Question 26 What is the extension of the assembly program code?


Complete

Mark 2.00 out of Select one:


2.00 .hex
Flag question
.cpp
.asm
assembly

Question 27 With what extension the subroutine file is saved?


Complete

Mark 2.00 out of Select one:


2.00 None of them
Flag question
.s (in small letter)
.S (in capital letter)
.sub

Question 28 What does AVRA command do in Assembly program?


Complete

Mark 2.00 out of Select one:


2.00 Assembler that will generate a hex file
Flag question
Installer
Save the assembly code
Delete the assembly code

Question 29 What does the file #include <avr/io.h> contain?


Complete
Mark 2.00 out of Select one:
2.00 None of them
Flag question
libraries for the Makefile
libraries required to perform the input and output operations
libraries for the delay function
[Link] 1/2
10/9/21, 2:55 PM Arduino Test

Question 30 In the below code, semicolon represents ____________


Complete ;program to turn on the Dot LED

Mark 2.00 out of .include "/home/spoken/Assembly/[Link]"

2.00 ; Configure pin 13 on Arduino as Output

Quiz navigation Flag question ldi r16, 0b00100000

1 2 3 4 5 6 7 Select one:

8 9 10 11 12 13 14 Comment statements
Library statement
15 16 17 18 19 20 21
Executable code
22 23 24 25 26 27 28
None of them
29 30 31 32
Show all questions on one page
Finish review Question 31 What does AVRDUDE command do in Assembly program?
Complete

Mark 2.00 out of Select one:


2.00 Upload the hex file to the Arduino board
Flag question
Delete the hex file
Assemble the hex file
Save the hex files

Question 32 In the code ldi r16, 0b00100000,  ldi stands for __________.
Complete

Mark 2.00 out of Select one:


2.00 line immediate
Flag question
None of them
load immediate
load instructions

Finish review

You are logged in as RUTHRA DEVI A (Logout)

ARD-TST-001

[Link] 2/2

Common questions

Powered by AI

Generating and uploading a hex file are crucial steps in programming microcontrollers, as the hex file contains machine-readable code translated from high-level or assembly code. Tools like AVRA and AVRDUDE are used to assemble this code into a hex file and subsequently upload it to the microcontroller, thus enabling it to execute the programmed instructions .

The LDI instruction stands for 'Load Immediate'. It is used in assembly language to load a constant value directly into a register, facilitating quick data manipulation and preparation for further operations .

The AVRDUDE command is used to upload the hex file to the Arduino board, enabling the programmed code to be transferred and executed on the hardware .

In assembly code, the semicolon is used to introduce comment statements. These comments provide human-readable explanations of the code, making it easier to understand and maintain .

The instruction "OUT DDRB, R16" in assembly language is used to write the contents of register R16 to the Data Direction Register B (DDRB) of a microcontroller. This operation configures the direction of the pins on port B, setting them as either input or output, as defined by the value in R16 .

The file #include <avr/io.h> contains libraries required to perform input and output operations in an assembly program. It allows access to various I/O functionalities used in programming microcontrollers like the Arduino .

The AVRA command in an assembly program functions as an assembler that will generate a hex file .

Subroutine files in assembly language help organize code by separating frequently used code blocks or functions into reusable modules. These files, often saved with a specific extension like '.s' or '.S', facilitate better code management and modularity in complex programs .

In assembly programs, libraries provide predefined functionalities and routines that simplify the implementation of complex tasks. Specifically for input and output operations, libraries included via files like #include <avr/io.h> offer utility functions and macros that handle hardware-level interactions with ease and efficiency .

The '.asm' file extension is typically used for assembly program code, clearly indicating that the file contains source code written in assembly language. It helps organize and recognize files containing instructions for assembly programming .

1 (https://onlinetest.spoken-tutorial.org/mod/quiz/review.php?attempt=14 (https://onlinetest.spoken-tutorial.org/mod/quiz/rev
1 (https://onlinetest.spoken-tutorial.org/mod/quiz/review.php?attempt=14 (https://onlinetest.spoken-tutorial.org/mod/quiz/rev

You might also like