
Python Quiz
Quiz
•
Fun
•
University
•
Practice Problem
•
Hard
Sirada Pittayakornpisuth
Used 2+ times
FREE Resource
Enhance your content in a minute
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code:
print 9//2
4.5
4.0
4
Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For the dictionary above, what expression returns the value 100?
d[foo]
d(foo)
d[[foo]]
d[foo:foo]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the list above, what expression returns the value 20?
x[1[1]]
x[1,1]
x[1][1]
x[1][2]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is NOT a core data type?
Lists
Dictionaries
Tuples
Functions
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What data type is this object?
L = [1, 23, 'hello', 1]
Dictionary
List
Tuple
Array
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following functions converts a string to a float in python?
int()
long()
float()
str()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this program below:
nameList = ['Harsh', 'Pratik', 'Bob', 'Dhruv']
pos = nameList.index("GeeksforGeeks")
print (pos * 3)
Harsh
Harsh Harsh Harsh
GeeksforGeeks GeeksforGeeks GeeksforGeeks
ValueError: 'GeeksforGeeks' is not in list
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
20 questions
傳說對決
Quiz
•
KG - Professional Dev...
24 questions
attack on titan for my friends
Quiz
•
5th Grade - Professio...
19 questions
LA CASA DE PAPEL JIJIJIJIJIJJ
Quiz
•
1st Grade - Professio...
17 questions
Co wiesz o Moni?
Quiz
•
University
20 questions
Trivia Treasure
Quiz
•
KG - Professional Dev...
19 questions
video games quizz
Quiz
•
3rd Grade - Professio...
17 questions
Demon Slayer (Kimetsu No Yaiba)
Quiz
•
1st Grade - Professio...
21 questions
Eritrea ❤️ Eritrean
Quiz
•
1st Grade - Professio...
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
