
CS Unit 1 Quiz Review
Authored by Chandra Batzel
Computers
9th - 12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these is a valid Karel command in Java?
move();
MOVE
move;
move()
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these is a valid Karel command in Java?
turnLeft();
turnleft();
turnLeft()
TurnLeft
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
public class FunKarel extends Karel
{
public void run()
{
move();
putBall();
move();
}
}
What is the name of this class?
Karel
FunKarel
Run
SuperKarel
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the name of the method that gets called to start a Java Karel program?
go()
start()
run()
move()
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which is the correct class signature for a Karel program named CleanupKarel?
public class CleanupKarel extends Karel
public class CleanupKarel < Karel
public CleanupKarel
CleanupKarel extends Karel
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these methods will create a method called turnRight that will have Karel turn left three times?
private void turnRight
{
turnLeft();
turnLeft();
turnLeft();
}
private void turnRight() { turnLeft turnLeft turnLeft }
private void turnRight() { turnLeft(); turnLeft(); turnLeft(); }
private turnRight() { turnLeft(); turnLeft(); turnLeft(); }
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is a method in Karel?
A method is the name for an entire Java program
A method is something that lets you repeat a command a fixed number of times
A method is a command that Karel can do. It has a name and a set of instructions.
A method is the way that you leave a note for someone else who reads the 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?