Quiz-Girlz

Quiz-Girlz

University

20 Qs

quiz-placeholder

Similar activities

keistimewaan OOP

keistimewaan OOP

University

15 Qs

JAVA Basics Quiz

JAVA Basics Quiz

University

20 Qs

Java Objects - Real world Scenarios - Practice Quiz

Java Objects - Real world Scenarios - Practice Quiz

University

20 Qs

Java

Java

University

18 Qs

Neo Coding Round 1 Set 1

Neo Coding Round 1 Set 1

University

25 Qs

Unit-I- Java-Basics-MCQ

Unit-I- Java-Basics-MCQ

University

15 Qs

T&P Java Inheritance

T&P Java Inheritance

University

16 Qs

Quiz 2 PBO

Quiz 2 PBO

University

20 Qs

Quiz-Girlz

Quiz-Girlz

Assessment

Quiz

Computers

University

Hard

Created by

Wayground Content

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'super' keyword in Java?

It calls the constructor of the parent class

It creates a new instance of the current class

It allows access to private members of the parent class

It defines a new method in the child class

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the "extends" keyword signify in Java?

It allows one class to inherit the properties and methods of another class

It is used to create an instance of a class

It defines a new method in a class

It is used to implement an interface

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following classes does not directly extend the Object class?

String

Integer

Array

All classes in Java directly extend Object class

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid type of inner class in Java?

Static inner class

Member inner class

Local inner class

All of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid reason to overload a method in Java?
- To perform similar operations with different argument types
- To change the return type of a method
- To perform similar operations with a different number of arguments
- To improve code readability and reusability

To perform similar operations with different argument types

To change the return type of a method

To perform similar operations with a different number of arguments

To improve code readability and reusability

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if a subclass does not have a constructor defined explicitly in Java?

The subclass will automatically call the constructor of the superclass.

The subclass will throw a compilation error.

The subclass will inherit the constructor from another subclass.

The subclass will create a default constructor with no parameters.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about method overloading?

The return type must be different for overloaded methods

The method name must be different for overloaded methods

Overloaded methods can have different parameter types or number of parameters

Overloading is not allowed in Java

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?