
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
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
Ipad
Quiz
•
1st Grade - Professio...
15 questions
TIN 10-1F-LÀM QUEN VỚI NGÔN NGỮ LẬP TRÌNH BẬC CAO
Quiz
•
10th Grade
10 questions
Conceptos Circuitos
Quiz
•
1st - 10th Grade
14 questions
Windows
Quiz
•
1st - 12th Grade
10 questions
Formatos (video y audio)
Quiz
•
10th Grade
14 questions
Digitális Témahét 2024: Mi és a MI
Quiz
•
9th - 12th Grade
10 questions
Списки Python + Pygame
Quiz
•
KG - University
15 questions
Bài 22-Kiểu dữ liệu danh sách
Quiz
•
10th 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
