JAVA string

Flashcard
•
Computers
•
12th Grade
•
Easy

Wiem Khelifi
Used 1+ times
FREE Resource
Student preview

18 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? Options: length(), size(), long(), count()
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 the string txt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"?
Back
int len = txt.length();
5.
FLASHCARD QUESTION
Front
Which is correct method to convert String into uppercase? Options: 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
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
AP Physics 1 Semester Exam REVIEW

Flashcard
•
11th Grade
9 questions
Java String and Character Classes Revision

Flashcard
•
11th Grade
18 questions
JavaScript Variables, Data Types, and Operators Flashcard

Flashcard
•
University
15 questions
Law of Sines App. CFU M4CPHN

Flashcard
•
11th - 12th Grade
15 questions
Clothing Vocabulary ESL

Flashcard
•
University
15 questions
Root Words #10

Flashcard
•
11th - 12th Grade
13 questions
That hurt Vocab

Flashcard
•
11th Grade
16 questions
Arrays in C++ - CS172- Exercise #2

Flashcard
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade