Java set3
Quiz
•
Other
•
University
•
Practice Problem
•
Hard
ESPARK 2023
Used 6+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the superclass of Error class in Java?
Throwable
Exception
Runtine Exception
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int arr[] = {1, 2, 3, 4, 5};
for ( int i = 0; i < arr.length - 2; ++i)
System.out.println(arr[i] + " ");
1 2 3 4 5
1 2 3 4
1 2
1 2 3
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String c = "Hello i love java";
boolean var; var = c.startsWith("hello");
System.out.println(var);
0
1
true
false
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
double x = 2.0;
double y = 3.0;
double z = Math.pow( x, y );
System.out.print(z);
9.0
8.0
2.0
4.0
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ArrayLists obj = new ArrayLists();
obj.add("A");
obj.add("B");
obj.add("C");
obj.add(1, "D");
System.out.println(obj);
[A, D, C]
[A, B, c]
[A, B, C, D]
[A, D, B, C]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Evaluate the following Java expression
int x=3, y=5, and z=10;
int a = ++z + y - y + z + x++;
System.out.println(a);
24
23
20
25
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following for loop declaration is not valid?
for ( int i = 99; i >= 0; i / 9 )
for ( int i = 7; i <= 77; i += 7 )
for ( int i = 20; i >= 2; - -i )
for ( int i = 2; i <= 20; i = 2* i )
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
10 questions
ENGLISH PRETEST
Quiz
•
10th Grade - Professi...
15 questions
Universo actual
Quiz
•
University
10 questions
ROMANTYZM - wprowadzenie do epoki
Quiz
•
10th Grade - Professi...
15 questions
UAS PBE
Quiz
•
University
15 questions
Happy Retirement Ibu Rosamira
Quiz
•
University
10 questions
ANIME!!
Quiz
•
5th Grade - Professio...
10 questions
Guess the blackpink song lyrics
Quiz
•
4th Grade - Professio...
10 questions
MATHBOT CODES
Quiz
•
University
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 Other
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Slopes and Slope-Intercept Form
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
20 questions
Winter/Holiday Trivia
Quiz
•
KG - University
10 questions
WINTER WIN Time - ELA - 12/9/2025
Quiz
•
KG - University
7 questions
Human Impact on Resources
Interactive video
•
4th Grade - University
