Intro to Java Exam Review

Intro to Java Exam Review

9th - 12th Grade

40 Qs

quiz-placeholder

Similar activities

Kuis Analisis Data

Kuis Analisis Data

10th Grade

40 Qs

TEKNIK KOMPUTER & JARINGAN X

TEKNIK KOMPUTER & JARINGAN X

10th Grade

40 Qs

ASJ TKJ Debian 8.0

ASJ TKJ Debian 8.0

11th Grade

40 Qs

City and Guilds Award in Cloud Services

City and Guilds Award in Cloud Services

12th Grade

40 Qs

Komunikasi Nirkabel Pita Lebar

Komunikasi Nirkabel Pita Lebar

12th Grade

35 Qs

một số dịch vụ cơ bản của internet

một số dịch vụ cơ bản của internet

12th Grade

36 Qs

ôn tập 12k1

ôn tập 12k1

12th Grade

44 Qs

Internet Ethics

Internet Ethics

9th Grade

40 Qs

Intro to Java Exam Review

Intro to Java Exam Review

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Kelly Kroft

Used 9+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

What is wrong with this method declaration?

(I) Not using curly brackets

(II) Missing void

(III) Using public instead of private

(IV) Illegal characters in the method name

I only

I and II

I, II, and III

I, II, III, IV

2.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

How can we teach Karel new commands?

A for loop

A while loop

Define a new method

The run method

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Why does a programmer indent their code?

Helps show the structure of the code.

Easier for other people to understand.

A key part of good programming style!

All of the above

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which of these is a valid Karel command in Java?

turnLeft();

turnleft();

turnLeft()

TurnLeft

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Say you want to write a program to have Karel put down 300 tennis balls. Which control structure would you use?

An if statement

A for loop

A while loop

A nested while loop

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Say you want to write a program to have Karel to pick up all of the tennis balls in a location, but you don’t know how many tennis balls there are. Which control structure would you use?

An if statement

A for loop

A while loop

An if/else statement

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

What is the name of this class?

Karel

FunKarel

Run

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?