JAVA string
Flashcard
•
Computers
•
12th Grade
•
Practice Problem
•
Easy
Wiem Khelifi
Used 1+ times
FREE Resource
Student preview

18 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Is String a primitive data type?
Back
No
2.
FLASHCARD QUESTION
Front
Which method to use to find length of a string? Options: length(), size(), long(), count()
Back
length()
3.
FLASHCARD QUESTION
Front
Which data type gets returned from length() method in String class?
Back
int
4.
FLASHCARD QUESTION
Front
What is the correct way to find the length of the string txt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"?
Back
int len = txt.length();
5.
FLASHCARD QUESTION
Front
Which is correct method to convert String into uppercase? Options: changeUpperCase(), convertUpperCase(), toUpper(), toUpperCase()
Back
toUpperCase()
6.
FLASHCARD QUESTION
Front
String txt = "Hello World"; System.out.println(txt.toUpperCase());
Choose the correct output.
Back
HELLO WORLD
7.
FLASHCARD QUESTION
Front
Purpose of indexOf() in String class?
Back
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
10 questions
IGCSE Computer Science Flashcard
Flashcard
•
11th Grade
15 questions
Anatomy Review
Flashcard
•
12th Grade
15 questions
What is the ending sound?
Flashcard
•
KG
10 questions
Basic Chinese words
Flashcard
•
KG
15 questions
H. Anatomy Final- 1st Semester
Flashcard
•
KG - University
17 questions
STOMPI en Lydende vorm
Flashcard
•
11th Grade - University
18 questions
Networking Flashcard
Flashcard
•
12th Grade
15 questions
Uji Pengetahuan Sistem Komputer
Flashcard
•
12th Grade
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