What will be the output of the following Python statement?
What will be the output of the following Python code?
i = 2
while True:
if i%3 == 0:
break
print(i)
i += 2
What will be the output of the following Python code?
i = 0
while i < 5:
print(i)
i += 1
if i == 3:
break
else:
print(0)
Which one of the following has the same precedence level?
What will be the value of x in the following Python expression?
What is the answer to this expression, 22 % 3 is?
What arithmetic operators cannot be used with strings?
The format function, when applied on a string returns ___________
Which one of the following has the highest precedence in the expression?
What is “Hello”.replace(“l”, “e”)?
What will be the output of the following Python expression?
What will be the output of the “hello” +1+2+3?
Which of the following statement prints hello\example\test.txt?
What will be the output of the following Python code?
x = 'abcd'
for i in x:
print(i)
x.upper()
What will be the output of the following Python code?
d = {0, 1, 2}
for x in d:
print(d.add(x))
Is Python case sensitive when dealing with identifiers?
In order to store values in terms of key and value we use what core data type.
Which of the following is an invalid variable?
What will be the output of the following Python code?
i = 0
while i < 3:
print(i)
i += 1
else:
print(0)
Which of these in not a core data type?