wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Midterm Computer Science Modified

Total questions: 14

Worksheet time: 28mins

Name
Class
Date
1.

What number should replace the "?" in the code?

a)

3

b)

4

c)

12

d)

11

2.

Look at the puzzle and the code below. What can you fix in the code to help the bird get to the pig?

a)

Remove a move forward block

b)

Add a move forward block

c)

Change the first turn block to left

d)

Change the second turn block to left

3.

A chunk of code that takes input, manipulates it, and produces some kind of output.

a)

Function

b)

Equation

c)

Variable

d)

Output

4.

Which of these blocks is a loop structure?

a)
b)
c)
d)
5.

Before machines were called computers, what was the job title of someone like Katherine Johnson who did calculations?

a)

Programmer

b)

Engineer

c)

Mathematician

d)

Human computer

6.

Sophia is learning the art of creating a program. What is this process called?

a)

program

b)

debugging

c)

paramenter

d)

programming

7.

In the code above, how many times does the function loop?

a)

75

b)

1

c)

3

d)

6

8.

What is the brain of the computer, where all the work is done?

a)

Keys

b)

Monitor

c)

CPU

9.

What does this code do?

a)

Moves forward, turns, moves forward

b)

Moves forward 2 times, turns left, moves forward 2 more times

c)

Moves forward 4 times and turns left

d)

Moves and turns

10.

How long are the sides of this shape?

a)

2 pixels

b)

120 pixels

c)

150 pixels

d)

Purple pixels

11.
Who invented the first calculating machine that could be called a computer?
a)

Charles Babbage

b)

Blaise Pascal

c)

John Napier

d)

Bill Gates

12.

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?

a)

bug

b)

conditionals

c)

variable

d)

debugging

13.

When you run the code what will the harvest do?

a)

Collect all the lettuces

b)

Nothing

c)

Collect 2 lettuces

d)

Move around the square without collecting anything

14.
A person who writes code is called a
a)
coder
b)
computer programmer
c)
technologist
d)
scientist