Brisk
Quiz
Practice. Learn. Score.
Home
🔍
🌙
🏆
Leaderboard
Login
IT
›
Python
⏱
00:00
0/7 answered
Score: 0
🔀 Click here to get new question set
Sign up
to save this score to the leaderboard.
Question 1
What is the correct way to create a list containing the numbers 1, 2, and 3 in Python?
(1, 2, 3)
list(1, 2, 3)
[1, 2, 3]
{1, 2, 3}
Question 2
What is the difference between a Python "shallow" and a "deep" comparison of two nested data structures, such as two lists of lists?
A shallow comparison recursively checks the equality of every nested element as well
A deep comparison can only ever be performed manually, without using the "==" operator
A deep comparison recursively checks the equality of every nested element as well
Python is technically incapable of ever comparing two nested data structures at all
Question 3
What is the purpose of Python's "csv" module?
Provides functions used exclusively for making outgoing HTTP network requests
Provides functions used only for compiling Python source code into bytecode
Reads and writes tabular data stored in comma-separated values (CSV) format
Provides functions specifically for performing advanced mathematical calculations
Question 4
What is the purpose of Python's "multiprocessing" module, as an alternative to "threading" for CPU-bound work?
Provides a way to permanently disable the Global Interpreter Lock outright
Automatically converts a synchronous function into an asynchronous one
Runs separate processes, each with its own interpreter, bypassing the GIL
Runs separate lightweight threads that all share the exact same GIL
Question 5
What is the purpose of Python's "self" parameter, conventionally the first parameter of an instance method?
Refers to the immediate parent class in the inheritance hierarchy
Refers to the class itself, rather than to any specific instance
Declares that a method should behave as a static method instead
Refers to the specific instance the method was actually called on
Question 6
What does the phrase "Pythonic" generally describe about a piece of Python code?
Code that has been deliberately written to be compatible with older Python 2
Code that avoids using absolutely any of Python's external, third-party packages
Code that has been specifically optimized to run as fast as technically possible
Code that follows Python's idioms and conventions in a natural, readable way
Question 7
What is Python's "duck typing" philosophy, informally summarized as "if it walks like a duck..."?
A style of typing exclusively used when writing unit test assertion code
Objects can only ever be compared if they share the exact identical class
Every variable in Python must always be explicitly declared with a fixed type
An object's suitability is determined by its behavior, not its explicit type
🔀 Click here to get new question set
Sign up
to save this score to the leaderboard.
Share this quiz
𝕏
💬
f
in
🔗
📚 All Quizzes
Browse every category and see the full list of quizzes on BriskQuiz
→
🏠
Home
📚
Categories
🏆
Leaderboard
👤
Profile