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
What is a Conditional Statement in programming?
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 Wayground
7 questions
Karel Programming Drill

Quiz
•
8th Grade
6 questions
Coding Karel 1

Quiz
•
KG - University
6 questions
PIDAUSE-2do Trimestre-2do Grado

Quiz
•
8th Grade
10 questions
Introduction to Robotics

Quiz
•
7th Grade
5 questions
Karel's For Loops and Comments DRILL

Quiz
•
8th Grade
12 questions
ROBOTICS 6

Quiz
•
6th Grade
10 questions
Proper Keyboarding

Quiz
•
6th Grade
10 questions
Grade 5 Ms Excel

Quiz
•
5th - 6th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
15 questions
Computer Components Video

Interactive video
•
8th Grade