Skip to the content
Peabody TeachFor teachers and grown-ups

From Binary to Open Source: teacher key

How Coding Works, grade 11 edition, written for 11th grade. Writing code means giving a machine exact instructions. Binary, compilers, early languages, abstraction, Python, open source, Git, bugs and Scratch are all part of it.

Read the book. Print this page for the key.

Questions and answers

  1. What does a compiler do?
    • It translates a whole program into binary or machine code that can run (answer)
    • It records changes to files over time
    • It hides a system behind an API
  2. What does a version control system let you do?
    • Revert files to a previous state (answer)
    • Run code without compiling
    • Turn bugs into features
  3. Who coined the word compiler, according to the history of early languages?
    • Konrad Zuse
    • Grace Hopper (answer)
    • Guido van Rossum
  4. A program gives wrong answers because two instructions are in the wrong order. Which kind of bug is that?
    • A syntax error
    • A logic error (answer)
    • A base case
  5. Why does abstraction make code easier to reuse?
    • It hides technical detail behind a simpler interface (answer)
    • It turns code into machine language
    • It makes every program open source
  6. In the passage, what does the word abstraction mean?
    • Hiding technical detail behind a simpler interface (answer)
    • Writing code in binary
    • Fixing a bug in a program

Words

  • abstraction: hiding detail
  • compiler: code translator
  • recursion: self-calling function
  • bits: binary digits
  • interface: simpler front