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) 1. Which type of Programming does Python support? 2. What is the output of the following Python Programs? a = “Aticleworld” 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 _________ 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? 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) 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’, ”, []] 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? 25. Which of the following is not a core data type in Python programming? 27. Which of these is the definition for packages in Python? 28. What will be the output of the following Python code? 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? 33. Which function is called when the following Python program is executed? a=10 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) 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’) 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] 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? 45. What will be the output of the following Python code? 46. Which one of the following is the use of function in python? 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’ 56. Which of the following is a feature of Python DocString? 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 79. What will be the output of the following Python code? lamb = lambda x: x ** 3 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 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) 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
Quiz Summary
Information
Results
Results
0 Essay(s) Pending (Possible Point(s): 0)
Categories
1. Question
2. Question
b = 13
print (a + b)
3. Question
4. Question
5. Question
6. Question
7. Question
7. What will be the value of the following Python expression?
4 + 3 % 5
8. Question
9. Question
10. Question
11. Question
12. Question
13. Question
14. Question
15. Question
x<<2
16. Question
17. Question
18. Question
(2**3)**2
2**3**2
19. Question
20. Question
list(filter(bool, l))
21. Question
22. Question
23. Question
24. Question
24. What will be the output of the following Python function?
min(max(False,-3,-4), 2,7)
25. Question
26. Question
26. What will be the output of the following Python expression if x=56.236?
print("%.2f"%x)
27. Question
28. Question
29. Question
29. What will be the output of the following Python function?
len(["hello",2, 4, 6])
30. Question
31. Question
32. Question
32. What will be the output of the following Python statement?
>>>"a"+"bc"
33. Question
b=20
print(a+b)
34. Question
35. Question
>>>print(temp.id)
36. Question
37. Question
38. Question
z.add(‘san’)
z.update(set([‘p’, ‘q’]))
print(z)
39. Question
40. Question
41. Question
42. Question
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. Question
44. Question
print(‘*’, “abcde”.center(6), ‘*’, sep=”)
45. Question
>>>list1 = [1, 3]
>>>list2 = list1
>>>list1[0] = 4
>>>print(list2)
46. Question
47. Question
47. Which of the following Python statements will result in the output: 6?
A = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
48. Question
49. Question
50. Question
51. Question
52. Question
53. Question
54. Question
‘a’ in z
55. Question
55. What will be the output of the following Python expression?
round(4.576)
56. Question
57. Question
57. What will be the output of the following Python code?
print("Hello {0[0]} and {0[1]}".format(('foo', 'bin')))
58. Question
59. Question
60. Question
61. Question
62. Question
63. Question
64. Question
65. Question
66. Question
67. Question
68. Question
69. Question
70. Question
71. Question
72. Question
73. Question
74. Question
75. Question
76. Question
77. Question
78. Question
z = lambda x: x * y
print (z(8))
79. Question
print(lamb(5))
80. Question
81. Question
82. Question
83. Question
f(2, 30, 400)
84. Question
85. Question
print(min(101*99, 102*98))
86. Question
87. Question
88. Question
89. Question
90. Question
91. Question
92. Question
93. Question
94. Question
95. Question
96. Question
97. Question
98. Question
99. Question
100. Question
SCREEN TEST – PYTHON Programming