
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
10 questions
C Code Master lvl 2 A

Quiz
•
Professional Development
10 questions
Certification Course (Batch-01) | Quiz-03

Quiz
•
Professional Development
19 questions
Python Basic

Quiz
•
Professional Development
11 questions
print, input, type data, variable

Quiz
•
Professional Development
10 questions
Prueba Diagnostica Modulo 2

Quiz
•
Professional Development
10 questions
4CSO1-Q4

Quiz
•
Professional Development
15 questions
C PROGRAMMING BASICS-QUIZ-1

Quiz
•
Professional Development
16 questions
Think it through

Quiz
•
University - Professi...
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development