
Java Quiz

Quiz
•
Computers
•
Professional Development
•
Easy
Shabbeer Ahmed
Used 2+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
JVM is platform independent.
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Output of this code is:
int a = 10, b = 017, c = 0X3A;
System.out.println (a + "," + b +"," + c);
10, 15, 58
10, 17, 13
10, 17, 0
10, 017, 0X3A
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Output of this code is:
int x = 10;
int y = 5;
System.out.println(++x+(++y));
15
16
17
18
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Output of this code is:
int x = 7;
int y = 7;
int z = x & y;
System.out.println("z = " + z);
14
0
1
7
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Output of this code is:
class Sample1{
public static void main(String [] args){
System.out.println("Inside main method line1");
}
static {
System.out.println("Inside class line1");
}
}
Inside main method line1
Inside class line1
Inside main method line1
Inside class line1
Inside class line1
Inside main method line1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Output of this code is:
Sample s = new Sample();
System.out.println(s instanceof Sample);
True
False
Compile Error
Runtime Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In which of the cases, an object is eligible for Garbage Collection?
(a) Demo d;
(b) Demo d = new Demo();
(c) Demo d = new Demo(); d = null;
a , c
b
b,c
a,b,c
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
JAVA QUIZ

Quiz
•
Professional Development
12 questions
Kotlin Quiz 4

Quiz
•
Professional Development
10 questions
Java SE: Programming I

Quiz
•
Professional Development
19 questions
Kotlin quiz 3

Quiz
•
Professional Development
10 questions
Java Increment & Decrement Operators

Quiz
•
Professional Development
10 questions
Java main() and Scanner

Quiz
•
Professional Development
10 questions
java 15-10-2023

Quiz
•
Professional Development
10 questions
Java MCQs

Quiz
•
Professional Development
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