Decomp and Abstra Flashcards

1
Q

ALGORITHMS -

A

a set of instructions for solving a problem or completing a task.

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

ABSTRACTION

A

involves removing unnecessary detail from a problem so that you can focus on the essential components to add to a solution

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

Decomposition –

A

involves breaking down a large problem into smaller subproblems so they are manageable
Then the sub-problems can be broken down further until each small task is manageable

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

Advantages of Decomposition :

A

The problem becomes easier to solve when it consists of a number of small subtasks
or subprograms
Some subprograms may be reusable in other programs, saving development time
Smaller problems can be tested independently so easier to identify a problem.

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

Why are subprograms so useful

A

Reusability: Once written, a subprogram can be used multiple times in different parts of a program.
Modularity: It helps break a large program into smaller, more manageable chunks.
Readability and Maintainability: Smaller, focused subprograms make the code easier to read, understand, and debug.

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