
Java String, Character, and Stringbuilder
Authored by riszty moyo
Computers
Professional Development
Used 32+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
It is a method compares to Strings in the form of an integer value
equals
equalsIgnoreCase
compareTo
==
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The method returns the position of the character in the String.
indexOf( )
charAt( )
endsWith( )
replace( )
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The method returns the character indicated by its position used as argument inside the parenthesis.
indexOf( )
charAt( )
startsWith( )
replace( )
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Method that replaces all occurrences of some character within a String
replace()
remove()
set
update
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Places a String argument into the StringBuilder object.
add
append
insert
setCharAt
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
It is a method that adds characters at a specified location within the StringBuilder object.
append
add
insert
update
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
It is a method to change just one character in the StringBuilder object. Positions in StringBuilder objects starts with zero(0).
setCharAt
indexOf
charAt
updateChar
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?