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
CVC short /e/

Flashcard
•
KG
12 questions
String Handling Flashcard

Flashcard
•
11th Grade
14 questions
Halloween Java

Flashcard
•
12th Grade
9 questions
CSA Semester 2 Final

Flashcard
•
11th - 12th Grade
14 questions
MySQL Functions

Flashcard
•
12th Grade
15 questions
Java String and Array

Flashcard
•
Professional Development
14 questions
Java Math and String Libraries

Flashcard
•
9th - 12th Grade
15 questions
UD1_WINDOWS

Flashcard
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade