String Method

Quiz
•
Computers
•
10th Grade
•
Hard
Namrata Dekate
Used 79+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
The "length" of a string is just the number of chars in it.
TRUE
FALSE
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
"Practice".compareTo("Perfect")
0
-1
10
13
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of these operators can be used to concatenate two or more String objects?
+
&
+=
None
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of these method of class String is used to extract a single character from a String object?
CHARAT()
charat()
charAt()
CharAt()
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of these data type value is returned by equals() method of String class?
char
int
boolean
All of the mentioned
6.
MULTIPLE SELECT QUESTION
20 sec • 1 pt
Which of these method of class String is used to remove leading and trailing whitespaces?
startsWith()
trim()
Trim()
doTrim()
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following statement is correct?
replace() method replaces all occurrences of one character in invoking string with another character.
replace() method replaces only first occurrence of a character in invoking string with another character.
replace() method replaces all the characters in invoking string with another character.
replace() method replaces last occurrence of a character in invoking string with another character.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Java-Quiz1

Quiz
•
10th Grade
15 questions
JAVA: Level-1

Quiz
•
5th - 12th Grade
13 questions
{CC} questions

Quiz
•
9th - 12th Grade
10 questions
Программирование C#

Quiz
•
1st - 10th Grade
10 questions
Delphi Arguments/Returns

Quiz
•
8th - 10th Grade
12 questions
N5 SDD - Python input and output

Quiz
•
7th - 11th Grade
15 questions
Șiruri de caractere - funcții

Quiz
•
10th Grade - University
7 questions
Delphi Revision Part 2

Quiz
•
8th - 10th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade