If statements DRILL

If statements DRILL

8th Grade

5 Qs

quiz-placeholder

Similar activities

Scratch Quiz 3 - 2026

Scratch Quiz 3 - 2026

4th - 11th Grade

10 Qs

VEXCode VR Unit 3 Quizizz

VEXCode VR Unit 3 Quizizz

8th Grade

7 Qs

Conditional Statements

Conditional Statements

6th - 12th Grade

10 Qs

JSPS Competition Hackathon - Scratch Language - Grade 1

JSPS Competition Hackathon - Scratch Language - Grade 1

2nd Grade - University

10 Qs

Beginning Kodu

Beginning Kodu

6th - 8th Grade

9 Qs

VEX VR Automation and Conditional Statements

VEX VR Automation and Conditional Statements

7th - 8th Grade

9 Qs

Code.org Unit 3 Lessons 15-17

Code.org Unit 3 Lessons 15-17

6th - 8th Grade

10 Qs

Functions in Karel (CodeHS)

Functions in Karel (CodeHS)

8th Grade

5 Qs

If statements DRILL

If statements DRILL

Assessment

Quiz

Computers

8th Grade

Easy

Created by

Jonathan Smith

Used 4+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of using if statements in Karel's programming?

To make Karel move faster

To allow Karel to make decisions based on conditions

To collect more tennis balls

To create a maze

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If Karel encounters a wall, which of the following code snippets correctly uses an if statement to respond?

`if(frontIsBlocked()) {turnLeft();}`

`if(turnLeft()) {move();}`

`if(move()) {frontIsClear();}`

`if(ballsPresent()) {move();}`

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following conditions can be used to check if Karel is facing north?

`if(facingWest()) {move();}`

`if(facingSouth()) {turnRight();}`

`if(facingEast()) {turnLeft();}`

`if(facingNorth()) {move();}`

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if Karel executes a move command when the front is blocked?

Karel will move through the wall

Karel will crash and stop

Karel will pick up a ball

Karel will turn left

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can Karel check if there are no tennis balls present on the current corner?

`if(frontIsBlocked()) {move();}`

`if(ballsPresent()) {turnLeft();}`

`if(noBallsPresent()) {move();}`

`if(turnLeft()) {move();}`