
Computer Science Essentials Unit 1 Test
Authored by Christine Garnett
Computers
9th - 12th Grade
Used 9+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Which code will have Tracy move forward 10, then turn left and move forward 20?
distance = 10
forward(distance)
left(90)
distance = distance * 2
forward(distance)
distance = 10
forward(distance)
left(90)
forward(distance)
distance = 10
distance = distance * 2
forward(distance)
left(90)
forward(distance)
distance = 10
forward(distance)
left(90)
forward(distance)
distance = distance * 2
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Variables allow you to do what?
Name different steps within code
Use a convenient name to store information in code
Name functions
Use English words to control the computer
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Which code would produce this output?
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What statement would collect a number from the user to be the radius of a circle?
int(input(“What is the radius?: “))
radius = int(“What is the radius?: “)
radius = int(input(“What is the radius?: “))
radius = int input(“What is the radius?: “)
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the correct way to ask a user for a color and store the answer as a variable?
color = input(“Give a color: “)
user_color = “Give a color: ”
input(“Give a color: “)
user_color = input(“Give a color: “)
6.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Why are parameters useful?
They allow you to use the same function code for many different sets of input values
They allow a function to execute more quickly
They give the ability to create while loops
They let users execute the function without any input
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
How many parameters may be defined for a single function?
1
2
3
Any number
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?