Skip to content
Exit presentation

Programming with Blocks III: Bridge to Text

Track quiz

Quick questions on each lesson. Use the table if you get stuck.

The rule from each lesson
IdeaThe rule
WordsEach block becomes one line of plain words. The lines keep the block order. An indent shows what is inside a repeat.
NamesNaming a group does not change which blocks run. It changes how many lines you read.
NumbersA named block can take a number. The same lines run each time, on the number you hand in.
ReadingRead the steps in order. A set line replaces the old number in the box.
Exact textA person forgives a small slip. A machine reads exactly what is typed.

What is pseudocode?

  • A language a machine runs
  • The same steps, written in plain words
  • A list of block colours

A program has a repeat block with one block inside it. It also has one block after the repeat. How many lines?

  • 2
  • 3
  • 4

What does an indent show in pseudocode?

  • That a line is more important
  • What is inside a repeat
  • That a line runs twice as fast

The line "Draw a dot." sits indented under "Repeat 3 times:". How many dots are drawn?

  • 1
  • 3
  • 4

A group of 3 blocks is used 4 times. It is written out. How many lines?

  • 3
  • 7
  • 12

The same group is named. The definition has 4 lines. There are 4 calls. How many lines?

  • 4
  • 8
  • 12

A group of 3 blocks is used 2 times. What does naming it save?

  • 2 lines
  • Nothing
  • 6 lines

A group is used 6 times. Written out or named, which runs fewer blocks?

  • Named
  • Written out
  • Neither. The same blocks run.

What is a parameter?

  • The name of a block
  • A box on a block that takes the number handed in
  • A block that repeats

A named block draws a row of n dots. It is called with 4, then with 2. How many dots in all?

  • 2
  • 4
  • 6

A block is called with 5, then 6, then 4. How many definitions are there?

  • One
  • Two
  • Three

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?

  • 2
  • 4
  • 0

The count starts at 0. Steps: draw a dot, draw a dot, set count to 1. What is the count at the end?

  • 1
  • 2
  • 3

A machine knows "set_count(0)". It is given "Set_count(0)". What happens?

  • It runs, since a capital S is close enough
  • It may refuse it. A capital S is a different letter.
  • It changes the S for you

How are a block program and a text program related?

  • They are different programs
  • They can say the same steps. Text is stricter to type.
  • Blocks skip some steps

Next: Data & Patterns III: Running a Small Survey. You will ask people one question and read the answers.

Jump to lesson

This track

  1. 0 Start here
  2. 1 Blocks written as words
  3. 2 One name for a group
  4. 3 A named group that takes a number
  5. 4 Working out what written steps do
  6. 5 Text must be exact
  7. 6 The big picture
  8. 7 Track quiz

Other tracks