Python Programming Quiz
Quiz
•
Computers
•
9th Grade
•
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
16 questions
C-Programming Basics
Quiz
•
12th Grade
20 questions
Microsoft Excel
Quiz
•
KG - Professional Dev...
17 questions
Basic Docs
Quiz
•
8th - 9th Grade
20 questions
data structures1
Quiz
•
University
16 questions
Quiz on List and Tuples
Quiz
•
University
16 questions
Kod Arahan
Quiz
•
9th - 11th Grade
18 questions
BTT 3.1. Anakartlar
Quiz
•
9th Grade
20 questions
Yr 11 ICT quiz 1 Networks & Security
Quiz
•
10th - 11th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
10 questions
Halloween Trivia Challenge
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
15 questions
Halloween Trivia
Quiz
•
9th Grade
