CS Unit 1 Quiz Review

CS Unit 1 Quiz Review

9th - 12th Grade

25 Qs

quiz-placeholder

Similar activities

Codehs

Codehs

7th - 9th Grade

20 Qs

CSE Codehs

CSE Codehs

7th - 9th Grade

20 Qs

 Java Unit 1 - Quiz Review

Java Unit 1 - Quiz Review

10th Grade

23 Qs

Karel and Programming Basics

Karel and Programming Basics

9th Grade

22 Qs

Karel Commands

Karel Commands

9th - 12th Grade

25 Qs

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

Karel the Dog Study Test

Karel the Dog Study Test

9th - 12th Grade

20 Qs

Programming with Karel Quiz

Programming with Karel Quiz

9th - 12th Grade

23 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?