Java String, Character, and Stringbuilder

Java String, Character, and Stringbuilder

Assessment

Quiz

Computers

Professional Development

Medium

Created by

riszty moyo

Used 28+ times

FREE Resource

Student preview

quiz-placeholder

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?