
Adv CS- Javascript- Programming with Karel

Quiz
•
Computers
•
12th Grade
•
Medium
Simone CTA]
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following commands is a valid Karel command?
move
move;
move();
move()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why do we use functions in Karel programs?
Make our program more readable
Avoid repeating code
Break down our program into smaller parts
All of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is wrong with this for loop?
for (let i = 0, i < 10, i + 1) {
move();
}
I. The for loop uses commas instead of semicolons
II. It should say i++ instead of i + 1
I
II
I and II
The for loop is correct
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the proper format for a single line comment in Karel?
# This is a comment
/* This is a comment
// This is a comment
<comment>This is a comment</comment>
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid condition to go in an if statement for Karel?
leftIsBlocked()
turnLeft()
frontIsClear()
ballsPresent()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What condition should be used in this while loop to get Karel to pick up all the tennis balls on the current location?
while (________) {
takeBall();
}
noBallsPresent()
ballsPresent()
frontIsClear()
takeBall()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can we teach Karel new commands?
Define a new function
While loop
The main function
For loop
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
C# Structured, Selection and Iteration

Quiz
•
9th Grade - University
12 questions
Hour of Code

Quiz
•
6th - 12th Grade
14 questions
Code.org Unit 3

Quiz
•
9th - 12th Grade
10 questions
Pseudocode - OCR ERL

Quiz
•
9th - 12th Grade
10 questions
PRLD - Looping

Quiz
•
12th Grade
10 questions
Minecraft

Quiz
•
1st - 12th Grade
12 questions
Code Tracing Quiz

Quiz
•
9th - 12th Grade
10 questions
Arduino Basic Programming

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade