(Karel) While Loops & Control Structures Practice

(Karel) While Loops & Control Structures Practice

11th Grade

15 Qs

quiz-placeholder

Similar activities

Programming Fundamentals Review

Programming Fundamentals Review

9th - 12th Grade

11 Qs

Week 16 - Phone Numbers/License Plates/UPC

Week 16 - Phone Numbers/License Plates/UPC

9th - 12th Grade

10 Qs

Sonic-Pi

Sonic-Pi

7th - 12th Grade

16 Qs

Coding

Coding

5th - 12th Grade

14 Qs

Java Lesson 8

Java Lesson 8

5th Grade - University

13 Qs

Technology in Fashion

Technology in Fashion

KG - 12th Grade

15 Qs

EME316 Quiz 02

EME316 Quiz 02

10th Grade - University

15 Qs

Robotics Challenge 2020 SMKTU2

Robotics Challenge 2020 SMKTU2

7th Grade - University

20 Qs

(Karel) While Loops & Control Structures Practice

(Karel) While Loops & Control Structures Practice

Assessment

Quiz

Other

11th Grade

Medium

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?