Java Basics Recap
Quiz
•
Computers
•
9th Grade - University
•
Hard
Suprabha Malhar-Jain
Used 5+ times
FREE Resource
Enhance your content in a minute
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which method to use to find length of a string?
length()
size()
long()
count()
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Is String a primitive data type?
Yes
No
Both
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which data type gets returned from length() method in String class?
double
String
int
number
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
String txt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
What is the correct way to find the length of "txt" string?
int len = length(txt);
float len = txt.length();
int len = txt.length();
double len = length(txt);
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which is correct method to convert String into uppercase
changeUpperCase()
convertUpperCase()
toUpper()
toUpperCase()
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Choose correct purpose of indexOf() in String class.
returns the index (the position) of the last occurrence of a specified text in a string
returns the character of the first occurrence of a specified character in a string
returns the index (the position) of the first occurrence of a specified text in a string (excluding whitespace)
returns the index (the position) of the first occurrence of a specified text in a string (including whitespace)
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the return type of equalsIgnorecase() method?
int
String
char
boolean
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
C Programming Unit-1 Test-2
Quiz
•
University
20 questions
Html - язык гипертекстовой разметки
Quiz
•
10th Grade
20 questions
Java Quiz 1
Quiz
•
University
20 questions
TEST1.PY
Quiz
•
10th Grade - University
20 questions
Quiz Visual Studio
Quiz
•
12th Grade
20 questions
Data structure test1
Quiz
•
12th Grade
20 questions
Câu 21-40
Quiz
•
11th Grade
20 questions
Pemrograman Dasar 3
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
15 questions
Internet Vocabulary Notebook Check #2 - CTEA(2024)
Quiz
•
12th Grade
11 questions
Internet Terms Vocabulary- Notebook Check #1- CTEA
Quiz
•
12th Grade
39 questions
UNIT 7 and UNIT 8 — Multiple Choice Question Bank (Extracted)
Quiz
•
9th Grade
50 questions
Money Matters Fall 2025 Final Exam — Worksheet Questions
Quiz
•
12th Grade
47 questions
CSF Final Exam Practice
Quiz
•
9th - 12th Grade
