1.9 Algorithms and programs Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is an algorithm?

A

A set of mechanical and sequential steps that are followed in order to take some form of input and process it to form an output

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

What does parameter passing by value mean?

A

This is is when the variable (parameter) passed to the subroutine is only copied to it and therefore considered as a local variable. This means that any changes to the variable to the subroutine will not effect the variable in the main program. (It has to be returned)

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

What does parameter passing by reference mean?

A

This is when the variable (parameter) passed to the subroutine with it’s address. This means that any changes to the variable in the subroutine will change the variable in the main program as well.

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

What are the 3 basic programming constructs?

A

Sequence
Selection
Iteration

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

What is the sequence programming constructs

A

Sequence is the order in which instructions occur and are processed.

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

What is the selection programming construct?

A

Selection is the execution of a particular set of statements if a condition is satisfied

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

What is the iteration programming construct?

A

Iteration is when a particular set of statements are repeated until a condition is satisfied

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

What are the first stages of software development? (5)

A
  1. Problem analysis.
  2. Requirements, definition and refinement.
  3. Software specifications and detailed design.
  4. Software creation and refinement.
  5. Software validation.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the 4 stages of computational thinking?

A

Decomposition
Pattern Recognition
Abstraction
Algorithm design

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

What is the decomposition part of computational thinking?

A

When you break down a problem into smaller sub-problems which can be considered in isolation.
It helps sequence the analysis and encourages a systematic approach

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

What is the pattern recognition part of computational thinking?

A

When you identify a pattern in the problem which will help solve it more efficiently. By identifying particular steps that are carried out over and over again it can make the process of solving the program, more manageable.

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

What is the abstraction part of computational thinking?

A

This is when you look at the problem and patterns recognised and find out what is important and what can be ignored. Unnecessary details are removed so that a simple model can be formed which will allow for a solution to be easily found

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