Search Header Logo

Practice for 11th AP Java Quiz

Authored by Arthur Simon

Computers

9th - 12th Grade

Used 348+ times

Practice for 11th AP Java Quiz
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

Media Image

Which of the replacements for A and B would produce the output shown?

A=5 B=4

A=4 B=5

A=4 B=3

A=3 B=4

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of this program?

2

3

4

ArrayIndexOutOfBoundsException

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of this program?

2

3

4

ArrayIndexOutOfBoundsException

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which replacement for < MISSING CODE > traverses the array in row column order?

A only

B only

C only

D only

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Given the declarations and initializations, which of the following would cause an error?

letters1.contains('a')

letters2.contains('a')

letters3.contains("a")

none of these would cause an error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of this program?

2

3

4

ArrayIndexOutOfBoundsException

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of this program?

1

2

num: 1

num: 2

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?