
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
10 questions
CSF 2.4

Quiz
•
9th Grade - University
8 questions
Adv CS I_Python_Intro to Programming

Quiz
•
12th Grade
10 questions
Pseudocode WHILE Loops

Quiz
•
10th - 12th Grade
12 questions
CodeHS 3.5 String Methods

Quiz
•
9th - 12th Grade
15 questions
Computer Science - Python

Quiz
•
9th - 12th Grade
15 questions
Iteration

Quiz
•
9th - 12th Grade
10 questions
CodeHS 2.11 If Statements

Quiz
•
9th - 12th Grade
15 questions
Python Basics Quiz

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade