Search Header Logo
Peer Learning OOPS

Peer Learning OOPS

Assessment

Presentation

Professional Development, Education

Professional Development

Medium

Created by

18IT003 Abhijith V S

Used 6+ times

FREE Resource

6 Slides • 11 Questions

1

Peer Learning OOPS

Technical Aptitude - Level 2 Basics

Slide image

2

Multiple Select

Main features of OOPS

1

Encapsulation

2

Abstraction

3

Inheritance

4

Polymorphism

5

Exception handling

3

Main features of OOPS

- Inheritance

- Encapsulation

- Polymorphism

- Data Abstraction

Slide image

4

Multiple Choice

Which is known as Static Polymorphism ?

1

Compile Time

2

Run Time

3

Both are together called Static Polymorphism

4

None of the above

5

Multiple Choice

Which of the following is known as Dynamic Polymorphism ?

1

Compile Time

2

Run Time

3

Both are together called as Dynamic Polymorphism

4

None of the above

6

Static and Dynamic Polymorphism


- Compile time polymorphism is also known as Static Polymorphism


- Runtime polymorphism, also known as Dynamic Polymorphism

7

Multiple Choice

Is it always necessary to create objects from class?

1

Yes

2

No

8

Is it always necessary to create objects from class?

No. An object is necessary to be created if the base class has non-static methods. But if the class has static methods, then objects don’t need to be created. You can call the class method directly in this case, using the class name.

9

Multiple Select

Overloading and Overriding (Choose all options that apply)

1

Overloading is a compile-time polymorphism

2

Overriding is a runtime polymorphism

3

Overloading is a runtime polymorphism

4

Overriding is a compile-time polymorphism

10

Difference between overloading and overriding

Overloading is a compile-time polymorphism feature in which an entity has multiple implementations with the same name. For example, Method overloading and Operator overloading.


Overriding is a runtime polymorphism feature in which an entity has the same name, but its implementation changes during execution. For example, Method overriding.

11

Multiple Choice

public class Demo{

public static void main(String[] arr){

System.out.println(“Main1”);

}

public static void main(String arr){

System.out.println(“Main2”);

}

}


Predict the output.

1

Main1

2

Main2

3

Compile Error

4

Run Time Error

12

Multiple Select

Choose the right option for Private access Modifier

1

Not accessible from derived class

2

Accessible from derived class

3

Accessible from own class

4

Not accessible from own class

13

Multiple Select

Choose the right options for Protected access modifier.

1

Accessible within package

2

Not Accessible within package

3

Accessible outside package by sub class

4

Not Accessible outside package by sub class

14

Multiple Select

Choose the correct option on Array vs Array List.

1

Array: Size should be given at the time of declaration.

2

Array List: Size may not be required in declaration

3

Array: We need to specify index for operation

4

Array List: No Index required, instead we use inbuilt functions

15

Multiple Select

Difference - final , finally, finalize.

1

final: keyword

finally: block

finalize: method

2

final: keyword

finally: method

finalize: block

3

final: method

finally: block

finalize: method

4

final: block

finally: method

finalize: keyword

16

Poll

Feedback please...

Excellent

Good

Satisfactory

We expect something else

17

Thank you so much !!

Wish you all the best

Peer Learning OOPS

Technical Aptitude - Level 2 Basics

Slide image

Show answer

Auto Play

Slide 1 / 17

SLIDE