Font size
WorksheetsFoundations of Computing: Final Review - Part 1
Total questions: 31
Worksheet time: 17mins
Which of the following commands can be used to turn Tracy to face North (up) if she is initially facing South (down)?
right(90)
left(180)
left(90)
left(90)
What does the number in the parentheses in a forward or backward command represent?
How many degrees Tracy is supposed to turn
How fast Tracy is supposed to move
There should not be a number in the parentheses
How far Tracy is supposed to move
Which of the statements below is true about indentation in Python?
Indentation only matters in for loops. Then, everything must be indented one level.
Indentation never matters in Python. You can align your code any way you like, but indentation makes your code easier to read.
Indentation always matters in Python. Every statement must be aligned correctly.
Indentation only matters in functions. Then, everything must be indented one level.
Which of the following is NOT a command Tracy recognizes (without defining a function)?
turn()
forward()
backward()
left(360)
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.
B)
B)
C)
C)
D)
D)
When the following for loop is complete, how many spaces will Tracy have moved?
50 spaces
60 spaces
10 spaces
15 spaces
Which command would have Tracy turn and face the opposite direction? (It should be a command Tracy knows without defining a new function.)
turn(180)
turn_around()
left(180)
face_left()
Why do certain words change color in Python?
To show that they are recognized as key words
To tell you that these words cannot be used in Python
To show you that these words can be clicked
To tell Python to skip these words when running the code
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 function
A while loop
A for loop
An if/else statement
Which command tells Tracy to move forward 100 pixels?
forward(100)
Tracy, move forward 100 pixels
move(100)
Forward(100)
When using the circle() command, what value do we put inside the parentheses?
Radius of the circle
Center of the circle
Diameter of the circle
Width of the circle
How far does Tracy need to move from the starting position to reach the right side of the canvas?
50 pixels
100 pixels
150 pixels
200 pixels
400 pixels
Which of the following is NOT a reason for loops are useful when writing code?
Loops help use write the same program with fewer lines of code.
Loops let us make shapes of multiple sizes
Loops make it easier to alter code once it's written.
Loops make our code easier to read
To stop the turtle drawing, which command can you use?
penup()
pendown()
stopdrawing()
erase()
Python uses semicolons (;) to end commands.
True
False
Which commands would have Tracy move backward 200 pixels?
backward(200)
forward(-200)
backwards(200)
backward(-200)
What device is used to send information over the internet?
router
server
keyboard
motherboard
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
192.168.15.12
192.168.16.1
193.169.15.6
193.168.0.0
The purpose of the internet is to _______________.
To improve communication and share information
To provide a platform for playing video games
To replace all traditional forms of media
To store personal files securely
What are 2 things used to protect underwater fiber optic cables?
gel
copper
lasers
poison (to keep fish from gnawing on the cable)
In networking, __ is the process of determining the best path for transmitting data packets.
Packet switching
DNS resolution
Routing
Encryption
What is the main difference between HTTP and HTTPS?
HTTPS uses a secure connection while HTTP does not
HTTP is faster than HTTPS
HTTP can only transfer text data, while HTTPS can transfer multimedia files
HTTPS is used for local network communication, while HTTP is used for internet communication
What is the main reason for the development and adoption of IPv6?
IPv6 offers improved security features
IPv6 provides faster internet speeds
IPv6 enables more reliable wireless connections
IPv6 allows for a much larger number of IP addresses
What distinguishes a WAN from a LAN?
WANs are always wireless, while LANs are wired
LANs offer higher security compared to WANs
WANs typically cover larger geographical areas than LANs
LANs are more cost-effective to set up and maintain than WANs
The base 2 number system used by computers is called ____________.
binary
decimal
Python
machine language
Each single number in binary is called a _____.
byte
bit
data
command
What 2 commands have we seen to move Tracy to a specific location?
set(x,y)
goto(x,y)
setposition(x,y)
moveto(x,y)
Why do we use loops?
Loops are the best way to have Tracy draw circles.
Loops make our programs harder to hack.
Loops help us make our programs shorter.
Loops allow us to repeat a series of commands.
A lot of internet traffic is transmitted through ____________ fiber optic cables.
undersea / underwater
buried
elevated
On computers, all data is converted into a series of _____ and ______.
zeros
letters
commands
ones
________ and ________ are two encoding systems that are used to represent numbers, letters, symbols, and emojis.
ASCII
Python
Decimal
Unicode
