Q.51. What are the two main types of functions in Python?
Q.51. What are the two main types of functions in Python?
Q.70.
Which of the following is not a Python built-in data type?
Q.70.
Which of the following is not a Python built-in data type?
Q,71.. Which company developed the Python programming language?
Q,71.. Which company developed the Python programming language?
Q.72.Who developed the Python language?
Q.72.Who developed the Python language?
Q.73. In which programming language, Python was written?
Q.73. In which programming language, Python was written?
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.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.77. Which is used to create an object in Python?
Q.77. Which is used to create an object in Python?
Q.78.Which is used for private data members in Python?
Q.78.Which is used for private data members in Python?
Q.79.Which function opens a file for reading in Python?
Q.79.Which function opens a file for reading in Python?
Q.80. Which mode is used for binary reading in Python?
Q.80. Which mode is used for binary reading in Python?
Q.81.Which of these is mutable?
Q.81.Which of these is mutable?
Q.82.What is the output of “Python”.lower()?
Q.82.What is the output of “Python”.lower()?
Q.83.Which method is used to replace parts of a string?
Q.83.Which method is used to replace parts of a string?
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.68.
Which of the following is a mutable data type in Python?
Q.68.
Which of the following is a mutable data type 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.52. What will be the output of the following Python program?
-
def addItem(listParam):
-
listParam += [1]
-
-
mylist = [1, 2, 3, 4]
-
addItem(mylist)
-
print(len(mylist))
Q.52. What will be the output of the following Python program?
-
def addItem(listParam):
-
listParam += [1]
-
-
mylist = [1, 2, 3, 4]
-
addItem(mylist)
-
print(len(mylist))
Q.53. Which of the following is a Python tuple?
Q.53. Which of the following is a Python tuple?
Q.54. What will be the output of the following Python code snippet?
z=set('abc$de')
'a' in z
Q.54. What will be the output of the following Python code snippet?
z=set('abc$de')
'a' in z
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.56. Which of the following is a feature of Python DocString?
Q.56. Which of the following is a feature of Python DocString?
Q.
57. What will be the output of the following Python code?
print("Hello {0[0]} and {0[1]}".format(('foo', 'bin')))
Q.
57. What will be the output of the following Python code?
print("Hello {0[0]} and {0[1]}".format(('foo', 'bin')))
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.62.
. What will be the output of the following Python code?
def foo():
try:
return 1
finally:
return 2
k = foo()
print(k)
Q.62.
. What will be the output of the following Python code?
def foo():
try:
return 1
finally:
return 2
k = foo()
print(k)
Q.63.
Python is known as:
Q.63.
Python is known as:
Q.64.
Which version of Python removed the print statement?
Q.64.
Which version of Python removed the print statement?
Q.65.
Which of the following is a valid Python comment?
Q.65.
Which of the following is a valid Python comment?
Q.66.Python is a:
Q.66.Python is a:
Q.84.Which block is executed no matter if an exception occurs or not?
Q.84.Which block is executed no matter if an exception occurs or not?