
Python Review Part 2

Quiz
•
Computers
•
6th - 8th Grade
•
Hard
Brittney Jones
Used 1+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What kind of loop should be used in a game where the user is guessing a secret code and the message "Guess again!" appears until the user guesses correctly?
for loop
binary loop
digital loop
while loop
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which function generates a random number?
randint
randstring
random.choice
guess
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
In Python, what does the choice function do?
lets the user make a choice
lets the programmer make a choice
creates a new program
chooses a value at random from a string
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Marta is creating a program that will guide the user through a series of physical exercises. She wants the program to coach the user to do 10 push-ups. Which kind of loop should be used?
binary loop
condition-controlled loop
count-controlled loop
interface loop
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Bruno is asked to create a program that will require the user to enter a passcode. If the wrong passcode is entered, the user can try again until they get it right. What kind of loop should be created for this?
binary loop
condition-controlled loop
count-controlled loop
interface loop
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Ying sends a program to a colleague for help in debugging it. The following message is returned: "You forgot to initialize the variable for the number of attempts." How should this problem be fixed?
set the variable to a beginning value
set the variable to an ending value
allow the user to input the variable's value
create a literal value
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
If a program needs to respond to what the user inputs by printing one of three different statements, what will the program require?
datqabase
random number generator
decision generator
conditional statement
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
CM Adventure Part 1 - For Loop

Quiz
•
6th - 10th Grade
20 questions
Year 7 Scratch

Quiz
•
7th Grade
20 questions
Coding Quiz

Quiz
•
8th Grade
20 questions
Y9 Next Steps in Python: Embedding Homework

Quiz
•
8th Grade
20 questions
Python year 9

Quiz
•
8th - 11th Grade
20 questions
tic tac toe with ai

Quiz
•
7th Grade
20 questions
Javascript Basics Test

Quiz
•
7th - 12th Grade
20 questions
Scratch Programming Quiz

Quiz
•
6th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
18 questions
Digital Footprint

Quiz
•
6th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade
25 questions
How to Email a Teacher- https://youtu.be/NioeNhfpVfI

Quiz
•
6th - 8th Grade