- Af(a=1, b=1, c=2, d)
- Bf(a=1, b=1, c=2)
- Cf(a=1, b, c=2)
- Df(a=1, b)
Time Taken:
Correct Answer:
Wrong Answer:
Percentage: %
The correct statement to retrieve names of all built-in objects is:
import builtins; builtins.__dict__.keys()
The correct method to pick a single element randomly from a given list of elements using the random module is:
random.choice()
So, the correct answer is: choice
The keyword used for defining a function in Python is:
def
So, the correct answer is: def
The statement that is not true about Python functions is:
"Non-keyword arguments can be passed after keyword arguments."
In Python, non-keyword arguments (positional arguments) must be passed before keyword arguments.
The exception that occurs when an undefined object is accessed in Python is:
NameError
So, the correct answer is: NameError
Correct answer is: TypeError
The module used to manage installation, upgrading, and deletion of other packages automatically in Python is:
pip
So, the correct answer is: pip