
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
Lua Review Corona SDK with Notepad++
Quiz
•
10th - 12th Grade
10 questions
STM BTEC DIT 3- 5. Maintenance, set-up, performance p152
Quiz
•
9th - 11th Grade
10 questions
TIN HỌC 10 - BÀI 21
Quiz
•
10th Grade
10 questions
Q1 M 2 - TOPIC 2 / Check your understanding
Quiz
•
10th Grade
10 questions
J808 LO1.1 Advantages of following a project life cycle
Quiz
•
10th Grade
10 questions
Revision 1
Quiz
•
1st - 10th Grade
19 questions
Hardware and Components
Quiz
•
5th - 11th Grade
15 questions
History of Computers
Quiz
•
6th - 12th 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