Intro to CS Semester Test Review P1
Quiz
•
Computers
•
9th Grade
•
Hard
Kay Carpenter
Used 12+ times
FREE Resource
Enhance your content
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Refer to the following code. This type of comment in Python is known as a(n):
"""
This function moves Tracy from the center
of the canvas to the beginning of the hurdle.
"""
in-line comment
two-line comment
multi-line comment
triple-quote comment
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following statements regarding comments is INCORRECT?
Comments can be used to help anyone viewing the code to keep track of coding steps and decisions
Comments can be used to give the computer prioritized instructions or change the order of code
Comments can be used to describe each part of the code so it can be altered easily
Comments are not read by the program and have no impact on how the code runs
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will the following program print when run?
babble
crackle
pop
crackle
pop
fizz
fizz
pop
fizzle
crackle
pop
fizzle
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What gets printed to the console from this code?
Alpha
Omega
Gamma
Nothing prints to the console
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
How many circles will Tracy draw when the following program is run?
5 circles
10 circles
15 circles
25 circles
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following print statements correctly combines two string variables venue and direction and the integer variable distance using string concatenation?
The printed result should look like, “The stadium is 4 blocks north”
print(“The “ + venue + “ is “ + int(str(distance)) + “ blocks “ + direction)
print(“The “ + venue + “ is “ + str(distance) + “ blocks “ + direction)
print(“The + venue + is “ + str(distance) + “ blocks + direction”)
print(“The “ + venue + “ is “ + readInt(str(distance)) + “ blocks “ + direction)
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which type of loop would you use to continually ask the user to guess a number, until their input matched the value of the variable lucky_num?
For
While
If/Else
If
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
18 questions
LATIHAN INFORMATIKA
Quiz
•
9th Grade
18 questions
Cyber Security and Social Engineering
Quiz
•
9th - 11th Grade
15 questions
R13 AI and Machine Learning Assessment
Quiz
•
9th - 12th Grade
16 questions
Pradžia su Python
Quiz
•
9th Grade
20 questions
Quiz 4
Quiz
•
1st - 10th Grade
15 questions
Programming - What Do I Know?
Quiz
•
7th - 9th Grade
20 questions
Network topologies
Quiz
•
8th Grade - University
15 questions
Quiz 1
Quiz
•
1st - 12th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
