Java set3

Quiz
•
Other
•
University
•
Hard
ESPARK 2023
Used 6+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
Data Types in C++

Quiz
•
University
8 questions
Q1Programming

Quiz
•
University
10 questions
3D printing

Quiz
•
University
15 questions
Engineers Day Celebration Quiz - Code IT, STME HYD

Quiz
•
University
10 questions
c set 3

Quiz
•
University
9 questions
obj

Quiz
•
8th Grade - Professio...
8 questions
football logo

Quiz
•
1st Grade - Professio...
10 questions
Arrays - 2D

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University