Python Programming Quiz
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Medium
Tracy Mayhead
Used 10+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the print() function in Python?
To display output to the console
To read user input
To create a variable
To define a function
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is Python sensitive to whitespace when defining code blocks?
Yes
No
Only in functions
Depends on the operating system
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which symbol is used to create a list in Python?
( )
[ ]
{ }
< >
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in Python?
1st_variable
my-variable
myVariable
my variable
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you start a function definition in Python?
function myFunction():
def myFunction():
create myFunction():
myFunction():
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? x = 5 print(x * 2)
10
5
25
Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements assigns the value of 10 to the variable x in Python?
x:=10
let x = 10
x = 10
x ← 10
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
Already have an account?
Similar Resources on Wayground
16 questions
Python Basics
Quiz
•
KG - University
19 questions
SEMI - Unit 2
Quiz
•
9th - 12th Grade
20 questions
Python Recap
Quiz
•
7th Grade - University
17 questions
"switch" Java Statement - 1
Quiz
•
9th - 10th Grade
20 questions
uCertity SDA Lesson 2 Quiz
Quiz
•
8th - 12th Grade
20 questions
CPA Revision MCQ1
Quiz
•
8th - 9th Grade
15 questions
Networking Quiz
Quiz
•
8th - 9th Grade
15 questions
History of Computers
Quiz
•
6th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
