OOPS concepts

OOPS concepts

University

15 Qs

quiz-placeholder

Similar activities

Lenguaje de Definición de Datos

Lenguaje de Definición de Datos

University

18 Qs

Programacion Orientada a Objetos

Programacion Orientada a Objetos

12th Grade - University

10 Qs

Java Quiz 3

Java Quiz 3

University

15 Qs

JAVA - Arrays

JAVA - Arrays

University - Professional Development

15 Qs

PBO Inheritance Episode 2

PBO Inheritance Episode 2

University

18 Qs

Logika & Pemrograman (ID)

Logika & Pemrograman (ID)

10th Grade - Professional Development

20 Qs

Create a Website 1

Create a Website 1

KG - University

10 Qs

Java Control and Loop -2

Java Control and Loop -2

University

20 Qs

OOPS concepts

OOPS concepts

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Satya Maranganti

Used 35+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

To implement multiple inheritance in Java we use

Package

Abstract class

Interface

Abstract method

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Abstract class can have

Abstract methods

Methods with code implementation

Used to create objects

Used to create subclasses

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hybrid inheritance and multiple inheritance is possible in Java using the concept

Package

Interface

Super

Access specifiers

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Who invented Java?

Ryan Gosling

Bjarne Stroustrup

James Gosling

Guido van Rossum

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int[] myArray = {11, 22, 33, 44, 55};

which code is correct to print length of above int-array?

System.out.println(int[].myArray.length());

System.out.println(myArray.length);

System.out.println(myArray.length());

System.out.println(int[].myArray.size());

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The difference between static and non static method is ....

for non static method : user need to create object in a class to call a method.

A method is to perform only specific task.

There is no significant differences between static and non - static method.

Both are bounded with a class.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Assuming Point is a valid class, what would be the result of this code: Point p[] = new Point[10]; System.out.println(p[3].getX());

0

Null Pointer Exception

-999

Index Out of Bound Error

Access all questions and much more by creating a free account

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

Already have an account?

Discover more resources for Computers