Is String a primitive data type?
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
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 Quizizz
34 questions
AP Computer Science Principles Review

Flashcard
•
9th - 12th Grade
31 questions
Ujian Akhir Semester PBTGM

Flashcard
•
10th Grade
34 questions
AP CSA Unit 3

Flashcard
•
10th - 12th Grade
33 questions
AP Computer Science Applications - Final Exam Spring 2025

Flashcard
•
10th Grade
30 questions
AP CSA Exam Review 2019

Flashcard
•
10th Grade - University
30 questions
APCS A - Array 6.1,6.2,6.3,6.

Flashcard
•
9th - 12th Grade
34 questions
AP Computer Science Applications - Fall Semester Exam

Flashcard
•
11th Grade
35 questions
Unit 4 Review

Flashcard
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University