Python Quiz
486 subscribers
867 photos
727 links
🎓 Python-викторины для программистов.
Каждый день новая задача, разбор и неожиданные фишки языка.
Download Telegram
Channel created
Channel name was changed to «Python Quizzes»
Channel name was changed to «Python Quiz»
Channel photo updated
What is a correct syntax to output "Hello World" in Python??
Anonymous Quiz
94%
print("Hello World")
3%
p("Hello World")
2%
echo "Hello World"
1%
echo("Hello World")
Which operator is right-associative?
Anonymous Quiz
15%
-*
59%
-=
19%
-+
7%
-%
👍1
What is output of following −
print("any".encode())
Anonymous Quiz
56%
‘any’
15%
‘yan’
24%
b’any’
6%
x’any’
What is the output of the following code?
print(type([1,2]))
Anonymous Quiz
16%
<class 'tuple'>
10%
<class 'int'>
6%
<class 'set'>
3%
<class 'complex'>
64%
<class 'list'>
👍2
Which of the following codes raises an exception?
Anonymous Quiz
23%
# test
30%
a = {1, 2, #comment 3, 4}
Which function could be used to list every file and folder in the current directory?
Anonymous Quiz
12%
os.dirnames(‘.’)
40%
os.listdir(‘.’)
30%
os.listdir(‘/’)
👍1
How to check whether an object x is an instance of class A?
Anonymous Quiz
40%
x.instance(A)
19%
A.instance(x)
32%
isinstance(x, A)
8%
isinstance(A, x)
👍1