
String class methods
Authored by John Scutero
Computers
11th - 12th Grade
Used 16+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a String class method?
println
indexOf
word
getIt
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a String class method?
size
characters
className
substring
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a String class method?
substring
spaces
length
charAt
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many parameters can you give the substring method?
2
0
3
4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type does the length method return?
int
double
boolean
String
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a String method used for comparing two Strings?
compare
compareIt
compareTo
compareTheseTwo
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Are Strings primitive, objects, or neither?
primitive
Object
Neither
Access all questions and much more by creating a free account
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?