Programming paradigms paper 1 Flashcards

1
Q

What is a programming paradigm?

A

A style or “way” of programming that defines how programs are structured

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

Name two common programming paradigms.

A

Procedural programming and object-oriented programming (OOP).

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

What is procedural programming?

A

A paradigm where the program is built from procedures or functions, following a step-by-step approach.

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

What are the characteristics of procedural programming?

A

Uses a structured, top-down approach with clear sequences, decisions, and loops. Focuses on procedure calls and modular code.

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

What is a structured approach in programming?

A

An approach that breaks a problem into smaller, manageable modules, improving clarity and maintainability.

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

What is a hierarchy chart in program design?

A

A diagram that shows the structure of a program, illustrating how functions/procedures are organized and related.

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

What is object-oriented programming (OOP)?

A

A paradigm based on the concept of “objects” that contain both data and the methods that operate on that data.

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

List key features of object-oriented programming.

A

Encapsulation, inheritance, polymorphism, and abstraction.

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