Thinking For Computers Flashcards

1
Q

Explain an algorithm

A

An algorithm is a sequence of steps that can be followed in order to solve a specific problem

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

Explain an Abstract solution

A

A solution which makes use of general concepts and variables in solving a problem

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

Explain a Computer Program

A

A set of instructions written in a specific computer programming language instructs the computer on how to solve the problem

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

Describe Concrete Solution

A

A solution that makes use of fixed, specific values and steps in solving a problem

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

What is a flowchart

A

A diagrammatic visual representation of the sequence of steps required to solve a problem

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

Explain problem solving

A

Working out the steps required to reach a desired state based on a given set of starting values

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

Define Pseudo Code

A

Pseudo code is a structured, language-based way of presenting an algorithm - short and clear step-by-step instructions

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

Name good characteristics of a good algorithm

A

• One activity per step
•Clear instructions
•Algorithm has a clear beginning and end
•Completeness - all ateps formulated as part of the solution
•The steps should be in the correct order
•no unnecessary steps or information
•The Algorithm should make use of decisions and repition to make it as short as possible

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

Explain how you should work out an algorithm

A

1) Understand the problem
2) Analyse the problem
3) Create a solution
4) Test the solution

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

Define repetition in a program

A

Repetition occurs when the same steps are executed more than once

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

Explain some basic guidelines to compile pseudo code

A

1) use short clear instructions
2) clearly indicate a start and end of the task executed
3) uses keywords to indicate decision making and repetition (while ,Do ,EndDo ,if ,Endif ,Repeat Until)
4)indent instructions in a branch when they branch out for repetition or a decision

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