Programming Paradigms Flashcards

1
Q

First, solve the problem. Then, write the code

A

John Johnson

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

A pattern or model in which we try to accomplish a task.

A

Paradigm

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

Are different ways or styles in which a given program or programming language can be organized.

A

Programming Paradigm

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

Each paradigm consists of certain (blank,blank,blank) about how common programming problems should be tackled.

A

Structures, Features, and Opinions

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

What a Programming Paradigm is not?

A

Not a programming language itself.
Not a specific algorithm or technique.
Not a universal solution for all problems.
Not a rigid set of rules; it provides guidelines.
Not a replacement for good software design.
Not dependent on the syntax of a language.
Not inherently better; effectiveness depends on context.
Not limited to a single programming language.
Not static; paradigms evolve over time.

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

Major Programming Paradigms

A

Imperative Programming
Procedural Programming
Functional Programming
Declarative Programming
Object-Oriented Programming

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

Consists of sets of detailed instructions that are given to the computer to execute in a given order. Focuses on describing how a program operates, step by step.

A

Imperative Programming

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

It’s called (blank) because as programmers we dictate exactly what the computer has to do, in a very specific way.

A

Imperative

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

A derivation of imperative programming, adding to it the feature of FUNCTIONS.

A

Procedural Programming

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

Functions are also known as?

A

“procedures” or “subroutines”

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

In procedural programming, the user is encouraged to (blank) the program execution into functions, as a way of improving modularity and organization.

A

Subdivide

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

It’s a pure function that relies only on its inputs to generate its result. Given the same input, it will always produce the same result.

A

Functional Programming

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

Functions are treated as (blank), meaning that they can be assigned to variables, passed as arguments, and return from other functions.

A

First-Class Citizens

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

Is all about hiding away complexity and bringing programming languages closer to human language and thinking.

A

Declarative Programming

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

Declarative Programming is the exact opposite of (blank) in the sense that the programmer doesn’t give instructions about how the computer should execute the task, but rather on what result is needed.

A

Imperative Programming

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

The core concept is to separate concerns into entities which are coded as objects.

A

Object-Oriented Programming

17
Q

Each entity will group a given set of (blank) and (blank) that can be performed by the entity

A

Information (Properties) and Actions (Methods)