
JAVA Quiz
Quiz
•
Education
•
University
•
Practice Problem
•
Hard
Mustkeem Sheikh
Used 1+ times
FREE Resource
Enhance your content in a minute
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. Who invented Java Programming?
a) Guido van Rossum
b) James Gosling
c) Dennis Ritchie
d) Bjarne Stroustrup
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2. Which component is used to compile, debug and execute the java programs?
a) JRE
b) JIT
c) JDK
d) JVM
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3. What will be the output of the following Java code?
1. class increment {
2. public static void main(String args[])
3. {
4. int g = 3;
5. System.out.print(++g * 8);
6. }
7. }
a) 32
b) 33
c) 24
d) 25
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4. Which of the following is not an OOPS concept in Java?
a) Polymorphism
b) Inheritance
c) Compilation
d) Encapsulation
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5. What is not the use of “this” keyword in Java?
a) Referring to the instance variable when a local variable has the same name
b) Passing itself to the method of the same class
c) Passing itself to another method
d) Calling another constructor in constructor chaining
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6. What will be the error in the following Java code?
byte b = 50;
b = b *50;
a) b cannot contain value 50
b) b cannot contain value 100, limited by its range
c) No error in this code
d) operator has converted b 50 into int, which can not be converted to byte without casting
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7. What will be the output of the following Java program?
1. class evaluate
2. {
3. public static void main(String args[])
4. {
5. int a[] = {1,2,3,4,5};
6. int d[] = a;
7. int sum = 0;
8. for (int j = 0; j < 3; ++j)
9. sum += (a[j] * d[j + 1]) + (a[j + 1] * d[j]);
10. System.out.println(sum);
11. }
}
a) 38
b) 39
c) 40
d) 41
Access all questions and much more by creating a free account
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
20 questions
FAHM Trivia
Quiz
•
University
20 questions
UH KELAS X
Quiz
•
10th Grade - University
21 questions
Niveles de lectura
Quiz
•
University
20 questions
UTS BAHASA INDONESIA
Quiz
•
University
20 questions
identification des classes grammaticales
Quiz
•
University
20 questions
Ujian Tengah Semester
Quiz
•
University
20 questions
Teknologi Informasi
Quiz
•
University
20 questions
QUIZ QH XII BAB 5 - 20 Soal
Quiz
•
University
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 Education
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
