Search Header Logo

Practice for 8th AP Java Quiz

Authored by Arthur Simon

Computers

10th - 12th Grade

Used 109+ times

Practice for 8th AP Java Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A Java String is a

primitive

Object

char

bother

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of this program?

false true

true false

true true

false false

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Using + with Strings results in

concatenation

addition

encapsulation

an error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which replacement for /* missing code */ would print abba?

a+b+b+a

b+a+a+b

x+y+y+x

y+x+x+y

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following would return "x" for String s = new String("abcxcba")?

s.substring(3)

s.substring(4)

s.substring(3,4)

s.substring(4,5)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of this program?

j

the empty String

abcdefghij

error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which replacement for /* missing code */ would print zy?

s.substring(1,2)

s.substring(0,2)

str.substring(1,2)

str.substring(0,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?