What is a Conditional Statement in programming?
If statements

Quiz
•
Computers
•
6th - 8th Grade
•
Medium
Jonathan Smith
Used 2+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A statement that executes a block of code only if a specified condition is true.
A statement that repeats a block of code a certain number of times.
A statement that defines a variable or a function.
A statement that ends the execution of a function.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Decomposition in programming is the process of breaking down a complex problem into smaller, more manageable parts. Which of the following best describes this concept?
Combining multiple tasks into one large task
Breaking down a complex problem into smaller parts
Ignoring the problem altogether
Solving the problem without any planning
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which conditional statement should be used for this situation:
If there is a ball present, Karel should take it. If there is no ball present, Karel should turn around.
if
if
if
if
else
none of these
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which conditional statement should be used for this situation:
If there is a ball present, Karel should take it. If the front is clear, Karel should move forward.
if
if
if
if
else
none of these
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which conditional statement should be used for this situation:
If there is a ball, Karel should take it. Then Karel should move forward.
if
if
if
if
else
none of these
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which conditional statement should be used for this situation:
If the front is clear, Karel should move. Otherwise, Karel should turn around.
if
if
if
if
else
none of these
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which conditional statement should be used for this situation:
Karel should drop a ball and then move forward until she reaches the end of the row.
if
if
if
if
else
none of these
Similar Resources on Quizizz
10 questions
Introduction to Programming

Quiz
•
7th Grade
10 questions
Explaining Scratch Code - Basics

Quiz
•
5th - 11th Grade
10 questions
CodeHS Intro to Programming - Karel Review

Quiz
•
7th Grade
10 questions
Coding 300 Coding Basics

Quiz
•
7th - 8th Grade
10 questions
KS4 Programming Techniques (1)

Quiz
•
8th - 10th Grade
10 questions
Y8 Java (Karel the dog)

Quiz
•
8th - 9th Grade
10 questions
Karel Review 1.1-1.4

Quiz
•
6th - 7th Grade
10 questions
Python - Conditional Programming

Quiz
•
8th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
12 questions
Dividing Fractions

Quiz
•
6th Grade
9 questions
1. Types of Energy

Quiz
•
6th Grade
20 questions
Parts of Speech

Quiz
•
3rd - 6th Grade
43 questions
LinkIt Test - 24-25_BM4_7th

Quiz
•
7th Grade
6 questions
Final Exam: Monster Waves

Quiz
•
6th Grade