JAVA string
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Wayground Content
Used 26+ times
FREE Resource
Enhance your content in a minute
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type gets returned from length() method in String class?
double
String
int
number
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String txt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
What is the correct way to find the length of "txt" string?
int len = length(txt);
float len = txt.length();
int len = txt.length();
double len = length(txt);
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is correct method to convert String into uppercase
changeUpperCase()
convertUpperCase()
toUpper()
toUpperCase()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String word = "A few good men";
What is word.charAt(7) ?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String word = "A few good men";
What is word.length()?
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method to use to find length of a string?
length()
size()
long()
count()
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Choose correct purpose of indexOf() in String class.
returns the index (the position) of the last occurrence of a specified text in a string
returns the character of the first occurrence of a specified character in a string
returns the index (the position) of the first occurrence of a specified text in a string (excluding whitespace)
returns the index (the position) of the first occurrence of a specified text in a string (including whitespace)
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
20 questions
Utilizarea calculatorului 4
Quiz
•
9th - 12th Grade
20 questions
Module 21 - Local Area Networking 4
Quiz
•
9th - 12th Grade
20 questions
Kalėdos 2024
Quiz
•
9th Grade - University
15 questions
Quiz 1 - Serv 2
Quiz
•
9th - 12th Grade
20 questions
Ulangan Harian Analisis Data 8C
Quiz
•
8th Grade - University
20 questions
Ch.8 - Introducing Python
Quiz
•
6th Grade - Professio...
20 questions
HTML
Quiz
•
10th - 12th Grade
19 questions
программирование
Quiz
•
9th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
