Which one of the following is not a keyword in Python language?
Which one of the following is not a keyword in Python language?
Which of the following is the use of id() function in python?
Which of the following is the use of id() function in python?
Which of the following functions is a built-in function in python?
Which of the following functions is a built-in function in python?
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 truncation division operator in Python?
Which of the following is the truncation division operator in Python?
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
Which of the following is true for variable names in Python?
Which of the following is true for variable names in Python?
What does pip stand for python?
What does pip stand for python?
What will be the output of the following Python code snippet if x=1?
x<<2
What will be the output of the following Python code snippet if x=1?
x<<2
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 __________
The following python program can work with ____ parameters.
def f(x):
def f1(*args, **kwargs):
print("Sanfoundry")
return x(*args, **kwargs)
return f1
The following python program can work with ____ parameters.
def f(x):
def f1(*args, **kwargs):
print("Sanfoundry")
return x(*args, **kwargs)
return f1
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)
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)
Which function is called when the following Python program is executed?
f = foo()
format(f)
Which function is called when the following Python program is executed?
f = foo()
format(f)
What will be the output of the following Python statement?
>>>"a"+"bc"
What will be the output of the following Python statement?
>>>"a"+"bc"
What will be the output of the following Python code snippet?
for i in [1, 2, 3, 4][::-1]:
print (i)
What will be the output of the following Python code snippet?
for i in [1, 2, 3, 4][::-1]:
print (i)
What is the order of namespaces in which Python looks for an identifier?
What is the order of namespaces in which Python looks for an identifier?
What will be the output of the following Python code?
x = 'abcd'
for i in x:
print(i.upper())
What will be the output of the following Python code?
x = 'abcd'
for i in x:
print(i.upper())
What will be the output of the following Python function?
len(["hello",2, 4, 6])
What will be the output of the following Python function?
len(["hello",2, 4, 6])
Which of these is the definition for packages in Python?
Which of these is the definition for packages in Python?
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)
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?
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?
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 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
Q.81.Which of these is mutable?
Q.81.Which of these is mutable?
Q.77. Which is used to create an object in Python?
Q.77. Which is used to create an object in Python?
Q.65.
Which of the following is a valid Python comment?
Q.65.
Which of the following is a valid Python comment?
Q.53. Which of the following is a Python tuple?
Q.53. Which of the following is a Python tuple?
Q.46. Which one of the following is the use of function in python?
Q.46. Which one of the following is the use of function in python?
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.27.Which of these is the definition for packages in Python?
Q.27.Which of these is the definition for packages in Python?
Q.14.What is the order of precedence in python?
Q.14.What is the order of precedence in python?
-
-
-
-
Q.07.
What will be the value of the following Python expression?
4 + 3 % 5
Q.07.
What will be the value of the following Python expression?
4 + 3 % 5
Q.05.Is Python code compiled or interpreted?
Q.05.Is Python code compiled or interpreted?
Q.87.How to add an element to the end of a list?
Q.87.How to add an element to the end of a list?
Q.96.What is the purpose of the len()
function in Python?
Q.96.What is the purpose of the len()
function in Python?
Q.99. What is the purpose of the if
statement in Python?
Q.99. What is the purpose of the if
statement in Python?
Which of the following character is used to give single-line comments in Python?
Which of the following character is used to give single-line comments in Python?
Which keyword is used for function in Python language?
Which keyword is used for function in Python language?
Which of the following is used to define a block of code in Python language?
Which of the following is used to define a block of code 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
All keywords in Python are in _________
All keywords in Python are in _________
Is Python code compiled or interpreted?
Is Python code compiled or interpreted?
Which of the following is the correct extension of the Python file?
Which of the following is the correct extension of the Python file?
Is Python case sensitive when dealing with identifiers?
Is Python case sensitive when dealing with identifiers?
Which type of Programming does Python support?
Which type of Programming does Python support?
Who developed Python Programming Language?
Who developed Python Programming Language?
Q.01.Who developed Python Programming Language?
Q.01.Who developed Python Programming Language?