Programming Fundamentals Flashcards

1
Q

What’s an algorithm?

A

Step by step set of instructions for solving a specific problem.

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

What does decomposition mean(algorithms)

A

The breaking down of a complex problem into smaller, manageable sub problems

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

What’s abstraction?

A

The simplifying of a problem by focusing on essential aspects and ignoring unnecessary details.

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

How do you interpret pseudocode?

A

Look for control structures (if, while, for)
Understand variable assignments
Follow logical flow of steps

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

What’s pseudocode used for?

A

To represent an algorithm without the use for programming languages.

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

Why do we use algorithms?

A

To solve specific problems.

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

Define efficiency in terms of programs:

A

Efficiency is how well an algorithm performs in terms of time taken and space used.

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