Question Bank

3705 approved questions from the community

Which of the following are types of namespaces in Python? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
Python
by Mohamed

Which of the following statements about Python's memory management are true? (Select all that apply)

HARD
MULTIPLE CHOICE
50s
Python
by Mohamed

In Python's compilation steps, what happens during the Semantic Analysis phase?

HARD
SINGLE CHOICE
40s
Python
by Mohamed

What type does Python's 'None' value belong to?

EASY
SINGLE CHOICE
25s
Python
by Mohamed

What does the filter() function do in Python?

MEDIUM
SINGLE CHOICE
30s
Python
by Mohamed

What is the difference between shallow copy and deep copy in Python?

MEDIUM
SINGLE CHOICE
40s
Python
by Mohamed

What are .pyc files in Python?

EASY
SINGLE CHOICE
30s
Python
by Mohamed

What is the primary difference between a list and an array in Python?

MEDIUM
SINGLE CHOICE
35s
Python
by Mohamed

What is the difference between an iterator and a generator in Python?

MEDIUM
SINGLE CHOICE
40s
Python
by Mohamed

What is the key difference between multithreading and multiprocessing in Python?

MEDIUM
SINGLE CHOICE
40s
Python
by Mohamed

Can you use functions or classes as dictionary keys in Python?

EASY
SINGLE CHOICE
30s
Python
by Mohamed

What is a metaclass in Python?

HARD
SINGLE CHOICE
45s
Python
by Mohamed

What is the recommended approach for loading large data files in Python?

MEDIUM
SINGLE CHOICE
35s
Python
by Mohamed

What are valid uses of the single underscore '_' variable in Python? (Select all that apply)

EASY
MULTIPLE CHOICE
40s
Python
by Mohamed

What is the best practice for concatenating a large number of strings in Python?

MEDIUM
SINGLE CHOICE
35s
Python
by Mohamed

What does the map() function return in Python 3?

MEDIUM
SINGLE CHOICE
30s
Python
by Mohamed

What is the primary purpose of the Python Virtual Machine (PVM)?

MEDIUM
SINGLE CHOICE
35s
Python
by Mohamed

Python 3.11+ introduced the Specializing Adaptive Interpreter. What is its primary benefit?

HARD
SINGLE CHOICE
45s
Python
by Mohamed

In Python, everything is an object, including integers, strings, functions, and classes.

EASY
TRUE FALSE
25s
Python
by Mohamed

Python uses 'interning' to optimize memory for small integers and certain strings by reusing the same object.

MEDIUM
TRUE FALSE
30s
Python
by Mohamed
PreviousPage 119 of 186Next