
Conditional Structures in Arduino
Presentation
•
Computers
•
10th Grade
•
Practice Problem
•
Medium
Ruby Español
Used 16+ times
FREE Resource
19 Slides • 8 Questions
1
2
3
4
5
6
7
8
9
10
Multiple Choice
Which of the following is not true about a condition in Programming?
It's either true or false
usually made up by relational operator, but not all the time
the state of something with regard to its appearance, quality, or working order.
We use it in places such as if, for, and while, these control statements will only run when the condition is true
11
12
13
14
15
Multiple Choice
Which statement best describes an if condition?
It repeats actions forever
It stores values in memory
It checks if something is true before doing an action
It sends data to the cloud
16
Multiple Choice
What will this code do?
The LED turns off when the button is pressed
The LED blinks continuously
The LED turns on when the button is pressed
Nothing happens
17
Fill in the Blanks
Type answer...
18
19
20
21
Multiple Choice
An if statement always requires an else part.
TRUE
FALSE
22
Multiple Choice
You want your Arduino to display “Too Hot” when the temperature is above 30°C and “Normal” otherwise. Which is correct?
if (temp >= 30)
{
Serial.println("Too Hot");
}
else {
Serial.println("Normal"); }
if (temp > 30) {
Serial.println("Too Hot"); }
else {
Serial.println("Normal"); }
else (temp < 30) { Serial.println("Normal"); }
if (temp == 30) {
Serial.println("Normal"); }
23
Fill in the Blanks
Type answer...
24
25
26
Open Ended
In real life, we often face situations where we must decide based on conditions — just like in if-else coding. Can you share a moment where you had to make a fair or right decision based on a condition?
27
Show answer
Auto Play
Slide 1 / 27
SLIDE
Similar Resources on Wayground
22 questions
Parts of Speech Test Review 2
Presentation
•
9th - 10th Grade
20 questions
Transversal Angles
Presentation
•
10th Grade
21 questions
Similar Triangles
Presentation
•
10th Grade
19 questions
Vietnam: Moving Toward Conflict
Presentation
•
10th Grade
20 questions
Will
Presentation
•
KG
19 questions
Completing the Square
Presentation
•
10th Grade
23 questions
Feedback loops and Homeostasis
Presentation
•
10th Grade
21 questions
Monohybrid Crosses (Punnet Squares)
Presentation
•
9th - 10th Grade
Popular Resources on Wayground
20 questions
"What is the question asking??" Grades 3-5
Quiz
•
1st - 5th Grade
20 questions
“What is the question asking??” Grades 6-8
Quiz
•
6th - 8th Grade
10 questions
Fire Safety Quiz
Quiz
•
12th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
34 questions
STAAR Review 6th - 8th grade Reading Part 1
Quiz
•
6th - 8th Grade
20 questions
“What is the question asking??” English I-II
Quiz
•
9th - 12th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
47 questions
8th Grade Reading STAAR Ultimate Review!
Quiz
•
8th Grade
Discover more resources for Computers
20 questions
“What is the question asking??” English I-II
Quiz
•
9th - 12th Grade
10 questions
Fire Prevention
Quiz
•
9th - 12th Grade
50 questions
STAAR English 2 Review
Quiz
•
10th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade
20 questions
Grammar
Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 1 Review (CED)
Quiz
•
9th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade
11 questions
Expectations Review
Quiz
•
9th - 12th Grade