Welcome to your Python Set 3
Read this before do Start Exam:
1- There are 25 Questions and complete it within 30 Minutes.
2- For Best Experience download our Android App from Google Play Store.
परीक्षा शुरू करने से पहले इसे पढ़ें:
1- 25 प्रश्न हैं और इसे 30 मिनट के भीतर पूरा करें।
2- बेहतरीन अनुभव के लिए Google Play Store से हमारा Android ऐप डाउनलोड करें।
Download App Now
1.
Which module in the python standard library parses options received from the command line?
2.
"What will be the output of the following Python code snippet? for i in [1, 2, 3, 4][::-1]: print (i)"
3.
Which of the following is used to define a block of code in Python language?
4.
What does pip stand for python?
5.
Operators with the same precedence are evaluated in which manner?
6.
"What will be the output of the following Python code? x = 'abcd' for i in x: print(i.upper())"
7.
Which type of Programming does Python support?
8.
Is Python code compiled or interpreted?
9.
30. What is the order of namespaces in which Python looks for an identifier?
10.
Which of the following is the truncation division operator in Python?
11.
Who developed Python Programming Language?
12.
Which of the following functions converts date to corresponding time in Python?
13.
"What will be the output of the following Python code? 1. class tester: 2. def __init__(self, id): 3. self.id = str(id) 4. id=""224"" 5. 6. >>>temp = tester(12) 7. >>>print(temp.id)"
14.
Which of the following character is used to give single-line comments in Python?
15.
" Which function is called when the following Python program is executed? f = foo() format(f)"
16.
" What will be the output of the following Python function? min(max(False,-3,-4), 2,7)"
17.
"The following python program can work with ____ parameters. def f(x): def f1(*args, **kwargs): print(""Sanfoundry"") return x(*args, **kwargs) return f1"
18.
Which of the following is not a core data type in Python programming?
19.
"What will be the output of the following Python statement? >>>""a""+""bc"""
20.
" What will be the output of the following Python function? len([""hello"",2, 4, 6])"
21.
"What will be the output of the following Python expression if x=56.236? print(""%.2f""%x)"
22.
"What will be the output of the following Python program?foo(x): x[0] = ['def'] x[1] = ['abc'] return id(x) q = ['abc', 'def'] print(id(q) == foo(q))"
23.
Which of the following blocks will always be executed whether an exception is encountered or not in a program?
24.
Which of the following statements are used in Exception Handling in Python?
25.
"What will be the output of the following Python code? l=[1, 0, 2, 0, 'hello', '', []] list(filter(bool, l))"