Title: Instructions
Course: Quiz Statistics Report Test Course

Q: Match up the endings to the sentences
- Computer programs are made up of lists of | instructions
- If you write a program in Python, for example, you use commands like print and input. However, to store these, the computer will need to represent these in | binary
- When you compile and run your program the computer converts the high level programming language into | machine code
Also offered: hexadecimal code; ASCII Characters; Visual Basic

Q: A turtle programming application allows the user to control the turtle's movements around the floor using the following commands:

• RIGHT: Turn 90° to the right

• LEFT: Turn 90° to the left

• MOVE: Move forward one square

• REV: Move backwards one square

How many bits would be required to store this instruction set in binary?
- 1
- 2
- 3
- 4
- 5
A: 2

Q: The operating system on a computer needs to know where the data and the programs are located in main memory. Every location in memory has its own unique memory address.

If programs and data are stored in separate locations and the operating system knows their separate locations, a computer should not be able to confuse the bits that represent programs with the bits that represent data.
- True
- False
A: True

Q: If program instructions and data are both stored in binary, the computer would not be able to tell the difference between bits that represent programs and bits that represent data.

This is why data is stored in hexadecimal in memory and instructions are stored in binary.
- True
- False
A: False