
Core Java Quiz(PTP)

Quiz
•
Computers
•
University
•
Hard
padma priya
Used 6+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
1. List out principles of OOPS
Encapsulation
Data abstraction
Inheritance
Class
interface
Structure
Object
Variable
Constant
Message Communication
Polymorphism
Interface
2.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
2. What are Access Specifiers available in Java?
private
public
protected
private
public
protected
default or friendly
private
void
protected
extends
implements
private
protected
3.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
3. Which of the following statement is true regarding static fields and static methods in programming?
Static methods can access instance variables directly
Static fields are specific to each instance of a class
Static fields are shared among all instances of a class
None
4.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
4. Which event is triggered by clicking a button in a graphical user interface?
ActionEvent
KeyEvent
MouseEvent
ItemEvent
5.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
5. Which of the following packages is always imported by default in Java?
java.util
java.lang
java.awt
java.applet
6.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
6. what is size of int in Java?
2 bytes
1 byte
8 bytes
4 bytes
7.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
7. What is the primary characteristic of a final method in Java?
It can only be called within the class where it is defined.
It can be overridden by subclasses.
It cannot be overridden by subclasses.
It is restricted to use in abstract classes.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Java Quiz 1

Quiz
•
University
15 questions
Code Craft : Java & Web Quiz"

Quiz
•
University
10 questions
OOPJ- Data Types-Java

Quiz
•
University
10 questions
Java - Introduction

Quiz
•
University
10 questions
CMP128 Java Ch. 05 Methods

Quiz
•
University
12 questions
Java

Quiz
•
11th Grade - University
10 questions
ข้อสอบย่อยวิชา จาวาเว็บ ครั้งที่ 3

Quiz
•
University
8 questions
Dynamic Allocation

Quiz
•
University
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
Appointment Passes Review

Quiz
•
6th - 8th 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
20 questions
Grammar Review

Quiz
•
6th - 9th Grade