Java Character and String class methods

Java Character and String class methods

10th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Latihan Soal Daring Pemrograman Dasar (Java) - X TKJ

Latihan Soal Daring Pemrograman Dasar (Java) - X TKJ

10th Grade

15 Qs

Methods in Java

Methods in Java

11th - 12th Grade

10 Qs

Website Development 1 - Recall

Website Development 1 - Recall

11th Grade

10 Qs

Java String Methods

Java String Methods

12th Grade - University

9 Qs

C# 13

C# 13

10th Grade

10 Qs

Java Strings

Java Strings

9th - 12th Grade

12 Qs

Topics 7 & 8 - Static Methods/Variables and Null Keyword

Topics 7 & 8 - Static Methods/Variables and Null Keyword

12th Grade

8 Qs

AP CS A Unit 6 Quiz PRACTICE

AP CS A Unit 6 Quiz PRACTICE

9th - 12th 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 27+ 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?