0 of 100 Questions completed
Questions:
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:
0 of 100 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)
1. Which type of Programming does Python support?
2. What is the output of the following Python Programs?
a = “Aticleworld”
b = 13
print (a + b)
3. Is Python case sensitive when dealing with identifiers?
4. Which of the following is the correct extension of the Python file?
5. Is Python code compiled or interpreted?
6. All keywords in Python are in _________
7. What will be the value of the following Python expression?
4 + 3 % 5
8. Which of the following is used to define a block of code in Python language?
9. Which keyword is used for function in Python language?
10. Which of the following character is used to give single-line comments in Python?
11. What will be the output of the following Python code?
12. Which of the following functions can help us to find the version of python that we are currently working on?
13. Python supports the creation of anonymous functions using __________
14. What is the order of precedence in python?
15. What will be the output of the following Python code snippet if x=1?
x<<2
16. What does pip stand for python?
17. Which of the following is true for variable names in Python?
18. What are the values of the following Python expressions?
2**(3**2)
(2**3)**2
2**3**2
19. Which of the following is the truncation division operator in Python?
20. What will be the output of the following Python code?
l=[1, 0, 2, 0, ‘hello’, ”, []]
list(filter(bool, l))
21. Which of the following functions is a built-in function in python?
22. Which of the following is the use of id() function in python?
23. What will be the output of the following Python code?
24. What will be the output of the following Python function?
min(max(False,-3,-4), 2,7)
25. Which of the following is not a core data type in Python programming?
26. What will be the output of the following Python expression if x=56.236?
print("%.2f"%x)
27. Which of these is the definition for packages in Python?
28. What will be the output of the following Python code?
29. What will be the output of the following Python function?
len(["hello",2, 4, 6])
30. What is the order of namespaces in which Python looks for an identifier?
31. What will be the output of the following Python code snippet?
32. What will be the output of the following Python statement?
>>>"a"+"bc"
33. Which function is called when the following Python program is executed?
a=10
b=20
print(a+b)
34. Which one of the following is not a keyword in Python language?
35. What will be the output of the following Python code?
>>>temp = tester(12)
>>>print(temp.id)
36. What will be the output of the following Python program?
37. Which module in the python standard library parses options received from the command line?
38. What will be the output of the following Python program?
z=set(‘abc’)
z.add(‘san’)
z.update(set([‘p’, ‘q’]))
print(z)
39. What arithmetic operators cannot be used with strings in Python?
40. What will be the output of the following Python code?
print(“abc. DEF”.capitalize())
41. Which of the following statements is used to create an empty set in Python?
42. What will be the value of ‘result’ in following Python program?
list1 = [1,2,3,4]
list2 = [2,4,5,6]
list3 = [2,6,7,8]
result = list()
result.extend(i for i in list1 if i not in (list2+list3) and i not in result)
result.extend(i for i in list2 if i not in (list1+list3) and i not in result)
result.extend(i for i in list3 if i not in (list1+list2) and i not in result)
43. To add a new element to a list we use which Python command?
44. What will be the output of the following Python code?
print(‘*’, “abcde”.center(6), ‘*’, sep=”)
45. What will be the output of the following Python code?
>>>list1 = [1, 3]
>>>list2 = list1
>>>list1[0] = 4
>>>print(list2)
46. Which one of the following is the use of function in python?
47. Which of the following Python statements will result in the output: 6?
A = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
48. What is the maximum possible length of an identifier in Python?
49. What will be the output of the following Python program?
50. What will be the output of the following Python code?
51. What are the two main types of functions in Python?
52. What will be the output of the following Python program?
53. Which of the following is a Python tuple?
54. What will be the output of the following Python code snippet?
z=’abc$de’
‘a’ in z
55. What will be the output of the following Python expression?
round(4.576)
56. Which of the following is a feature of Python DocString?
57. What will be the output of the following Python code?
print("Hello {0[0]} and {0[1]}".format(('foo', 'bin')))
58. What is output of the following Python code?
import math
print(math.pow(3, 2))
59. Which of the following is the use of dir() function in python?
What will be the output of the following Python code?
x = [[0], [1]]
print(‘ ‘.join(list(map(lambda temp:str(temp), x))))
61. Constructors are generally used for____________
62. What will be the output of the following Python code?
63. Which of the following is the use of function in python?
64. Which keyword is used for class?
65. What will be the output of the following Python code?
66. What will be the output of the following Python code?
67. Which of the following is the correct way of defining DocString?
68. Which are the advantages of functions in python?
69. What are the functions available in Python ?
70. Where is function defined?
71. What is called when a function is defined inside a class?
72. Which of the following is the use to define constructor in python?
73. Which of the following refers to mathematical function?
74. What will be the output of the following Python code?
75. What will be the output of the following Python code?
76. What will be the output of the following Python code?
77. Limitation of lambda function in Python is __________
78. What will be the output of the following Python code?
y = 6
z = lambda x: x * y
print (z(8))
79. What will be the output of the following Python code?
lamb = lambda x: x ** 3
print(lamb(5))
80. Does Lambda contains return statements?
81. Lambda is a statement.
82. Lambda contains block of statements.
83. What will be the output of the following Python code?
def f(x, y, z): return x + y + z
f(2, 30, 400)
84. What will be the output of the following Python code?
85. What will be the output of the following Python code?
min = (lambda x, y: x if x < y else y)
print(min(101*99, 102*98))
86. What is a variable defined outside a function referred to as?
87. What is a variable defined inside a function referred to as?
88. What will be the output of the following Python code?
89. What will be the output of the following Python code?
89. What will be the output of the following Python code?
91. What will be the output of the following Python code?
92. What will be the output of the following Python code?
93. If a function doesn’t have a return statement, which of the following does the function return?
94. What will be the output of the following Python code?
95. What will be the output of the following Python code?
96. What will be the output of the following Python code?
97. What will be the output of the following Python code?
98. What will be the output of the following Python code?
99. In character stream I/O, a single read/write operation performs _____.
100.If a thread goes to sleep