Java String and Array

Flashcard
•
Professional Development
•
Hard
Wayground 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
Encryption and Digital Signatures Flashcard

Flashcard
•
University
9 questions
Python Programming Basics Flashcard

Flashcard
•
12th Grade
15 questions
ARRAYLIST - JAVA

Flashcard
•
University
10 questions
Java / Spring Boot

Flashcard
•
Professional Development
15 questions
measurement

Flashcard
•
KG
20 questions
Hardwired flashcard

Flashcard
•
University
13 questions
ÔN TẬP LÝ THUYẾT LẬP TRÌNH HƯỚNG ĐỐI TƯỢNG (OOP)

Flashcard
•
KG
11 questions
CS172 - Strings Week 12

Flashcard
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development