WorksheetsG7_Unit1+2 Review_2
Total questions: 8
Worksheet time: 5mins
You are writing a software program that can calculate the distance between Earth and Mars. Why is the variable name "bln_distance" not a good name?
You cannot use the underscore character in variable names
You should have a number in the variable name
bln stands for boolean and the variable will have to be a float
The variable name is too long
What is decomposition?
Steps you follow to solve a problem
A method used to break down problems into subproblems and smaller parts
A place used in a program to store data that can change
A method used to make problems bigger and put subproblems together
You are planning on building a computer. If you decomposed the problem into subprograms, which subprograms below would be the best?
1. Write down the specifications you want – 2. Buy the hardware – 3. Put the hardware together – 4. Install the software
1. Create a computer - 2. Turn it on
1. Build a computer
1. Buy a computer – 2. Take the computer apart – 3. Lay out all the hardware
What is a variable?
A box(memory location) where you store values
A type of graphics
Data type
Mathematical operator.
What is pseudocode?
It is code in the Python language
It is a code you enter into a computer like a password
It is an algorithm written in text like a programming language but without syntax or grammar rules
It is the code for writing websites
Which of the following is an example of pseudocode?
print("Hello, Zachariah!")
Output the text "Hello Zachariah!"
x = 3+2
x = string(Zachariah)
