stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Python at the Point Trivia Flashcards | StudBud
Explore
/
Python at the Point Trivia
Python at the Point Trivia
22 terms
·
StudBud Administration
·
18 plays
Python Programming Trivia. Best Python Trivia on all of Quiz
Flashcards
22 cards
F
Practice quiz
P
Host live
L
Questions
22
Answers
1
Who is the current python BDFL (Benevolent Dictator For Life)?
Guido van Rossum
Raymond Hettinger
None
David Beazley
2
Is there a do while loop in python ?
Yes
No
3
Where is PyCon in 2022?
Cleveland, OH
Salt Lake City
Pittsburgh
Portland, OR
4
Write a list comprehension for number and its cube for l=[1, 2, 3, 4, 5, 6, 7, 8, 9].
[x/3 for x in l]
[x**3 in l]
[x^3 in l]
[x**3 for x in l]
5
Which web framework is the most popular in Python?
Pyramid
Starlette
Flask
Django
6
How many lines of code is CPython? (The main python implementation)
10_000_000
1_000_000
100_000
1_826_364
7
What was PyPi originally called?
Snake Store
Python User Repository
Package Place
Cheese Shop
8
An example of a Dictionary would be...
'CSP is great'
(Red, blue, green)
[Cat, Dog, Mouse]
{'a': 'apple', 'b': 'banana'}
9
Which standard library has an implementation for linked list?
array
collections (deque)
zlib
itertools
10
What year was python created?
1999
1991
1983
2005
11
Where is PyCon in 2023 (next year)?
Salt Lake City
Cleveland, OH
Pittsburgh
Portland, OR
12
Is python compiled language ?
no
yes
13
What was python named after?
Guido's pet black mamba
The snake
Monty
Snakes on a Plane
14
Which PEP acts as a python style guide?
1
8
12
4
15
Who is the creator of Python?
Guido van Rossum
Brendan Eich
Bill Gates
Frank Abagnale
16
In which python release was asyncio released?
3.6
3.3
3.5
3.4
17
What dunder method gives a printable representation of the object?
__pops__
__init__
__print__
__repr__
18
What does an 'else' on a for loop do?
else an exception didn't happen
else a break is found
else an exception happened
else a break point not found
19
What year did python 3 come out?
2015
2008
2012
2018
20
How do you square a number in Python?
x * x
x**2
from math import pow
ALL OF THE ABOVE
21
When was Python 2.7 relased?
2015
2010
2004
1999
22
__lt__ dunder method:
checks if objects are equal
does not exits
allows checking if one object is greater/smaller than other
allows to call len() on the object