LESSON 1 - Procedural vs OOP Flashcards

1
Q

is a top-to-bottom approach where in we solve problem as straightforward as possible by getting into the main problem, dividing it into smaller subproblems, until we arrive at the solution

A

Procedural Programming

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

In this approach (Procedural Programming), we intend to create a program to do a _____ ____ for a specific purpose.

A

specific task

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  • it emphasizes the use of functions, loops, and conditional statements
  • code is structured as a sequence of operations
  • It’s often likened to a step by step recipe
A

Procedural Programming

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

This is a concept where we create a data model that defines both the data type and the types of operations that can be applied to the data model; This is an approach to design modular reusable software systems

A

Object-oriented programming

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

_____ ______ languages are considered as procedural. Examples are: C, Pascal, BASIC/VB, Ada and COBOL

A

Traditional Programming

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

is a paradigm based on the concept of “objects”

A

Object-oriented programming

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

In computer science, an ___ can be a variable, a data structure, a function, or a method, and as such, is a value in memory referenced by identifier

A

Object

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

represents a real entity with attributes and behaviors by combining the data and code into one - has a unique identity in the system

A

object

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

are instances of classes and encapsulate both data (attributes) and behavior (methods)

A

object

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

OOP languages includes…

A

Java, C++, python, Ruby, Objective-C, etc

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

is always related to real-world objects since we never limit their capabilities to only one task

A

Object-oriented Programming

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

OOP has access Modifiers named ___, ___, and ____

A

Public, Private and Protected

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

Procedural Programming focuses on __ While OOP focuses on __

A

Functions and objects

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

OOP has more features like ____ and ____

A

Inheritance and Polymorphism

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

adoption of all non private properties and methods of one class to the other

A

Inheritance

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

Advantages of Procedural Programming

A

Simplicity, Efficiency, and Transparency

15
Q

Ability of object to take on many forms and functions

A

Polymorphism

16
Q

Ideal for small scale applications

A

simplicity

16
Q

Can be more memory and CPU efficient for simple task

A

Efficiency

17
Q

Advantages of OO Programming

A

Reusability, Modularity, Maintainability, and Abstraction

17
Q

Code flow is easy to follow

A

Transparency

17
Q

Easier to maintain and extend

A

Maintainability

18
Q

Objects and classes promote code reusability

A

reusability

18
Q

Encapsulation leads to modular code

A

Modularity

19
Q

Complex systems can be represented more intuitively

A

Abstraction

20
Q

COBOL stands for

A

Common Business Oriented Language

21
Q

creator of ada programming language

A

Ada Lovelace / Jean Ichbiah