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
- Which digits does the binary number system use?
- 1 and 2
- 0 and 1 (answer)
- 0 through 9
- 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
- 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
- A game needs to remember a player's score as it changes. What could it use?
- A compiler
- A variable (answer)
- A syntax bug
- 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