2.1.1 Problem-solving and design Flashcards
Why do programmers use algorithms?
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
What is an example of an algorithm?
A recipe
What is a sequence, or a sequence of instructions?
A series of logical steps carried out in order
What is stepwise refinement?
Breaking an algorithm down into smaller pieces
What does this programming flowchart symbol mean?
![](https://s3.amazonaws.com/brainscape-prod/system/cm/322/290/398/q_image_thumb.png?1601336662)
Decision
A question is made and has to be answered YES/NO, TRUE/FALSE
What does this programming flowchart symbol mean?
![](https://s3.amazonaws.com/brainscape-prod/system/cm/322/290/516/q_image_thumb.png?1601336754)
Start/ End
Shows the beginning and the end of the program
What does this programming flowchart symbol mean?
![](https://s3.amazonaws.com/brainscape-prod/system/cm/322/290/572/q_image_thumb.png?1601336834)
Input/Output
Input - the user has to input something (e.g. enter data)
Output - the computer has to output something (e.g. a display)
What does this programming flowchart symbol mean?
![](https://s3.amazonaws.com/brainscape-prod/system/cm/322/290/651/q_image_thumb.png?1601336901)
Process
An instruction that’s carried out by the program
What does this programming flowchart symbol mean?
![](https://s3.amazonaws.com/brainscape-prod/system/cm/322/290/674/q_image_thumb.png?1601336952)
Shows the direction of the program
Name 3 advantages of stepwise refinement
Instructions are more detailed
Easier for the user to follow
Less chance of errors
What is a conditional statement (or selection)?
A program can produce different outputs depending on the results of a logical test.
What is a logical test?
A test that gives an answer of either TRUE or FALSE
What is an algorithm?
An algorithm is a set of steps to solve a problem
What is pseudocode?
A written form of programming describing steps of an algorithm (for humans)