(Karel) While Loops & Control Structures Practice

Quiz
•
Other
•
11th Grade
•
Medium
Rosella Sprow
Used 4+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
What type of loop allows us to repeat code as long as a condition is true?
If Statement
While Loop
If/Else Statement
For Loop
2.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
What is the syntax for a while loop?
if(condition) {
// code to execute if condition is true }
if(condition) {
// code to execute if condition is true } else { // code to execute if condition is false }
for(var i = 0; i < 5; i++) { // code to execute }
while(condition) {
// code to execute while // condition is true }
3.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
What is the purpose of control structures in programming?
All of the above
To repeat code
To ask questions about the world
To shape the flow of programs
4.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
What is the purpose of an if-else statement?
To change what happens in a program based on if a statement is false
To repeat code a fixed number of times
To change what happens in a program based on if a statement is true
To repeat code
5.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
What is the best term that relates to the actions needed for an if/else statement?
else
if
while
otherwise
6.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
What type of loop is suitable for counting out five tennis balls?
If/Else Statement
If Statement
While Loop
For Loop
7.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
What is the purpose of the while loop in the given problem?
To repeat code
To ask questions about the world
To shape the flow of programs
To repeat a fixed number of times
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Spring Break Fun

Quiz
•
9th - 12th Grade
10 questions
Kuis

Quiz
•
11th Grade - University
15 questions
Loops and Lists and Arrays

Quiz
•
9th - 12th Grade
20 questions
Arrays

Quiz
•
9th - 12th Grade
20 questions
Scratch Quiz

Quiz
•
KG - Professional Dev...
14 questions
Intro to Python Programming Quiz 9D

Quiz
•
1st Grade - University
12 questions
Ch 04 - Communication Systems

Quiz
•
9th - 12th Grade
13 questions
TTT ops

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Other
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
20 questions
Scalars, Vectors & Graphs

Quiz
•
11th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
10 questions
Solving Equations Opener

Quiz
•
11th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade