Java String class methods

Java String class methods

10th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

BTEC Level 3 Nat Ext Dip in Computing - Unit 2.1 Hardware and Software

BTEC Level 3 Nat Ext Dip in Computing - Unit 2.1 Hardware and Software

11th - 12th Grade

10 Qs

EmTech Q2 Post Test 2

EmTech Q2 Post Test 2

11th Grade

15 Qs

Program Efficiency 2

Program Efficiency 2

12th Grade

15 Qs

Pemrograman Dasar Kelas X TKJ Smt 2

Pemrograman Dasar Kelas X TKJ Smt 2

12th Grade - University

10 Qs

conditional constructs in Java

conditional constructs in Java

10th Grade

10 Qs

Accessing the Internet

Accessing the Internet

9th - 10th Grade

15 Qs

Grade 11 Term 4 Practice 2

Grade 11 Term 4 Practice 2

11th Grade

10 Qs

Java String class methods

Java String class methods

Assessment

Quiz

Computers

10th - 12th Grade

Practice Problem

Medium

Created by

Claire Firman

Used 40+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method would you use to check if two Strings are exactly the same?

equals()

equalsIgnoreCase()

toUpperCase()

toLowerCase()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method would you use to see if two Strings contain the same letters but ignoring capitals and small letters?

equals()

equalsIgnoreCase()

toUpperCase()

compareTo()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method was used to convert this String: "IT learners are clever" to "IT LEARNERS ARE CLEVER" ?

toUpperCase()

toLowerCase()

equalsIgnoreCase()

compareTo()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method was used to convert this String: "Life is TOO SHORT to be BORED" to: "life is too short to be bored" ?

toLowerCase()

toUpperCase()

equals()

equalsIgnoreCase()

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

True or False:

("Andy".compareTo("Andrew") > 0)

True

False

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Good or Bad Java:

if (greeting == "hello")

Good

Bad

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will print?

if ("Mac".compareTo("Mug") > 0)

System.out.println("Mac comes before Mug")

nothing

Mac comes before Mug

Create a free account and access millions of resources

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?

Discover more resources for Computers