Java String, Character, and Stringbuilder

Java String, Character, and Stringbuilder

Assessment

Quiz

Computers

Professional Development

Practice Problem

Medium

Created by

riszty moyo

Used 30+ 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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?