3 - If statements, serial monitor, and digital signals
star
star
star
star
star
Last updated almost 4 years ago
17 questions
1
Which of the following statements is true about if-blocks:
Which of the following statements is true about if-blocks:
1
Inside of the parentheses of an if statement goes the true or false statement known as the:
Inside of the parentheses of an if statement goes the true or false statement known as the:
1
Which of the following does NOT require a conditional expression:
Which of the following does NOT require a conditional expression:
1
Which of these phrases summarises a simple if...else structure:
Which of these phrases summarises a simple if...else structure:
1
When you have an if with no else if and no else clause, which of the following summarizes its behavior:
When you have an if with no else if and no else clause, which of the following summarizes its behavior:
1
All input to the Arduino comes to it from the outside world in what form:
All input to the Arduino comes to it from the outside world in what form:
1
The Arduino will detect an input signal as digital with which of the following function calls?
The Arduino will detect an input signal as digital with which of the following function calls?
1
Which statement is true about signals and messages
Which statement is true about signals and messages
1
Which of the following functions is used for digital output?
Which of the following functions is used for digital output?
1
Which of the following is a good example of reading digital input from pin 4 and assigning the resulting value to the variable inputValue?
Which of the following is a good example of reading digital input from pin 4 and assigning the resulting value to the variable inputValue?
1
How do you check to see if the button is being pushed?
How do you check to see if the button is being pushed?
1
Match the signal value with the voltage level.
Match the signal value with the voltage level.
- FALSE
- 0
- TRUE
- 1
- HIGH
- LOW
- Greater than 3.0 V
- Less than 1.5 V
1
What part of this command represents the value of the baud rate?
Serial.begin(9600);
What part of this command represents the value of the baud rate?
Serial.begin(9600);
1
Which of the following is always the first serial command to use in a program?
Which of the following is always the first serial command to use in a program?
1
In what part of the program does the Serial.begin() function placed?
In what part of the program does the Serial.begin() function placed?
1
Write the serial command that creates a new line after printing its requested text. Do not include printable text or the semicolon.
Write the serial command that creates a new line after printing its requested text. Do not include printable text or the semicolon.
1
What will be the displayed in the serial monitor if the following lines of code are run?
What will be the displayed in the serial monitor if the following lines of code are run?