Preview

05 - Use of Algorithms (pseudocode/flowcharts)

 1. An algorithm is ___________________________
useofalgorithms_plantingseed.png

  a complex piece of code that a programmer has written

  a type of large computer that counts in 'ithms'

  a plan, a set of step-by-step instructions to solve a problem.

  a set of instructions in binary that no one except a computer can understand

 2. If you can tie shoelaces, make a cup of tea, get dressed or prepare a meal then you already know how to follow an algorithm.

  TRUE

  FALSE

 3. In an algorithm, each instruction is identified and the ________in which they should be carried out is planned

  speed

  order

  vessel

  exact code

 4. Algorithms are often used as a starting point for creating a computer program, and they are sometimes written as a ___________________________
Note: If you have never heard of an obfuscated cloud object, don't worry. It probably doesn't exist!

  flowchart or obfuscated cloud object

  C or Java implementation of code

  piece of python code or in C#

  flowchart or in pseudocode

 5. Computers are only as good as the algorithms they are given. If you give a computer a poor algorithm, you will get a poor result – hence the phrase: ‘Garbage in, garbage out.’
Note:  An algorithm must be clear. It must have a starting point, a finishing point and a set of clear instructions in between.

  TRUE

  FALSE

 6. Pseudocode is NOT a programming language, it is a simple way of describing a set of instructions that does not have to use specific syntax.

  FALSE

  TRUE

 7. Read the following excerpt on pseudocode and fill in the blanks
Pseudocode
==================================
Writing in pseudocode is similar to writing in a programming 
language. 
Each step of the algorithm is written on a line of its 
own in sequence.

Usually, _____________are written in uppercase, 
variables in lowercase and messages in sentence case.

OUTPUT 'What is your name?'
INPUT name #user inputs their name
STORE the user's input in the name variable
OUTPUT 'Hello' + name
OUTPUT 'How old are you?'
INPUT user inputs their age
STORE the user's input in the age variable
IF age >= 70 THEN
	OUTPUT 'Greetings!'
ELSE
	OUTPUT 'Hiya!'

  constants

  instructions

  numbers

  variables

 8. A flowchart is:

  a series of code statements that describe a problem

  a flowing artistic representation of what the problem actually is at its very heart/core

  an illustrated and 'flowy' version of code, that is written in italics

  a diagram that represents a set of instructions.

 9. Algorithms are written for a computer, rather than for a human to understand. In this way algorithms differ from programs.

  TRUE

  FALSE

 10. Watch the video, if you can, about flowcharts. Which of the following are valid 'symbols'
Flow chart symbols
==================================
1. Start
2. Process
3. Decision 
4. Document
5. Storage
6. Sub Process
7. Connectors
8. Card
9. Predefined process
10. Data
11. Manual input
12. Sequential data
13. Terminator
useofalgorithms_flowchartsymbols.png

  All of the items on the list are valid symbols for a flow chart

  None on the list

  Just 1 - 4

  1,2,3 and 8

 11. Flowcharts are the ideal diagrams for _____________ representing business processes

  awfully

  visually

  abstractly

  conceptually

 12. In pseudocode, INPUT asks a question. OUTPUT ______________________-

  does nothing

  stops the algorithm

  converts the algorithm directly into binary

  prints a message on screen.

 13. How woud you describe this flowchart?
useofalgorithms_whatisthisflowchart.png

  It is a simple bit of programming code that shows you how to ask someone their name and age

  It is visual representation of conversation. It cannot be coded

  It is indescribable as it is visual

  It's a simple algorithm to ask someone their name and age, and to make a comment based on these.

 14. In a flow chart each instruction is linked together with _______________, to show the direction of flow.

  flowing poetry

  coded genius

  rectangular blocks

  an arrow

 15. Sequence, assignment of variables, selection and iteration can all be shown using a flowchart or pseudocode.

  FALSE

  TRUE