Java String & Math Class Review
Flashcard
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

38 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?
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 "txt" string? Options: int len = length(txt);, float len = txt.length();, int len = txt.length();, double len = length(txt);
Back
int len = txt.length();
5.
FLASHCARD QUESTION
Front
String txt = "Hello World";
System.out.println(txt.toUpperCase());
Choose the correct output.
Back
HELLO WORLD
6.
FLASHCARD QUESTION
Front
Choose correct 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)
7.
FLASHCARD QUESTION
Front
What is the output of the following code?
String firstName = "John ";
String lastName = "Doe";
System.out.println(firstName.concat(lastName));
Back
John Doe
Create a free account and access millions of resources
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
33 questions
ETA Reviewer
Flashcard
•
8th Grade - University
36 questions
Unit 3 and 4 Review - CMU CS Academy
Flashcard
•
10th Grade
26 questions
Alphabet Flashcards
Flashcard
•
KG
22 questions
Transformations of functions
Flashcard
•
10th Grade
32 questions
Vocabulary Words and Definitions for Algebra I
Flashcard
•
9th Grade
24 questions
Solving and graphing inequalities
Flashcard
•
9th Grade
31 questions
Physics 8.05 - 8.08 Flashcards 'Electric Fields and Circuits'
Flashcard
•
9th Grade
26 questions
css 9 qtr 4 LO4 4.1 flashcards
Flashcard
•
9th 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