
Python Programming Quiz
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Hard
ERIC STANSBERRY
FREE Resource
Enhance your content in a minute
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
Already have an account?
Similar Resources on Wayground
10 questions
Python Alternating Turns
Quiz
•
7th - 12th Grade
10 questions
Game Design Acronyms
Quiz
•
9th - 12th Grade
10 questions
TIN HỌC 10 - BÀI 02
Quiz
•
10th Grade
10 questions
ICT SKILLS
Quiz
•
9th - 10th Grade
10 questions
Quiz Pemrograman Dasar Python
Quiz
•
9th - 12th Grade
15 questions
2D Lists and Arrays
Quiz
•
10th - 12th Grade
10 questions
Introducción a Python A3
Quiz
•
10th Grade
10 questions
Программирование алгоритма 8 класс
Quiz
•
1st - 10th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd 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
