What will be the output of the following Python code?
print('{a}{b}{a}'.format(a='hello', b='world'))
‘hello world’
‘hello’ ‘world’ ‘hello’
‘helloworldhello’
‘hello’ ‘hello’ ‘world’
+
*
–
All of the mentioned
0xA0xB0xC
Error
0x22
33
print(“helloexample est.txt”)
print(“helloexample test.txt”)
print(“hello”example”test.txt”)
print(“hello”example”est.txt”)
hello123
hello
hello6
0
1
-1
2
input(“Enter a string”)
eval(input(“Enter a string”))
enter(“Enter a string”)
eval(enter(“Enter a string”))
print("xyyzxyzxzxyy".count('yy'))
error
none of the mentioned
ascii
qwerty
utf-8
utf-16
print("ccdcddcd".find("c"))
4
True
print('1Rn@'.lower())
n
1rn@
rn
r
def unpack(a,b,c,d): print(a+d) x = [1,2,3,4] unpack(*x)
[1,4]
[5]
5
seed()
sqrt()
factorial()
print()
(x**y)**z
(x**y) / z
(x**y) % z
(x**y)*z
What will be the output of the following Python expression?
print(round(4.5676,2))
4.5
4.6
4.57
4.56
What will be the output of the following Python function?
import math print(abs(math.sqrt(25)))
-5
5.0
sum(2,4,6) sum([1,2,3])
Error, 6
12, Error
12, 6
Error, Error
min(max(False,-3,-4), 2,7)
False
-3
-4
0j
0+0j
(a%b, a//b)
(a//b, a%b)
(a//b, a*b)
(a/b, a%b)