Java Character and String class methods

Java Character and String class methods

10th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

APCSA Search & Sort

APCSA Search & Sort

9th - 12th Grade

15 Qs

C# 11

C# 11

1st - 10th Grade

10 Qs

Java String and Character Classes Revision

Java String and Character Classes Revision

11th Grade

10 Qs

String Warm Up

String Warm Up

8th - 12th Grade

12 Qs

Java String Objects & Methods

Java String Objects & Methods

12th Grade

12 Qs

Coding Strings

Coding Strings

12th Grade - University

9 Qs

Computer Science - Python

Computer Science - Python

9th - 12th Grade

15 Qs

STRING HANDLING

STRING HANDLING

10th Grade

10 Qs

Java Character and String class methods

Java Character and String class methods

Assessment

Quiz

Computers

10th - 12th Grade

Medium

Created by

Claire Firman

Used 26+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?