Track quiz
Show on a big screenQuick questions on each lesson. Use the table if you get stuck.
| Idea | The rule |
|---|---|
| Words | Each block becomes one line of plain words. The lines keep the block order. An indent shows what is inside a repeat. |
| Names | Naming a group does not change which blocks run. It changes how many lines you read. |
| Numbers | A named block can take a number. The same lines run each time, on the number you hand in. |
| Reading | Read the steps in order. A set line replaces the old number in the box. |
| Exact text | A person forgives a small slip. A machine reads exactly what is typed. |
What is pseudocode?
A program has a repeat block with one block inside it. It also has one block after the repeat. How many lines?
What does an indent show in pseudocode?
The line "Draw a dot." sits indented under "Repeat 3 times:". How many dots are drawn?
A group of 3 blocks is used 4 times. It is written out. How many lines?
The same group is named. The definition has 4 lines. There are 4 calls. How many lines?
A group of 3 blocks is used 2 times. What does naming it save?
A group is used 6 times. Written out or named, which runs fewer blocks?
What is a parameter?
A named block draws a row of n dots. It is called with 4, then with 2. How many dots in all?
A block is called with 5, then 6, then 4. How many definitions are there?
The count starts at 0. Steps: set count to 2, draw a dot, draw a dot. Each dot adds 1. What is the count at the end?
The count starts at 0. Steps: draw a dot, draw a dot, set count to 1. What is the count at the end?
A machine knows "set_count(0)". It is given "Set_count(0)". What happens?
How are a block program and a text program related?
Next: Data & Patterns III: Running a Small Survey. You will ask people one question and read the answers.
Reveal every answer to finish this lesson.