OOP Flashcards

1
Q

What is meant by the term OOPs?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the need for OOPs?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are some major Object Oriented Programming languages?

A

Java
C++
Javascript
Python
PHP
and more

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are some other programming paradigms other than OOPs?

A

Imperative Programming Paradigm
Procedural Programming Paradigm
Object-Oriented Programming or OOP
Parallel Programming

Declarative Programming Paradigm
Logical Programming Paradigm
Functional Programming Paradigm
Database Programming Paradigm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is meant by Structured Programming?

A

Structure refers to a block, which contains a set of rules, and has a definitive control flow, such as (if/then/else), (while and for), block structures, and subroutines.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the main features of OOPs?

A

Inheritance
Encapsulation
Polymorphism
Data Abstraction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are some advantages of using OOPs?

A

OOPs is very helpful in solving very complex level of problems.
Highly complex programs can be created, handled, and maintained easily using object-oriented programming.
OOPs, promote code reuse, thereby reducing redundancy.
OOPs also helps to hide the unnecessary details with the help of Data Abstraction.
OOPs, are based on a bottom-up approach, unlike the Structural programming paradigm, which uses a top-down approach.
Polymorphism offers a lot of flexibility in OOPs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Why is OOPs so popular?

A

Writing a complex piece of code easily, but it also allows users to handle and maintain them easily as well.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a class?

A

A template or a blueprint, which contains some values, known as member data or member, and some set of rules, known as behaviors or functions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly