Search Header Logo

Java Character and String class methods

Authored by Claire Firman

Computers

10th - 12th Grade

Used 27+ times

Java Character and String class methods
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

What method would you use to see if two String's are equal?

==

.equals

.equal

.similar

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method would you use to see if two String's are in alphabetical order?

.compareTo

.alpha

.orderBy

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method would you use to check if two String's are the same excluding upper and lower case?

.equalsIgnoreCase

.theSameNoCase

.isItEqual

.equalsNoCase

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method do you use to find how many characters are in a String?

.length

.numChars

.noNo

.lenCh

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To find where in a String a certain character can be found, use this method:

.indexOf

.whereIsIt

.charAt

.substring

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

"Anne".compareTo("Bill") > 0

TRUE or FALSE?

TRUE

FALSE

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

"Mandela".length()

7

6

8

5

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?