Java String class methods
Quiz
•
Computers
•
10th - 12th Grade
•
Practice Problem
•
Medium
Claire Firman
Used 40+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Q1 M 2 - TOPIC 2 / Check your understanding
Quiz
•
10th Grade
10 questions
Intro to Windows Server 2012
Quiz
•
12th Grade
13 questions
Kuis Animasi 3D - 3
Quiz
•
11th Grade
15 questions
Encryption Quiz
Quiz
•
10th Grade
10 questions
Quiz Ms Word
Quiz
•
10th Grade
15 questions
Vocabulary of Computer
Quiz
•
12th Grade
10 questions
Sprawdź się
Quiz
•
4th - 12th Grade
15 questions
HTML
Quiz
•
8th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
