What will be the output of the following Python code snippet?
print(''.isdigit())
What is the output of the following code?
def a():
pass
print(callable(a))
Which type of loop has a condition that is always true?
Which of the following functions is not defined under the sys module?
What will be the output of the following Python expression if X = -122?
print("-%06d" % -122)
White box testing is also known as which of the following?
What will be the output of the following Python code?
>>> a=(1,2)
>>> b=(3,4)
>>> c=a+b
>>> c
What is the output of the following code?
def foo(x):
x = ['def', 'abc']
return id(x)
q = ['abc', 'def']
print(id(q) == foo(q))
What will be the output of the following Python code?
def foo(x):
x = ['def', 'abc']
return id(x)
q = ['abc', 'def']
print(id(q) == foo(q))
What is the order of precedence in python?
i) Parentheses
ii) Exponential
iii) Multiplication
iv) Division
v) Addition
vi) Subtraction