Python sys Module Quiz
FREE Online Courses: Dive into Knowledge for Free. Learn More!
Quiz Summary
0 of 10 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Results
0 of 10 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- Current
- Review / Skip
- Answered
- Correct
- Incorrect
-
Question 1 of 10
1. Question
sys is a ____ module.
CorrectIncorrect -
Question 2 of 10
2. Question
sys is a sub-module of the ____ module.
CorrectIncorrect -
Question 3 of 10
3. Question
Which object can be used to take input from a user?
CorrectIncorrect -
Question 4 of 10
4. Question
Which object is used to get the Python interpreter’s current version?
CorrectIncorrect -
Question 5 of 10
5. Question
Which function is used to set a recursion limit?
CorrectIncorrect -
Question 6 of 10
6. Question
import sys
print(sys.maxsize)
CorrectIncorrect -
Question 7 of 10
7. Question
import sys
print(sys.stdout.write(“Python”))
CorrectIncorrect -
Question 8 of 10
8. Question
Copyright (c) 2001-2020 Python Software Foundation.
All Rights Reserved.
Copyright (c) 2000 BeOpen.com.
All Rights Reserved.
Copyright (c) 1995-2001 Corporation for National Research Initiatives.
All Rights Reserved.
Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved.
CorrectIncorrect -
Question 9 of 10
9. Question
import sys
sys.setrecursionlimit(5)
def natural_numbers(num):
return natural_numbers(num+1)
natural_numbers(1)
CorrectIncorrect -
Question 10 of 10
10. Question
import sys
num = 24
if 24 % 2 == 0:
sys.exit()
print(“Even Number”)
else:
print(“Odd Number”)
CorrectIncorrect