
Python - MP2 Test
Authored by Allyson Smith
Computers
10th Grade
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to take user input in Python and store it in a variable named `name`?
`name = input("Enter your name: ")`
`input("Enter your name: ") = name`
`name = input()`
`input() = name`
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid conditional statement in Python?
if x = 5:
if x == 5:
if (x == 5)
if x := 5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
`Smaller`
`Greater`
`Error`
`None`
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times will the following loop execute?
1
2
3
4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
1 2 3 4
0 1 2 3 4
1 2 3 4 5
0 1 2 3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
15
5
Error
None
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of an extended for loop in Python?
`for i in range(10):`
`for i in range(0, 10, 2):`
`for i in [1, 2, 3]:`
`for i in "hello":`
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?
Similar Resources on Wayground
15 questions
# REVIEW 1 DATA TYPES
Quiz
•
10th Grade
11 questions
Threats to Data
Quiz
•
9th - 12th Grade
10 questions
Basic Parts of Speech EPS
Quiz
•
9th - 10th Grade
15 questions
Quiz 1
Quiz
•
1st - 12th Grade
15 questions
Data Security Worksheet
Quiz
•
10th Grade - University
14 questions
LA5.C5: Branching and Subroutines
Quiz
•
9th Grade - University
13 questions
Guess the Retro Computer 1
Quiz
•
KG - Professional Dev...
10 questions
Programming Constructs
Quiz
•
5th - 11th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade