Ge 6 Basics of Programming Worksheet 1 - Ans - Computational Thinking
Ge 6 Basics of Programming Worksheet 1 - Ans - Computational Thinking
Algorithm: A step by step set of instructions to solve a problem. Also referred to as sequencing.
a) When designing a tube map, the designers do not use the exact scale and do not include all of the landmarks.
Abstraction
b) When building a flat-pack table, you first assemble the base of the table, then attach the top of the table. Finally,
you tighten all bolts only when everything else is in place. Algorithm/sequencing/algorithmic sequencing
c) In order to beat a boss in a video game, the player realises they need to get the right equipment, be at the correct
level and know the movement patterns of the enemy. Decomposition
2) A programmer is creating an algorithm that lets the user type in two variables, and then finds the midpoint of
them by adding them together then dividing by 2. The output is then shown to the user. Below are 2 flowcharts that
both represent this. Fill in any blanks and draw the correct symbol around each part.
a) Start b) Start
Stop
Enhanced Learning Worksheet
Abstraction: Picking out the important information, ignoring irrelevant information (or equivalent)
2) Give a real-world example of each of the following keywords (can’t be the same as Q2 from Consolidate).
a) Decomposition: Any relevant example, e.g. Winning the league in a sports tournament broken down into the
individual games.
b) Abstraction: Any relevant example, e.g. Just focusing on the ingredients needed in a recipe when shopping for
ingredients.
2) Draw flowcharts to represent the following scenarios: a) A program that lets the user enter a number. If the
number is less than 50, it outputs “Less”. Otherwise it outputs: “More”) b) A security lock, where 2 passwords must
be entered, and only if both passwords are correct should it unlock.
Start
a) Start b)
pass1 USERINPUT
num USERINPUT
pass2 USERINPUT
IF num < 50 FALSE OUTPUT
THEN “More”