String Method
Quiz
•
Computers
•
10th Grade
•
Hard
Namrata Dekate
Used 79+ times
FREE Resource
Enhance your content in a minute
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.
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?
Similar Resources on Wayground
15 questions
Program Implementation
Quiz
•
10th - 12th Grade
10 questions
Quiz 9 (15.09.2021)
Quiz
•
1st - 12th Grade
11 questions
Cascading Style Sheets
Quiz
•
8th - 12th Grade
15 questions
Algorithms
Quiz
•
7th - 10th Grade
10 questions
Fundamentals of Algorithms
Quiz
•
10th Grade
10 questions
Символьные и строковые величины
Quiz
•
10th Grade
10 questions
Evolution of Computer Programming
Quiz
•
10th Grade
10 questions
Conhecimentos prévios em Java
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
