
CSF 2.10 Conditionals
Authored by Christopher Cole
Computers
9th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a "bug" in programming?
A mistake in a program.
A type of insect that interferes with computers.
A feature that makes a program run faster.
A command that tells Karel to move.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of conditionals in programming?
To create visual animations.
To ask questions that return a true or false answer.
To define new commands for Karel.
To repeat a block of code multiple times.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a Karel conditional?
front_is_clear()
balls_present()
turn_right()
facing_north()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When does the code inside an if statement execute?
Always, regardless of the condition.
Only if the condition is true.
Only if the condition is false.
After a loop has finished.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What punctuation mark is used at the end of the 'if condition' line in an if statement?
Semicolon (;)
Period (.)
Comma (,)
Colon (:)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In an if statement, how is the code that should be executed if the condition is true typically formatted?
It is placed on the same line as the if condition.
It is indented one level.
It is enclosed in curly braces {}.
It is preceded by a hashtag (#).
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why are parentheses used after front_is_clear in if front_is_clear(): move()?
To indicate it's a variable.
To make the code easier to read.
Because front_is_clear is a function being called.
To signify the end of the statement.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
ICT 9 Pre-Test
Quiz
•
9th Grade
10 questions
AI and Python: Ch.1 Revision
Quiz
•
9th Grade
10 questions
Keyboarding Terms
Quiz
•
9th - 12th Grade
10 questions
Topologies and Architecture
Quiz
•
9th - 12th Grade
10 questions
Word basics
Quiz
•
8th - 12th Grade
10 questions
Online Databases vs. Search Engines
Quiz
•
6th - 10th Grade
10 questions
Microsoft Publisher
Quiz
•
7th - 10th Grade
10 questions
Logic Gates
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
20 questions
Exponent Properties
Quiz
•
9th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade