Core Java Quiz(PTP)

Core Java Quiz(PTP)

University

10 Qs

quiz-placeholder

Similar activities

Rapid Round 2

Rapid Round 2

University

10 Qs

Java Quiz 1

Java Quiz 1

University

10 Qs

Java Unit 1

Java Unit 1

University

10 Qs

JAVA III

JAVA III

University

10 Qs

Java Quiz 4

Java Quiz 4

University

15 Qs

Java Bootcamp Day 4

Java Bootcamp Day 4

University

15 Qs

JAVA-BootCamp - Day1

JAVA-BootCamp - Day1

University

15 Qs

CodeVerse_Quizz_Round_01

CodeVerse_Quizz_Round_01

University

15 Qs

Core Java Quiz(PTP)

Core Java Quiz(PTP)

Assessment

Quiz

Computers

University

Hard

Created by

padma priya

Used 6+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

  1. 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

  1. 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

  1. 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

  1. 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

  1. 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

  1. 6. what is size of int in Java?

2 bytes

1 byte

8 bytes

4 bytes

7.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

  1. 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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?