Which of the following function immediately terminates the program?
Correct Answer: sys.exit()
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
Which will remove duplicate elements from a list (O(n)), whilst preserving order?
Correct way to increment the value of the variable 'i' by 1?
Which is the correct way to change the current working directory in Python?
Which can be used to create a directory?
Which answer will catch an exception, but do nothing with it?
Consider a method x.foo decorated with @classmethod: What would x.foo.__class__ return?
In Python 3.2's stand CPython implementation, all built-in types support weak-referencing.
In a Python 3 class declared as 'Child(Base)', what is the correct way for a method 'foo()' to call its base implementation?
Is it possible to use Java classes in Jython?
The built in method reversed() returns: