Book Appointment Now
The Arduino Platform and C Programming Quiz Answers
Table of Contents
All Weeks The Arduino Platform and C Programming Quiz Answers
Week 1: Arduino Environment
Q1. What type of connector does an Arduino UNO not contain?
Q2. How many microcontrollers are available for user programming on the Arduino UNO?
Q3. The Arduino UNO contains a user-controllable LED connected to which pin?
Q4. True or False: Analog pin A0 can be used as an analog output.
Q5. Through what interface is the bootloader typically reprogrammed?
Q6. True or False: The schematic shows the connections between components and their placement on the board.
Q7. What operation in the IDE triggers code to be written into the memory of the Arduino?
Q8. Which statement about the serial monitor is NOT true?
The serial monitor is a program that executes on the Arduino.
The Arduino Platform and C Programming Week 02 Quiz Answers
Q1. What is the name of the library which contains the printf() function?
Q2. What does the ‘\n’ character mean?
Q3. What type of data is surrounded by double quotes in a program?
Q4. What C type is one byte long?
Q5. Does the following statement evaluate to True or False?
(10 || (5-2)) && ((6 / 2) – (1 + 2))
Q6. What does the following program print to the screen?
int main (){ int x = 0, y = 1; if (x || !y) printf(“1”); else if (y && x) printf(“2”); else printf(“3”); }
Q7. What does the following program print to the screen?
int main (){ int x = 0, z = 2; while (x < 3) { printf (“%i “, x); x = x + z; } }
Q8. What does the following program print to the screen?
int foo (int q) { int x = 1; return (q + x); } int main (){ int x = 0; while (x < 3) { printf (“%i “, x); x = x + foo(x); } }
- 0 1
The Arduino Platform and C Programming Week 03 Quiz Answers
Q1. What is the function of the linking process after compilation?
Q2. What is the role of avrdude?
Q3. Why are classes (in C++) useful?
Q4. What is one way that a sketch can invoke a function contained inside a class?
Q5. Which of the following statements is true?
- The setup() function is executed once and the loop() function is executed iteratively, as long as the Arduino is powered on.
Q6. True or False: An analog pin can accept analog inputs and drive analog outputs.
Q7. If a sketch running on an Arduino UNO executes the following statements, what voltage would be expected on pin 1 afterwards?
pinMode(1, OUTPUT); digitalWrite(1, HIGH);
Q8. True or False: The delay() function causes program execution to pause for a number of milliseconds.¶
- True
The Arduino Platform and C Programming Week 04 Quiz Answers
Q1. Which of the following does NOT provide observability in a system?
Q2. What is meant by the expression “run control of the target”?
Q3. What is NOT an advantage of using a remote debugger?
Q4. What is NOT a feature of an embedded debug interface?
Q5. Which of the following is NOT an advantage of the UART protocol?
Q6. Which of the following statements is NOT true about the UART protocol?
Q7. Synchronization is performed in the UART protocol based on the timing of the Start bit.
Q8. An error in bit transmission (perhaps due to noise) may not be detected, even if a parity bit is used.
- True
Next Quiz Answers >>
Interfacing with the Arduino Coursera Quiz Answers
<< Previous Quiz Answers
Introduction to the Internet of Things and Embedded Systems
All Quiz Answers of An Introduction to Programming the Internet of Things (IoT) Specialization Course
Course 1: Introduction to the Internet of Things and Embedded Systems
Course 2: The Arduino Platform and C Programming
Course 3: Interfacing with the Arduino
Course 4: The Raspberry Pi Platform and Python Programming for the Raspberry Pi
Course 5: Interfacing with the Raspberry Pi