CS Unit 1 Quiz Review

CS Unit 1 Quiz Review

9th - 12th Grade

25 Qs

quiz-placeholder

Similar activities

Karel 2.10, 2.11

Karel 2.10, 2.11

6th - 9th Grade

25 Qs

Karel Commands

Karel Commands

6th - 9th Grade

25 Qs

Karel Adventures

Karel Adventures

9th - 12th Grade

25 Qs

CODEHS KAREL

CODEHS KAREL

7th - 9th Grade

20 Qs

Karel the Dog Review

Karel the Dog Review

9th - 12th Grade

20 Qs

CodeHS Test

CodeHS Test

7th - 9th Grade

20 Qs

CodeHS History of Computers & Karel Functions 209

CodeHS History of Computers & Karel Functions 209

10th Grade

21 Qs

Karel Adventures

Karel Adventures

6th - 9th Grade

25 Qs

CS Unit 1 Quiz Review

CS Unit 1 Quiz Review

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

Chandra Batzel

Used 1+ times

FREE Resource

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.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?