Which method would you use to check if two Strings are exactly the same?
Java String class methods

Quiz
•
Computers
•
10th - 12th Grade
•
Medium
Claire Firman
Used 40+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Quizizz
8 questions
Operadores Lógicos y la Clase String en java

Quiz
•
11th Grade
10 questions
Quiz 15 - Array Basics

Quiz
•
11th Grade
10 questions
Arrays

Quiz
•
10th - 12th Grade
13 questions
APCSA Unit 3 Review

Quiz
•
9th - 12th Grade
14 questions
Exploring Computer Science

Quiz
•
10th - 12th Grade
10 questions
Functions and Parameters Summative preview

Quiz
•
9th - 12th Grade
10 questions
STRING HANDLING

Quiz
•
10th Grade
10 questions
String Methods

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University