Algorithm Design and Problem Solving Flashcards

1
Q

State what is meant by an algorithm

A

a sequence of steps that can be carried out to perform a task

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

State what is meant by Structured English

A

a subset of the English language that consists of command statements used to describe an algorithm

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

State what is meant by pseudocode

A

a way of using keywords and identifiers to describe an algorithm without following the syntax of a particular programming language

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

State what is meant by a flowchart

A

Shapes linked together to represent the sequential steps of an algorithm

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

How do computers solve problems?

A

Input -> Process -> Output

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

State what is meant by variables

A

A storage location for a data value that has an identifier

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

State the rules of a variable identifier

A

should not contain spaces, only letters, digits and _

They should reflect the variable’s use.

PlayerScore is a common convention and makes it easier to read

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

What is the pseudo code for assigning a value to a variable

A

INPUT Number

NumberofGuesses

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

What is the pseudo code for updating a value?

A

NumberofGuesses

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

What is the pseudocode for copying a value?

A

Value2

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

What is the pseudocode for swapping two values?

A

Temp

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