UNIT 2

UNIT 2

University

25 Qs

quiz-placeholder

Similar activities

Pretest Short Course MS Excel

Pretest Short Course MS Excel

University

20 Qs

BLDC Motor and ESC Quiz

BLDC Motor and ESC Quiz

7th Grade - University

20 Qs

MDM_III_TA_2

MDM_III_TA_2

University

20 Qs

Quiz Round For Group 1

Quiz Round For Group 1

University

20 Qs

Artificial Intelligence CT-5

Artificial Intelligence CT-5

University

20 Qs

FUNDAMENTALS OF BIOMETRIC SECURITY Module 1

FUNDAMENTALS OF BIOMETRIC SECURITY Module 1

University

20 Qs

C classroom activity 8.4.25

C classroom activity 8.4.25

University

20 Qs

Production Drawing

Production Drawing

University

20 Qs

UNIT 2

UNIT 2

Assessment

Quiz

Engineering

University

Practice Problem

Hard

Created by

Senbaga Rajan

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which concept allows two methods to have the same name but different parameters?

a) Overriding

b) Overloading

c) Dynamic dispatch

d) Encapsulation

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Java, objects are passed to methods:

a) By reference

b) By copy of the object

c) By value

d) By pointer

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A static nested class can access:

a) Only static members of outer class

b) All members of outer class

c) Only private members

d) Nothing from outer class

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used for inheritance?

a) implements

b) extend

c) inherit

d) None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Default package access modifier (no keyword) means:

a) private

b) protected

c) package-private

d) public

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If a method returns an object, what is returned?

a) A new copy of the object

b) The object’s reference

c) Object memory address

d) All of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When overriding a method:

a) Return type must always be exactly the same

b) Static methods can be overridden

c) Return type can be covariant

d) Return type can be anything

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?