Java String & Math Class Review

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Quizizz 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
Similar Resources on Wayground
36 questions
AP CS A Midterm Review

Flashcard
•
9th - 12th Grade
35 questions
Project-Stem Python Final Exam

Flashcard
•
9th - 12th Grade
40 questions
AP Computer Science A Final Review

Flashcard
•
10th Grade - University
30 questions
Java Math and Misc (WU for VC 4)

Flashcard
•
10th - 12th Grade
29 questions
AP CSA Unit 3 Boolean Expressions

Flashcard
•
10th - 12th Grade
30 questions
Java Data Types Flashcard - Marvel

Flashcard
•
9th - 12th Grade
39 questions
021125 Project STEM Vocabulary and Concepts

Flashcard
•
9th - 12th Grade
33 questions
Java Programming Fundamentals Flashcard

Flashcard
•
9th - 12th 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
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
6 questions
RL.10.1 Cite Evidence

Quiz
•
10th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
14 questions
Algebra 1 SOL Review #1

Quiz
•
9th Grade