
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 the correct syntax for an if statement that checks if a sensorValue is greater than 100.
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
Complete the if-else structure to turn the LED on when the button is pressed, and off otherwise.
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
DNA/RNA Mutations
Presentation
•
10th Grade
19 questions
Line and Rotational Symmetry
Presentation
•
10th Grade
23 questions
Covalent Bonds Notes
Presentation
•
10th Grade
21 questions
Web Design
Presentation
•
10th - 11th Grade
20 questions
Narrative Text
Presentation
•
10th Grade
21 questions
Perencanaan usaha budidaya tanaman pangan SMA kelas X
Presentation
•
10th Grade
21 questions
Algoritma
Presentation
•
10th Grade
22 questions
Bahasa Inggris
Presentation
•
10th Grade
Popular Resources on Wayground
10 questions
How much do you know about our Portrait of an Eagle?
Quiz
•
10th Grade
10 questions
Fast Food Slogans
Quiz
•
6th - 8th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
20 questions
[AP CSP] Python Coding: Functions, Parameters, Return
Presentation
•
9th - 12th Grade
40 questions
Introduction to Microsoft Word
Quiz
•
8th - 12th Grade
20 questions
APCS Unit 1A
Quiz
•
9th - 12th Grade
24 questions
Binary
Quiz
•
9th - 12th Grade