The Arduino Platform and C Programming Quiz

The Arduino Platform and C Programming Quiz Answer. In this post you will get Quiz & Assignment  Answer Of The Arduino Platform and C Programming

 

The Arduino Platform and C Programming Quiz

Offered By ”University of California”

Enroll Now

Week- 1

Module 1 Quiz

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

1 point

  • Power connector
  • USB connector
  • ICSP header
  • HDMI connector

=================================================

 

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

1 point

  • 1
  • 2
  • 3
  • none

=================================================

 

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

1 point

  • Digital pin 1
  • Digital pin 13
  • Analog pin A0
  • Digital pin 0

=================================================

 

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

1 point

  • True
  • False

=================================================

 

5.
Question 5
Through what interface is the bootloader typically reprogrammed?

1 point

  • USB
  • ICSP
  • Digital I/O pins
  • Analog I/O pins

=================================================

 

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

1 point

  • True
  • False

=================================================

 

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

1 point

  • Upload
  • Save
  • Verify
  • Transfer

=================================================

 

8.
Question 8
Which statement about the serial monitor is NOT true?

1 point

  • The serial monitor is useful for debugging.
  • The serial monitor is a program that executes on the Arduino.
  • The serial monitor allows data to be sent from the Arduino to the host computer.
  • The serial monitor allows data to be sent from the host computer to the Arduino.

 

 

Peer-graded Assignment: Install the Arduino IDE on your computer

Download

[Attention]: To get any assignment File you must need to click here to subscribe to YouTube and after that fill up this google form]

 

Week- 2

Module 2 Quiz

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

1 point

stdlib.h

string.h

stdio.h

printer.h

=================================================

 

2.
Question 2
What does the ‘\n’ character mean?

1 point

newline

tab

end of line

end of file

=================================================

 

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

1 point

a character

a literal numerical value

a comment

a string

=================================================

 

4.
Question 4
What C type is one byte long?

1 point

string

float

int

char

=================================================

 

5.
Question 5
Does the following statement evaluate to True or False?

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

True

False

=================================================

 

6.
Question 6
What does the following program print to the screen?

123456789
int main (){
int x = 0, y = 1;
if (x || !y)
printf(“1”);
else if (y && x)
printf(“2”);
else
printf(“3”);
}
1 point

1

2

3

1 3

=================================================

 

7.
Question 7
What does the following program print to the screen?

1234567
int main (){
int x = 0, z = 2;
while (x < 3) {
printf (“%i “, x);
x = x + z;
}
}
1 point

0

0 1

0 2

0 1 2

=================================================

 

8.
Question 8
What does the following program print to the screen?

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

1 point

0

0 1

0 2

0 1 2

 

 

Peer-graded Assignment: Program to compute Fibonacci sequence

Download

[Attention]: To get any assignment File you must need to click here to subscribe to YouTube and after that fill up this google form]

 

Week- 3

Module 3 Quiz

1.
Question 1
What is the function of the linking process after compilation?

1 point

It writes the executable into the memory of the Arduino

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

It converts the format of the executable file into .hex format

All of the above

=================================================

 

2.
Question 2
What is the role of avrdude?

1 point

It writes the executable into the memory of the Arduino

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

It converts the format of the executable file into .hex format

None of the above

=================================================

 

3.
Question 3
Why are classes (in C++) useful?

1 point

Their use improves code performance

They reduce the memory requirements on the processor

They allow the programmer to evaluate the performance of the system

They improve the organization and understandability of the code

=================================================

 

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

1 point

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

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

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

The name of the class can be concatenated with the name of the function, with no symbol in between.

=================================================

 

5.
Question 5
Which of the following statements is true?

1 point

The setup() function is executed once and the loop() function is executed a fixed number of times.

The setup() function is executed after each iteration of loop().

The loop() function must contain either a while loop or a for loop.

The setup() function is executed once and the loop() function is executed iteratively, as long as the Arduino is powered on.

=================================================

 

6.
Question 6
True or False: An analog pin can accept analog inputs and drive analog outputs.

1 point

True

False

=================================================

 

7.
Question 7
If a sketch running on an Arduino UNO executes the following statements, what voltage would be expected on pin 1 afterwards?

12
pinMode(1, OUTPUT);
digitalWrite(1, HIGH);
1 point

0

3.3

5

12

=================================================

 

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

1 point

True

False

 

 

Week- 4

Module 4 Quiz

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

1 point

An LED connected to a wire in the circuit

A printf() statement in a C program

A breakpoint in an Arduino sketch

A switch connected to an Arduino input pin

=================================================

 

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

1 point

The ability to control the inputs to the target microcontroller

The ability to control the outputs of the microcontroller

The ability of the target microcontroller to control its own inputs

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

=================================================

 

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

1 point

Remote debugging allows control of registers and memory

Remote debugging provides excellent functional accuracy

Remote debugging allows good run control

Remote debugging requires an extra communication channel for debugging

=================================================

 

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

1 point

Extra pins are needed to support debugging

Breakpoints and watchpoints are supported

Automatic test generation is commonly supported

On-the-fly memory access is supported

=================================================

 

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

1 point

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

A shared clock is not required

Fewer wires are needed for communication as compared to a parallel protocol

Fewer pins are needed than using a parallel protocol

=================================================

 

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

1 point

The bit duration is the inverse of the baud rate

The bit duration is determined by the baud rate

The data transmission rate is equal to the baud rate

The baud rate is the maximum number of transitions per second

=================================================

 

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

1 point

True

False

=================================================

 

8.
Question 8
An error in bit transmission (perhaps due to noise) may not be detected, even if a parity bit is used.

1 point

True

False

 

 

Peer-graded Assignment: Module 4 Peer Review

Download

 

[Attention]: To get any assignment File you must need to click here to subscribe to YouTube and after that fill up this google form]

Other Questions Of This Category