sys.path is initialized from which of the following locations ?
Correct Answer: All of the above
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
On a Unix-like system, what does Python's sleep.time() function block?
The __ function can be used to check if a file f exists?
Output of following code? def f2(n, result): if n == 0: return 0 else: return f2(n - 1, n + result) print(f2(2, 0))
Which one is reentrant lock type?
Output of following code? import threading k = 10 x = 0 m = threading.Lock() def foo(): global x for i in xrange(k): with m: x += 1 def bar(): global x for i in xrange(k): with m: x -= 1 t1 = threading.Thread(target=foo) t2 = threading.Thread(target=bar) t1.start() t2.start() t1.join() t2.join() print x
You need to implement an email management system. You want to receive and send the emails from your Python application. Which of the following protocols will be used for email implementation?
Examine the following prototype for the 'open' function of the file class in Python 2.2+: open(fname [,mode [,buffering]]) Which of the following is correct for the 'buffering' argument?
Read the following statements: Statement 1: The conditions used in 'while' and 'if' statements can contain only comparison operators. Statement 2: The operators 'is' and 'is not' compare whether two objects are really the same object. Which of the following is correct?
Output of the following statements: >>> import string >>> s = 'little fox\011jumps over a lazy dog' >>> string.expandtabs(tabsize=1, s=s)
Read the following statements: >>> word = 'Help' + 'A' >>> word[:2] Which of the following will be the output of the above code?