
If statements DRILL
Authored by Jonathan Smith
Computers
8th Grade
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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();}`
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Программирование вложенных условий
Quiz
•
1st - 10th Grade
10 questions
3.4 Microbit RETRIEVAL PRACTICE
Quiz
•
6th - 9th Grade
10 questions
Year 8 - Progress Check 1 (Python Turtle Shapes)
Quiz
•
8th - 9th Grade
10 questions
Social media influencers
Quiz
•
6th - 12th Grade
10 questions
Swift Playgrounds Quiz
Quiz
•
8th Grade
10 questions
Basic Computer Skills
Quiz
•
6th - 8th Grade
9 questions
Technology Procedures
Quiz
•
3rd - 8th Grade
10 questions
Computer Viruses
Quiz
•
6th - 10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade