
Python Programming MP4 EMPA Review Part 2

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Lisa Zaranski
Used 2+ times
FREE Resource
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Only one parameter can have a default value given
Any parameters that don’t have default values must come before any parameters that do have default values
Default parameters must be the same type for every parameter
There is nothing wrong with the function
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following Python lines contains a valid comment?
def get_name(): # get the user’s name
def get_name():
def get_name(): ** get the user’s name
def get_name(): % get the user’s name
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following for loops will loop 12 times?
for i in range(12):
for i in range(1, 12):
for i in range(0, 11):
for i in range(1, 12, 1):
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
2
8
12
20
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Three of the for loops below will provide identical values for i. Which for loop will provide values that do not match the others?
for i in range(0, 5):
for i in range(5):
for i in range(0, 5, 1):
for i in range(5, 0, 1):
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What would you use if you wanted to ask the user for the number of ounces of water he/she drank that day, and then print one of two messages based on the number?
If
While
For
If-else
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
When would a while loop be a better control structure to use than a for loop?
When you need to repeat multiple commands
When you need to repeat something 5 times
When you don’t know how many times something will need to repeat
When the user is inputting how many times to repeat something
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Python Looping with Integers

Quiz
•
9th - 12th Grade
14 questions
Python Control Structures Vocab quiz

Quiz
•
9th - 12th Grade
23 questions
GCSE Python Programming Basics

Quiz
•
11th Grade
16 questions
Python Functions

Quiz
•
9th - 12th Grade
20 questions
PYTHON

Quiz
•
9th - 12th Grade
20 questions
Procedures and Functions

Quiz
•
10th Grade
20 questions
Python turtle year 8 assessment

Quiz
•
7th - 9th Grade
15 questions
Python revision

Quiz
•
10th Grade - University
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
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th 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