wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Foundations of Computing: Final Review - Part 1

Total questions: 31

Worksheet time: 17mins

Name
Class
Date
1.

Which of the following commands can be used to turn Tracy to face North (up) if she is initially facing South (down)?

a)

right(90)

b)

left(180)

c)

left(90)

d)

left(90)

2.

What does the number in the parentheses in a forward or backward command represent?

a)

How many degrees Tracy is supposed to turn

b)

How fast Tracy is supposed to move

c)

There should not be a number in the parentheses

d)

How far Tracy is supposed to move

3.

Which of the statements below is true about indentation in Python?

a)

Indentation only matters in for loops. Then, everything must be indented one level.

b)

Indentation never matters in Python. You can align your code any way you like, but indentation makes your code easier to read.

c)

Indentation always matters in Python. Every statement must be aligned correctly.

d)

Indentation only matters in functions. Then, everything must be indented one level.

4.

Which of the following is NOT a command Tracy recognizes (without defining a function)?

a)

turn()

b)

forward()

c)

backward()

d)

left(360)

5.

Which of the following pieces of code will make Tracy do the following actions three times: go forward, change to a new color, and then turn around.

a)

b)

B)

B)

c)

C)

C)

d)

D)

D)

6.

When the following for loop is complete, how many spaces will Tracy have moved?

a)

50 spaces

b)

60 spaces

c)

10 spaces

d)

15 spaces

7.

Which command would have Tracy turn and face the opposite direction? (It should be a command Tracy knows without defining a new function.)

a)

turn(180)

b)

turn_around()

c)

left(180)

d)

face_left()

8.

Why do certain words change color in Python?

a)

To show that they are recognized as key words

b)

To tell you that these words cannot be used in Python

c)

To show you that these words can be clicked

d)

To tell Python to skip these words when running the code

9.

What control structure would be best to use in the following code? backward(100) right(90) backward(100) right(90) backward(100) right(90) backward(100) right(90)

a)

A function

b)

A while loop

c)

A for loop

d)

An if/else statement

10.

Which command tells Tracy to move forward 100 pixels?

a)

forward(100)

b)

Tracy, move forward 100 pixels

c)

move(100)

d)

Forward(100)

11.

When using the circle() command, what value do we put inside the parentheses?

a)

Radius of the circle

b)

Center of the circle

c)

Diameter of the circle

d)

Width of the circle

12.

How far does Tracy need to move from the starting position to reach the right side of the canvas?

a)

50 pixels

b)

100 pixels

c)

150 pixels

d)

200 pixels

e)

400 pixels

13.

Which of the following is NOT a reason for loops are useful when writing code?

a)

Loops help use write the same program with fewer lines of code.

b)

Loops let us make shapes of multiple sizes

c)

Loops make it easier to alter code once it's written.

d)

Loops make our code easier to read

14.

To stop the turtle drawing, which command can you use?

a)

penup()

b)

pendown()

c)

stopdrawing()

d)

erase()

15.

Python uses semicolons (;) to end commands.

a)

True

b)

False

16.

Which commands would have Tracy move backward 200 pixels?

a)

backward(200)

b)

forward(-200)

c)

backwards(200)

d)

backward(-200)

17.

What device is used to send information over the internet?

a)

router

b)

server

c)

keyboard

d)

motherboard

18.

Joe's house has a lot of devices connected to the internet. He just got a new Kindle. Which IP address might his router assign to it?

Fridge: 192.168.15.1

Playstation: 192.168.15.5

Television: 192.168.15.8

iPad: 192.168.15.10

a)

192.168.15.12

b)

192.168.16.1

c)

193.169.15.6

d)

193.168.0.0

19.

The purpose of the internet is to _______________.

a)

To improve communication and share information

b)

To provide a platform for playing video games

c)

To replace all traditional forms of media

d)

To store personal files securely

20.

What are 2 things used to protect underwater fiber optic cables?

a)

gel

b)

copper

c)

lasers

d)

poison (to keep fish from gnawing on the cable)

21.

In networking, __ is the process of determining the best path for transmitting data packets.

a)

Packet switching

b)

DNS resolution

c)

Routing

d)

Encryption

22.

What is the main difference between HTTP and HTTPS?

a)

HTTPS uses a secure connection while HTTP does not

b)

HTTP is faster than HTTPS

c)

HTTP can only transfer text data, while HTTPS can transfer multimedia files

d)

HTTPS is used for local network communication, while HTTP is used for internet communication

23.

What is the main reason for the development and adoption of IPv6?

a)

IPv6 offers improved security features

b)

IPv6 provides faster internet speeds

c)

IPv6 enables more reliable wireless connections

d)

IPv6 allows for a much larger number of IP addresses

24.

What distinguishes a WAN from a LAN?

a)

WANs are always wireless, while LANs are wired

b)

LANs offer higher security compared to WANs

c)

WANs typically cover larger geographical areas than LANs

d)

LANs are more cost-effective to set up and maintain than WANs

25.

The base 2 number system used by computers is called ____________.

a)

binary

b)

decimal

c)

Python

d)

machine language

26.

Each single number in binary is called a _____.

a)

byte

b)

bit

c)

data

d)

command

27.

What 2 commands have we seen to move Tracy to a specific location?

a)

set(x,y)

b)

goto(x,y)

c)

setposition(x,y)

d)

moveto(x,y)

28.

Why do we use loops? 

a)

Loops are the best way to have Tracy draw circles. 

b)

Loops make our programs harder to hack. 

c)

Loops help us make our programs shorter.

d)

Loops allow us to repeat a series of commands. 

29.

A lot of internet traffic is transmitted through ____________ fiber optic cables. 

a)

undersea / underwater

b)

buried

c)

elevated

30.

On computers, all data is converted into a series of _____ and ______. 

a)

zeros

b)

letters

c)

commands

d)

ones

31.

________ and ________ are two encoding systems that are used to represent numbers, letters, symbols, and emojis. 

a)

ASCII

b)

Python

c)

Decimal

d)

Unicode