
Java Quiz
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Easy
Shabbeer Ahmed
Used 2+ times
FREE Resource
Enhance your content in a minute
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
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
16 questions
Digital etiquette
Quiz
•
KG - Professional Dev...
14 questions
Revisão HTML / CSS - CEMI
Quiz
•
Professional Development
16 questions
Examen Acces
Quiz
•
Professional Development
10 questions
java
Quiz
•
Professional Development
10 questions
OSI Model - Network Layer
Quiz
•
9th Grade - Professio...
15 questions
Linked List
Quiz
•
Professional Development
10 questions
Python Basics
Quiz
•
Professional Development
10 questions
PDS - 04225 Pointers & Dynamic Arrays - Chapter 8
Quiz
•
University - Professi...
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th 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
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development
