
Karel Quizzes 6-10 (Top Dwn- If State)
Authored by Fernando Alvarado
Computers
9th - 12th Grade
Used 30+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why do we use functions in programming?
Break down our program into smaller parts
Avoid repeating code
Make our program more readable
All of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is top down design?
Top down design is a way of designing your program by starting with the biggest problem and breaking it down into smaller and smaller pieces that are easier to solve.
Top down design is a way that you can create designs on a computer to put on a web page
Top down design is a way of designing your programs starting with the individual commands first
Top down design is a way to use loops and classes to decompose the problem
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a code comment?
A way to teach Karel a new word
A way to give notes to the reader to explain what your code is doing
A message to your teacher in code
A place to write whatever you want in your code
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What commands does SuperKarel know that regular Karel does not?
turnLeft() and jump()
turnRight() and jump()
turnAround() and turnRight()
turnAround() and jump()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the best way for Karel to move 10 times?
move();
move();
move();
move();
move();
move();
move();
move();
move();
move();
for (var i = 0; i < 10; i++) {
move();
}
move(10);
move10();
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why do we use if statements in JavaScript?
To break out of some block of code
To do something only if a condition is true
To do something while a condition is true
To repeat something for a fixed number of times
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which general if statement definition is written correctly?
for(condition) {
// code
}
if(condition) {
//code
}
if(var i = 0; i < count; i++) {
//code
}
if false {
//code
}
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?