OOPs_Quiz.md - brainchildservices/curriculum GitHub Wiki
-
What is meant by the term OOPs ?
OOPs refers to Object-Oriented Programming. It is the programming paradigm that is defined using objects. Objects can be considered as real-world instances of entities like class, that have some characteristics and behaviors.
-
What is the need for OOPs?
- OOPs helps users to understand the software easily, although they don’t know the actual implementation.
- With OOPs, the readability, understandability, and maintainability of the code increase multifold.
- Even very big software can be easily written and managed easily using OOPs.
-
What are some major Object Oriented Programming languages?
- C#
- C++
- Python
- Java
-
What are the main features of OOPs?
- Inheritance
- Encapsulation
- Polymorphism
- Abstraction
-
Describe Inheritance?
Inheritance is an important pillar of OOP(Object Oriented Programming). It is the mechanism in C# by which one class is allowed to inherit the features(fields and methods) of another class.
-
Describe Encapsulation?
Encapsulation is defined as the wrapping up of data under a single unit. It is the mechanism that binds together code and the data it manipulates. In a different way, encapsulation is a protective shield that prevents the data from being accessed by the code outside this shield.
-
Describe Polymorphism?
Polymorphism means "many forms", and it occurs when we have many classes that are related to each other by inheritance.
-
Describe Abstraction?
Abstraction is the process of hiding certain details and showing only essential information to the user. Abstraction can be achieved with either abstract classes or interfaces
-
Why is OOPs so popular?
OOPs programming paradigm is considered as a better style of programming. Not only it helps in writing a complex piece of code easily, but it also allows users to handle and maintain them easily as well. Not only that, the main pillar of OOPs - Data Abstraction, Encapsulation, Inheritance, and Polymorphism, makes it easy for programmers to solve complex scenarios. As a result of these, OOPs is so popular.
-
_______ was the first language to be developed as a purely object-oriented programming language?
- Smalltalk
- C++
- C#
- Java
-
Who developed the first object-oriented programming language?
- Adele Goldberg
- Dennis Ritchie
- Alan Kay
- Andrea Ferro
-
Which of the following is not a main feature of OOPs?
- Encapsulation
- Polymorphism
- Exception
- Abstraction
-
_______ is the feature of the Object-oriented programming model which allows one class to derive features from another class?
- Encapsulation
- Polymorphism
- Data hiding
- Inheritance