Skip to the content
Peabody TeachFor teachers and grown-ups

From Zeros and Ones to Code: teacher key

How Coding Works, grade 6 edition, written for 6th grade. How does a computer understand a person? Follow code from binary numbers to compilers, then learn the tools programmers use.

Read the book. Print this page for the key.

Questions and answers

  1. Which digits does the binary number system use?
    • 1 and 2
    • 0 and 1 (answer)
    • 0 through 9
  2. What does a compiler do?
    • It translates readable code into machine code (answer)
    • It finds every bug for you
    • It repeats a set of steps
  3. Which tool did Grace Hopper make an early version of?
    • One that took English-like words instead of numbers (answer)
    • One that fixed typing mistakes
    • One that ran only Python
  4. A game needs to remember a player's score as it changes. What could it use?
    • A compiler
    • A variable (answer)
    • A syntax bug
  5. In the page about Python, what is syntax?
    • A kind of bug in a loop
    • The rules for how code must be written (answer)
    • A free version of Python

Words

  • binary: two digits
  • compiler: code translator
  • syntax: code writing rules
  • loop: repeats steps
  • variable: holds a value