
Guess Which Color - SPIKE™ Prime with Python
Presentation
•
Engineering
•
8th Grade
•
Practice Problem
•
Easy
Heiko Olschewski
Used 6+ times
FREE Resource
10 Slides • 11 Questions
1
2
3
Multiple Choice
Why is it important to use conditional statements when programming a color sensor in Python?
They allow the program to make decisions based on sensor input.
They make the code run faster without any logic.
They are only used for debugging purposes.
They help to create random outputs.
4
5
Fill in the Blanks
6
Multiple Choice
Which symbol in a flowchart is used to show a decision to be made or a condition to be met?
Oval
Diamond
Rectangle
Parallelogram
7
8
Multiple Choice
Based on the flowchart, what happens if the color sensor detects blue?
Play Sound Dog Bark and Print What happened?
Play Sound Bird and Print Detected Blue
Play Sound Angry Cat and Print Detected Green
Play Sound Dog Barking and Print Detected Yellow
9
10
Multiple Select
Which of the following actions can occur if the color sensor does NOT detect blue, according to the second flowchart?
Play Sound Bird and Print Detected Blue
Play Sound Angry Cat and Print Detected Green
Play Sound Dog Barking and Print Detected Yellow
Print Detected Blue
11
Open Ended
Looking at both flowcharts, what is the main difference between the two in terms of decision-making?
12
13
Multiple Choice
What is the main purpose of using the 'elif' statement in the traffic light code shown?
To repeat the same action multiple times
To check multiple conditions in sequence
To end the program after one cycle
To print messages to the console
14
You also need the traffic_light() function from earlier.
Then do runloop.run(traffic_light(), main())
15
Flowchart for part 1
16
Fill in the Blanks
17
Multiple Select
Which of the following actions are performed by the traffic light code across both functions?
Cycle through green, yellow, and red lights
Check for special conditions using a color sensor
Print messages based on the current light state
Take a video of the traffic light
18
19
20
Open Ended
Why would you want to include if/else and elif statements in programs?
21
Open Ended
How do you think using conditional code with a color sensor can help you in creating interactive games or projects?
Show answer
Auto Play
Slide 1 / 21
SLIDE
Similar Resources on Wayground
16 questions
Subject-Object Pronouns (Compound)
Presentation
•
8th Grade
16 questions
Comparatives & Superlatives
Presentation
•
8th Grade
16 questions
Newton's First Law of Motion...
Presentation
•
8th Grade
16 questions
Slope Review
Presentation
•
8th Grade
16 questions
Solving Linear Equations
Presentation
•
8th Grade
16 questions
Ordering real numbers
Presentation
•
8th Grade
16 questions
SS8H4b
Presentation
•
8th Grade
16 questions
Energy Transformations
Presentation
•
8th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Assessment 2
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
12 questions
2026 TAP Technology in the Classroom
Presentation
•
Professional Development
15 questions
HCS SCI 05 Summer School Assessment 2 Review
Quiz
•
5th Grade
15 questions
HCS SCI 04 Summer School Review 2
Quiz
•
4th Grade
59 questions
Geometry Unit 3 Review
Quiz
•
9th - 12th Grade
14 questions
FAST ELA READING SMAPLE TEST MATERIALS
Passage
•
3rd Grade