
Java -Assessment Milestone -1
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Vijaya Kumar DTT
Used 2+ times
FREE Resource
Enhance your content in a minute
65 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary difference between JDK and JRE?
JDK is for development, JRE is for running Java programs
JRE includes JVM, JDK does not
JDK is platform-independent, JRE is not
JRE is for development, JDK is for running Java programs
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about encapsulation in Java?
It allows direct access to class variables
It hides the internal state of an object and provides access through methods
It prevents inheritance
It is used to achieve polymorphism
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? java public class Test { public static void main(String[] args) { String s = "Java"; s.concat(" Programming"); System.out.println(s); } }
Java Programming
Java
Null
Compilation Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to prevent a method from being overridden?
static
final
abstract
synchronized
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if a try block does not have a catch block?
Compilation error
Runtime error
The program executes normally if no exception occurs
The program always terminates
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of encapsulation in Java?
To allow direct access to class variables
To hide the internal state of an object and provide controlled access
To enable multiple inheritance
To prevent method overriding
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to inherit a class in Java?
implements
extends
super
this
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
60 questions
CBT MOCK 5
Quiz
•
University
70 questions
Computing A level AQA
Quiz
•
12th Grade - University
60 questions
UH 1 bahasa pemograman
Quiz
•
10th Grade - University
61 questions
DAta Structure-unit 1&2
Quiz
•
University
60 questions
Advanced Networking (Net102)
Quiz
•
University
60 questions
Jaringan dan Komunikasi Data - UAS (30 Juni 2025)
Quiz
•
University
60 questions
FIS-100 B - Introducción
Quiz
•
1st Grade - University
61 questions
4) 208.1 Basic Apache Configuration
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 Computers
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
