
Python Programming Quiz
Quiz
•
Computers
•
10th Grade
•
Hard
ERIC STANSBERRY
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet? ```python print(8 // 3) ```
2.666
2
3
2.67
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to define a function in Python?
function myFunc():
def myFunc():
function: myFunc()
define myFunc():
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What data type is the object below? ```python L = [1, 23, 'hello', 1] ```
Dictionary
List
Tuple
Set
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you insert the value "apple" in a dictionary named fruits where the key is "favorite"?
fruits.insert("favorite", "apple")
fruits["favorite"] = "apple"
fruits.add("favorite", "apple")
fruits.append("favorite", "apple")
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet? ```python x = "awesome" print("Python is " + x) ```
Python is
Python
Python is awesome
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to comment a single line in Python?
/*
#
//
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? ```python if 5 > 2: print("Five is greater than two!") ```
Error
True
Five is greater than two!
None
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
10 questions
TIN HỌC 10 - BÀI 20
Quiz
•
10th Grade
10 questions
Python ծրագրավորման լեզու
Quiz
•
7th - 10th Grade
10 questions
Bài 30 - Kiểm thử và gỡ lỗi chương trình
Quiz
•
10th Grade
9 questions
Python Lists
Quiz
•
7th - 11th Grade
10 questions
ICT in Advertising
Quiz
•
KG - University
12 questions
Excel VBA
Quiz
•
10th Grade
15 questions
Coding Quiz
Quiz
•
6th - 10th Grade
10 questions
Mengoperasikan Perangkat Lunak Desain
Quiz
•
10th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade