Q.74.Which one of the following is the correct extension of the Python file?
Q.74.Which one of the following is the correct extension of the Python file?
Q.41. Which of the following statements is used to create an empty set in Python?
Q.41. Which of the following statements is used to create an empty set in Python?
Q.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 re
Q.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 re
-
-
-
-
Q.40. What will be the output of the following Python code?
print("abc. DEF".capitalize())
Q.40. What will be the output of the following Python code?
print("abc. DEF".capitalize())
Q.34.Which one of the following is not a keyword in Python language?
Q.34.Which one of the following is not a keyword in Python language?
Q.33.
What will be the output of the following Python code?
-
class tester:
-
def __init__(self, id):
-
self.id = str(id)
-
id="224"
-
-
>>>temp = tester(12)
-
>>>print(temp.id)
Q.33.
What will be the output of the following Python code?
-
class tester:
-
def __init__(self, id):
-
self.id = str(id)
-
id="224"
-
-
>>>temp = tester(12)
-
>>>print(temp.id)
Q.30. What is the order of namespaces in which Python looks for an identifier?
Q.30. What is the order of namespaces in which Python looks for an identifier?
Q.13. Python supports the creation of anonymous functions at runtime, using a construct called __________
Q.13. Python supports the creation of anonymous functions at runtime, using a construct called __________
The list.pop ([i]) removes the item at the given position in the list?
The list.pop ([i]) removes the item at the given position in the list?
The % operator returns the ___.
The % operator returns the ___.
Q.08.Which of the following is used to define a block of code in Python language?
Q.08.Which of the following is used to define a block of code in Python language?
Q.44. What will be the output of the following Python code?
print('*', "abcde".center(6), '*', sep='')
Q.44. What will be the output of the following Python code?
print('*', "abcde".center(6), '*', sep='')
Q.53. Which of the following is a Python tuple?
Q.53. Which of the following is a Python tuple?
Q.55. What will be the output of the following Python expression?
round(4.576)
Q.55. What will be the output of the following Python expression?
round(4.576)
Q.75.What do we use to define a block of code in Python language?
Q.75.What do we use to define a block of code in Python language?
Q.76. Which is not an OOP principle?
Q.76. Which is not an OOP principle?
Q,71.. Which company developed the Python programming language?
Q,71.. Which company developed the Python programming language?
Q.69.What data type would you use to store a whole number in Python?
Q.69.What data type would you use to store a whole number in Python?
Q.67.
Which of these data types does Python not natively support?
Q.67.
Which of these data types does Python not natively support?
Q.65.
Which of the following is a valid Python comment?
Q.65.
Which of the following is a valid Python comment?
Q.63.
Python is known as:
Q.63.
Python is known as:
Q.58. What is output of print(math.pow(3, 2))?
Q.58. What is output of print(math.pow(3, 2))?
Q.59. Which of the following is the use of id() function in python?
Q.59. Which of the following is the use of id() function in python?
Q.60. What will be the output of the following Python code?
x = [[0], [1]]
print((' '.join(list(map(str, x))),))
Q.60. What will be the output of the following Python code?
x = [[0], [1]]
print((' '.join(list(map(str, x))),))
Q.09.Which keyword is used for function in Python language?
Q.09.Which keyword is used for function in Python language?
Amongst the following, who is the developer of Python programming?
Amongst the following, who is the developer of Python programming?
What are the values of the following Python expressions?
2**(3**2)
(2**3)**2
2**3**2
What are the values of the following Python expressions?
2**(3**2)
(2**3)**2
2**3**2
What does pip stand for python?
What does pip stand for python?
Which of the following functions can help us to find the version of python that we are currently working on?
Which of the following functions can help us to find the version of python that we are currently working on?
What is the order of precedence in python?
What is the order of precedence in python?
-
-
-
-
Python supports the creation of anonymous functions at runtime, using a construct called __________
Python supports the creation of anonymous functions at runtime, using a construct called __________
What will be the output of the following Python code?
i = 1
while True:
if i%3 == 0:
break
print(i)
i + = 1
What will be the output of the following Python code?
i = 1
while True:
if i%3 == 0:
break
print(i)
i + = 1
Which keyword is used for function in Python language?
Which keyword is used for function in Python language?
What will be the value of the following Python expression?
4 + 3 % 5
What will be the value of the following Python expression?
4 + 3 % 5
Is Python code compiled or interpreted?
Is Python code compiled or interpreted?
Is Python case sensitive when dealing with identifiers?
Is Python case sensitive when dealing with identifiers?
What will be the output of the following Python code?
l=[1, 0, 2, 0, 'hello', '', []]
list(filter(bool, l))
What will be the output of the following Python code?
l=[1, 0, 2, 0, 'hello', '', []]
list(filter(bool, l))
-
-
-
-
Which of the following is the use of id() function in python?
Which of the following is the use of id() function in python?
What will be the output of the following Python function?
min(max(False,-3,-4), 2,7)
What will be the output of the following Python function?
min(max(False,-3,-4), 2,7)
In Python, find which one isn’t an exception handling keyword.
In Python, find which one isn’t an exception handling keyword.
The return value for trunc() would be:
The return value for trunc() would be:
Which one of these is incorrect?
Which one of these is incorrect?
Find the invalid variable among the following:
Find the invalid variable among the following:
What will be the output of the following Python code?
x = 'abcd'
for i in range(len(x)):
print(i)
What will be the output of the following Python code?
x = 'abcd'
for i in range(len(x)):
print(i)
Which of the following Python statements will result in the output: 6?
A = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
Which of the following Python statements will result in the output: 6?
A = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
What will be the output of the following Python code?
-
>>>list1 = [1, 3]
-
>>>list2 = list1
-
>>>list1[0] = 4
-
>>>print(list2)
What will be the output of the following Python code?
-
>>>list1 = [1, 3]
-
>>>list2 = list1
-
>>>list1[0] = 4
-
>>>print(list2)
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)
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)
-
-
-
-
Which of the following is not a core data type in Python programming?
Which of the following is not a core data type in Python programming?
What will be the output of the following Python expression if x=56.236?
print("%.2f"%x)
What will be the output of the following Python expression if x=56.236?
print("%.2f"%x)
Who developed Python Programming Language?
Who developed Python Programming Language?