Search Header Logo

Adv. CS II- Intro to Programming with Java

Authored by Simone CTA]

Computers

12th Grade

Adv. CS II- Intro to Programming with Java
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a valid Karel command in Java?

move()

move;

MOVE

move();

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the name of the method that gets called to start a Java Karel program?

move()

run()

start()

go()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct class signature for a Karel program named CleanupKarel?

CleanupKarel extends Karel

public CleanupKarel

public class CleanupKarel < Karel

public class CleanupKarel extends Karel

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a method in Karel?

A method is the way that you leave a note for someone else who reads the code.

A method is a command that Karel can do. It has a name and a set of instructions.

A method is something that lets you repeat a command a fixed number of times

A method is the name for an entire Java program

5.

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

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a valid way to write a single line comment in Java?

// This is a comment

++ This is a comment

This is a comment //

/* This is a comment

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct class signature in Java for a SuperKarel program?

public class FunKarel << SuperKarel

public class FunKarel extends Karel

public class FunKarel extends SuperKarel

public FunKarel extends SuperKarel

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?