2.1.1 Problem-solving and design Flashcards

1
Q

Why do programmers use algorithms?

A

Plan and check a program makes sense Choose the right way to solve a problem Describe your solution to people easily Keep a record of your solution

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

What is an example of an algorithm?

A

A recipe

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

What is a sequence, or a sequence of instructions?

A

A series of logical steps carried out in order

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

What is stepwise refinement?

A

Breaking an algorithm down into smaller pieces

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

What does this programming flowchart symbol mean?

A

Decision

A question is made and has to be answered YES/NO, TRUE/FALSE

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

What does this programming flowchart symbol mean?

A

Start/ End

Shows the beginning and the end of the program

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

What does this programming flowchart symbol mean?

A

Input/Output

Input - the user has to input something (e.g. enter data)

Output - the computer has to output something (e.g. a display)

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

What does this programming flowchart symbol mean?

A

Process

An instruction that’s carried out by the program

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

What does this programming flowchart symbol mean?

A

Shows the direction of the program

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

Name 3 advantages of stepwise refinement

A

Instructions are more detailed

Easier for the user to follow

Less chance of errors

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

What is a conditional statement (or selection)?

A

A program can produce different outputs depending on the results of a logical test.

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

What is a logical test?

A

A test that gives an answer of either TRUE or FALSE

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

What is an algorithm?

A

An algorithm is a set of steps to solve a problem

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

What is pseudocode?

A

A written form of programming describing steps of an algorithm (for humans)

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