Correct Answer: This function takes a wildcard pattern and returns a list of matching filenames or paths.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Python Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Python MCQ Questions
In order to display a value in the interactive interpreter, Python uses what method of a class?
Given str='code', what will be the result of the expression str[0] = 'm'?
filter(function, iterable) is equivalent to:
Is it possible to check for more than one error in one except line?
What does the following code do: @something def some_function(): pass
Output of the following Python code? class Error(Exception): ''0...' pass class ValueTooSmallError(Error): '.'1uu' pass class ValueTooLargeError(Error): m2'... pass number = 10 while True: try: i_num =10 if i_num < number: raise ValueTooSmallError elif i_num > number: raise ValueTooLargeError break except ValueTooSmallError: print('1') printi) except ValueTooLargeError: print('1') printi) print('0')
Correct answer from the given options. class ErrorInCode(Exception): def __init__(self, data): self.data = data def __str__(self): return repr(self.data) try: raise ErrorInCode(1000) except ErrorInCode as ae: print ('0'ae.data) finally: print ('1')
Output of the following Python code? import math a = 3.4536 print ('Result = ',end='') print (math.trunc(a)+math.ceil(a)+math.floor(a))
Correct answer from the options given below. tp1 = (Python ) m = 5 for i in range(int(m-1)):
Output of the following Python code? a = 1 def f(): print (a+2) def g(): a = 2 print (a+1) def h(): global a a = 3 print (a+3) print (a+4) f() print (a+2) g() print (a+1) h() print (a+2)