Code From Binary to Python: teacher key
How Coding Works, grade 10 edition, written for 10th grade. Code is written for machines that use only 0 and 1. Compilers, FORTRAN and COBOL, Python, Git and debugging are all part of how programmers work.
Read the book. Print this page for the key.
Questions and answers
- What does a compiler do?
- It turns readable code into machine code a computer can run (answer)
- It records changes to files over time
- It measures how fast an algorithm is
- What is a stack?
- A data structure where the last item added is the first retrieved (answer)
- A kind of bug in a program
- A language with no variables
- What does version control let you do?
- Go back to a previous state of your files (answer)
- Run code with no compiler
- Turn English words into binary
- A program works in one place but gives a wrong answer because two instructions are in the wrong order. Which kind of bug is that?
- A syntax error
- A logic error (answer)
- A base case
- Why does a recursive function need a base case?
- To end the repeating (answer)
- To name the variables
- To translate the code
- In the passage, what does the word recursion mean?
- A function that calls itself (answer)
- A comment for people
- A copy of a file
Words
- recursion: self-calling function
- compiler: code translator
- bits: binary digits
- stack: last-in structure
- debugging: finding mistakes