WorksheetsMidterm Computer Science Modified
Total questions: 14
Worksheet time: 28mins
What number should replace the "?" in the code?
3
4
12
11
Look at the puzzle and the code below. What can you fix in the code to help the bird get to the pig?
Remove a move forward block
Add a move forward block
Change the first turn block to left
Change the second turn block to left
A chunk of code that takes input, manipulates it, and produces some kind of output.
Function
Equation
Variable
Output
Which of these blocks is a loop structure?
Before machines were called computers, what was the job title of someone like Katherine Johnson who did calculations?
Programmer
Engineer
Mathematician
Human computer
Sophia is learning the art of creating a program. What is this process called?
program
debugging
paramenter
programming
In the code above, how many times does the function loop?
75
1
3
6
What is the brain of the computer, where all the work is done?
Keys
Monitor
CPU
What does this code do?
Moves forward, turns, moves forward
Moves forward 2 times, turns left, moves forward 2 more times
Moves forward 4 times and turns left
Moves and turns
How long are the sides of this shape?
2 pixels
120 pixels
150 pixels
Purple pixels
Charles Babbage
Blaise Pascal
John Napier
Bill Gates
Hannah is working on a school project where she needs to find and fix problems in her algorithm or program. What is this process called?
bug
conditionals
variable
debugging
When you run the code what will the harvest do?
Collect all the lettuces
Nothing
Collect 2 lettuces
Move around the square without collecting anything
