Java String and Array

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

15 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
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 Wayground
15 questions
Introduction to Java

Flashcard
•
University
13 questions
Data Structures and Algorithms - Flashcard 1

Flashcard
•
University
15 questions
measurement

Flashcard
•
KG
15 questions
Sizes, Length, Height, and Weight of Things

Flashcard
•
KG
15 questions
Trig and Pythagorean Theorem Review

Flashcard
•
KG
11 questions
Ruth

Flashcard
•
Professional Development
15 questions
ARRAYLIST - JAVA

Flashcard
•
University
10 questions
linux ubuntu

Flashcard
•
KG
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade