Java Mastery Challenge

Java Mastery Challenge

University

29 Qs

quiz-placeholder

Similar activities

interprog regex & compo

interprog regex & compo

University

27 Qs

ASSESSMENT | ARRAY

ASSESSMENT | ARRAY

University

26 Qs

Classical Cryptography Challenge

Classical Cryptography Challenge

University

25 Qs

Programming Fundamentals Quiz

Programming Fundamentals Quiz

University

28 Qs

Round2TechQuiz

Round2TechQuiz

University

30 Qs

Loops, enums,arrays,conditional statements, variables

Loops, enums,arrays,conditional statements, variables

University

30 Qs

Java OOP Quiz

Java OOP Quiz

University

30 Qs

Data Types and Variables Quiz

Data Types and Variables Quiz

University

30 Qs

Java Mastery Challenge

Java Mastery Challenge

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Yosuva Sirumani

Used 3+ times

FREE Resource

29 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main principle of Object-Oriented Programming?

Abstraction

Inheritance

Encapsulation

Polymorphism

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a feature of OOP?

Procedural programming

Inheritance

Object-oriented design

Encapsulation

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to create a class in Java?

class

create

function

define

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is inheritance in Java?

Inheritance in Java is a way to define multiple classes with the same name.

Inheritance allows a class to create new classes without any properties.

Inheritance in Java allows a class to inherit properties and behaviors (methods) from another class.

Inheritance is a method to delete properties from a class.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of polymorphism?

A method that returns the area of a shape.

A function that sorts an array of numbers.

A class that inherits properties from another class.

A function that calls a 'draw' method on different shape objects.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

The 'super' keyword is used to define interfaces.

The 'super' keyword is used to access superclass methods and constructors.

The 'super' keyword is used to declare variables.

The 'super' keyword is used to create new classes.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is encapsulation in Java?

Encapsulation is the process of creating multiple classes in Java.

Encapsulation is the bundling of data and methods that operate on that data, restricting direct access to some of the object's components.

Encapsulation refers to the inheritance of properties from a parent class.

Encapsulation is the method of optimizing code performance in Java.

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?