OOP 1 Flashcards

(21 cards)

1
Q

a type of programming which uses
objects and classes its functioning.

based on real world entities like
inheritance, polymorphism, data hiding, etc.

It aims at binding together data and function work on these data sets into a single
entity to restrict their usage.

A

Object Oriented Programming (OOP)

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

What are the examples OOP languages?

A

JavaScript, C++, Java and Python.

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

What UML stands for?

A

Unified Modeling Language

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

It represents a unification of the concepts and notations presented by the three amigos in their
respective books.

A

Unified Modeling Language (UML)

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

UML is comprised of two major components

A

Meta-model and Notation

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

A standard data representation.

Is a description of UML in UML.

It describes the objects, attributes, and relationships necessary to represent the concepts of UML within a software application.

A

The Meta-model

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

It is rich and full bodied.

It is comprised of two major subdivisions.

For modeling the static elements of a design such as classes, attributes, and relationships.

For modeling the dynamic elements of a design such as objects, messages, and finite state machines.

A

Notation

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

Two main aspects of object-oriented programming.

A

Classes and Objects

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

A data-type that has its own members i.e.
data members and member functions.

It is the blueprint for an object in object oriented
programming language.

It is the basic building block of object oriented
programming in C++.

Is a user-defined data type

A

Class

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

Class:
Fruits

Objects:
Apple
Banana
Orange

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

An object is an instance of a class.

It is an entity with characteristics and behavior that are used in the object oriented programming.

An object is the entity that is created to allocate
memory.

A

Object

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

Are functions that belongs to the class.

A

Methods

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

Two ways to define functions that belongs to a class?

A

Inside class definition
Outside class definition

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

It is the concept of wrapping of data and functions together as a single unit.

A

Encapsulation

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

Refers to the act of representing essential features without including the back ground details or explanation.

Defined as a list of attributes such as size,weight, cost and functions to operate on these attributes.

A

Data Abstraction

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

It is the capability of a class to inherit or derive properties or characteristics from other class.

It allows reusability i.e. using a method defined in another class.

17
Q

The class that derives properties from other class.

A

Child Class or Subclass

18
Q

The class from which the properties are inherited.

A

Base Class or Parent Class

19
Q

It comes from the Greek words “poly” and “morphism”. “poly” means many and “morphism” means form i.e.. many forms.

It means the ability to take more than one form.

20
Q

Functions with the same name that can do multiple types based on some condition.

A

Function Overloading

21
Q

In operator overloading, function and operator can have multiple behavior in different instances of usage.

A

Operator Overloading