Twa kɔ nsɛm atitiriw so
Log in
Sign up for FREE
arrow_back
Laabri

3 - If statements, serial monitor, and digital signals

star
star
star
star
star
Last updated over 4 years ago
17 Nsɛmmisa

if-else Structure

These questions are based on the if-else slideshow found here.

1
1
1
1
1

Digital Signals

These questions are based on the Digital Inputs slide show found here.

1
1
1
1
1
1
1

Serial Monitor

These questions are based on the serial monitor slide show found here.

1
1
1
1
1
Asemmisa {{asɛmmisaAhyɛnsode}}
1.

Which of the following statements is true about if-blocks:

Asemmisa {{asɛmmisaAhyɛnsode}}
2.

Inside of the parentheses of an if statement goes the true or false statement known as the:

Asemmisa {{asɛmmisaAhyɛnsode}}
3.

Which of the following does NOT require a conditional expression:

Asemmisa {{asɛmmisaAhyɛnsode}}
4.

Which of these phrases summarises a simple if...else structure:

Asemmisa {{asɛmmisaAhyɛnsode}}
5.

When you have an if with no else if and no else clause, which of the following summarizes its behavior:

Asemmisa {{asɛmmisaAhyɛnsode}}
6.

All input to the Arduino comes to it from the outside world in what form:

Asemmisa {{asɛmmisaAhyɛnsode}}
7.

The Arduino will detect an input signal as digital with which of the following function calls?

Asemmisa {{asɛmmisaAhyɛnsode}}
8.

Which statement is true about signals and messages

Asemmisa {{asɛmmisaAhyɛnsode}}
9.

Which of the following functions is used for digital output?

Asemmisa {{asɛmmisaAhyɛnsode}}
10.

Which of the following is a good example of reading digital input from pin 4 and assigning the resulting value to the variable inputValue?

Asemmisa {{asɛmmisaAhyɛnsode}}
11.

How do you check to see if the button is being pushed?

Asemmisa {{asɛmmisaAhyɛnsode}}
12.

Match the signal value with the voltage level.

  • TRUE

  • 0

  • HIGH

  • LOW

  • FALSE

  • 1

  • Greater than 3.0 V

  • Less than 1.5 V

Asemmisa {{asɛmmisaAhyɛnsode}}
13.

What part of this command represents the value of the baud rate?

Serial.begin(9600);

Asemmisa {{asɛmmisaAhyɛnsode}}
14.

Which of the following is always the first serial command to use in a program?

Asemmisa {{asɛmmisaAhyɛnsode}}
15.

In what part of the program does the Serial.begin() function placed?

Asemmisa {{asɛmmisaAhyɛnsode}}
16.

Write the serial command that creates a new line after printing its requested text. Do not include printable text or the semicolon.

Asemmisa {{asɛmmisaAhyɛnsode}}
17.

What will be the displayed in the serial monitor if the following lines of code are run?