Python Module MCQs

Question 11: The following is an example of _________.

def getcol(x):
    for i in range(x):
        yield i

Question 1: Python modules are stored in which type of file?

Question 2: Which of these is not a built-in module in Python distribution?

Question 3: Built-in modules in Python are written in

Question 4: What will print (randrange(1,10)) statement do?

Question 5: Which of the following statement is incorrect?

Question 6: Which of the following can be a part of the Python module?

Question 7: Which of the following is not a module attribute?

Question 8: Which of the following is an incorrect syntax?

Question 9: The dir() function in Python results in _________.

Question 10: Which of the following is true about the Python package?