
Test
Authored by VARDAN VARDAN
Computers
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Is String a primitive data type?
Yes
No
Both
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which method to use to find length of a string?
length()
size()
long()
count()
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which data type gets returned from length() method in String class?
double
String
int
number
4.
MULTIPLE CHOICE QUESTION
45 sec • 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
45 sec • 1 pt
Which is correct method to convert String into uppercase
changeUpperCase()
convertUpperCase()
toUpper()
toUpperCase()
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
String txt = "Hello World";
System.out.println(txt.toUpperCase());
Choose the correct output.
"HELLO WORLD"
HELLO WORLD
Hello world
Hello World
7.
MULTIPLE CHOICE QUESTION
45 sec • 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)
Access all questions and much more by creating a free account
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
40 questions
Java-Collections
Quiz
•
University
30 questions
C quiz by Rachai
Quiz
•
5th Grade - University
30 questions
Quiz on Quantum Computing
Quiz
•
University
30 questions
Lógica de programación
Quiz
•
University
40 questions
แบบทดสอบกลางภาควิชาเทคโนโลยีดิจิทัลเพื่อการจัดการอาชีพ
Quiz
•
University
30 questions
HCI-Chapter 8
Quiz
•
University
30 questions
Computer Programming-2
Quiz
•
University
30 questions
BlockChain & Cloud Computing
Quiz
•
University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
10 questions
14.2 Independent/Dependent Variables
Quiz
•
KG - University
18 questions
Great Lakes States
Quiz
•
KG - University
7 questions
DNA, Chromosomes, Genes, and Traits: An Intro to Heredity
Interactive video
•
11th Grade - University
7 questions
Reflexive Verbs in Spanish
Lesson
•
9th Grade - University
7 questions
Narrative Writing 1
Interactive video
•
4th Grade - University