The Arduino Platform and C Programming Quiz Answers

About The Arduino Platform and C Programming Course

The Arduino is an open-source computer hardware/software platform for building digital devices and interactive objects that can sense and control the physical world around them. In this class, you will learn how the Arduino platform works in terms of the physical board and libraries and the IDE (integrated development environment).

You will also learn about shields, which are smaller boards that plug into the main Arduino board to perform other functions such as sensing light, heat, GPS tracking, or providing a user interface display. The course will also cover programming the Arduino using C code and accessing the pins on the board via the software to control external devices. Please note that this course does not include discussion forums.

Enroll on Coursera

The Arduino Platform and C Programming Quiz Answers

week 1: Arduino Environment

Q1. What type of connector does an Arduino UNO not contain?

  • HDMI connector

Q2. How many microcontrollers are available for user programming on the Arduino UNO?

  • 1

Q3. The Arduino UNO contains a user-controllable LED connected to which pin?

  • Digital pin 13

Q4. True or False: Analog pin A0 can be used as an analog output.

  • False

Q5. Through what interface is the bootloader typically reprogrammed?

  • ICSP

Q6. True or False: The schematic shows the connections between components and their placement on the board.

  • False

Q7. What operation in the IDE triggers code to be written into the memory of the Arduino?

  • Upload

Q8. Which statement about the serial monitor is NOT true?

The serial monitor is a program that executes on the Arduino.

week 2: C Programming

Q1. What is the name of the library which contains the printf() function?

  • stdio.h

Q2. What does the ‘\n’ character mean?

  • newline

Q3. What type of data is surrounded by double quotes in a program?

  • a string

Q4. What C type is one byte long?

  • char

Q5. Does the following statement evaluate to True or False?

(10 || (5-2)) && ((6 / 2) – (1 + 2))

  • False

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”); }

  • 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; } }

  • 0 2

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

week 3: Arduino Programs

Q1. What is the function of the linking process after compilation?

  • It merges the libraries with the application code into a single executable

Q2. What is the role of avrdude?

  • It writes the executable into the memory of the Arduino

Q3. Why are classes (in C++) useful?

  • They improve the organization and understandability of the code

Q4. What is one way that a sketch can invoke a function contained inside a class?

  • The name of the class can be concatenated with the name of the function, with a period in between.

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.

  • False

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);

  • 5

Q8. True or False: The delay() function causes program execution to pause for a number of milliseconds.

  • True

week 4: Module 4

Q1. Which of the following does NOT provide observability in a system?

  • A switch connected to an Arduino input pin

Q2. What is meant by the expression “run control of the target”?

  • The ability to stop and start the execution of the target microcontroller

Q3. What is NOT an advantage of using a remote debugger?

  • Remote debugging requires an extra communication channel for debugging

Q4. What is NOT a feature of an embedded debug interface?

  • Automatic test generation is commonly supported

Q5. Which of the following is NOT an advantage of the UART protocol?

  • Higher data transfer rates are typically achieved compared to a parallel protocol

Q6. Which of the following statements is NOT true about the UART protocol?

  • The data transmission rate is equal to the baud rate

Q7. Synchronization is performed in the UART protocol based on the timing of the Start bit.

  • True

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


Leave a Reply

error: Content is protected !!