Is String a primitive data type?
Java String and Array

Flashcard
•
Professional Development
•
Hard
Quizizz Content
FREE Resource
Student preview

15 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
Which is correct method to convert String into uppercase: 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
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)
Create a free account and access millions of resources
Similar Resources on Quizizz
18 questions
JAVA string

Flashcard
•
12th Grade
15 questions
Repeated Addition and Arrays

Flashcard
•
KG
9 questions
TSSR - S04 - Bash

Flashcard
•
University
14 questions
Halloween Java

Flashcard
•
12th Grade
9 questions
Java OOP

Flashcard
•
Professional Development
10 questions
Halloween

Flashcard
•
Professional Development
10 questions
CMP128 Java Ch. 04 Loops Pt. 2

Flashcard
•
University
12 questions
Hashing and Hash Tables

Flashcard
•
University
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