Which one of these answers will catch an exception, but do nothing with it?
Correct Answer: try: doSomething() except: pass
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
How to convert a json string to Python object?
_____ measures how full the hash table is?
What gets printed on the console for the following Python 2.x code? A0 = dict(zip(('a','b','c','d','e'),(1,2,3,4,5))) A1 = range(5) A2 = sorted([i for i in A1 if i in A0]) A3 = sorted([A0[s] for s in A0]) A4 = [i for i in A1 if i in A3] A5 = {i:i*i for i in A1} A6 = [[i,i*i] for i in A1] print A6
In Python, a string literal is enclosed in _____?
What is the type of x? x = 10.0//5
Which of these Python 2.7 APIs provides a high (for the platform) resolution wall-clock timer?
In the Python 2.x interpreter, which piece of code will print 'hello world' with only a space between the words?
If a = 1 and b = 2, what does the expression 'a and b' return?
If you wanted to determine the type of an image with the stdlib, you would use functions from which module?
Which is equivalent to 'x = a + b'?