What will be the output of the following Python code? π€π§ π₯οΈ
--> print("abc. DEF".capitalize())
--> print("abc. DEF".capitalize())
Anonymous Quiz
13%
Abc. def
7%
abc. def
23%
Abc. Def
57%
ABC DEF
What will be the output of the following Python statement?
>>> "a"+"bc"
>>> "a"+"bc"
Anonymous Quiz
3%
bc
91%
abc
2%
b
3%
bca
What will be the output of the following Python code snippet? π₯οΈπ§ π€
z=set('abc$de') 'a' in z
z=set('abc$de') 'a' in z
Anonymous Quiz
29%
error
52%
True
13%
False
6%
None of the above
What will be the output of the following Python code snippet? π₯οΈπ§ π€
for i in [1, 2, 3, 4][::-1]: print (i)
for i in [1, 2, 3, 4][::-1]: print (i)
Anonymous Quiz
70%
4 3 2 1
10%
2 3 1 4
12%
1 2 3 4
8%
None of the above
What is output of the following π§ π₯οΈπ€
--> print(math.pow(3, 2))?
--> print(math.pow(3, 2))?
Anonymous Quiz
61%
9
9%
None
23%
9.0
7%
Error
What is the maximum possible length of an identifier in Python?π§ π₯οΈπ€
Anonymous Quiz
25%
79 characters
19%
31 characters
10%
23 characters
46%
Unlimited
Which of the following Python statements will result in the output: 6? π₯οΈπ§ π€
A = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
A = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
Anonymous Quiz
10%
A[2][1]
50%
A[1][2]
33%
A[2][3]
7%
A[3][2]
Which of the following is correctly evaluated for this function?π€π₯οΈπ§
pow(x,y,z)
pow(x,y,z)
Anonymous Quiz
35%
(x**y) / z
22%
(x / y) * z
32%
(x**y) % z
10%
(x / y) / z
Suppose you are given a set(s1={1,2,3}) then what is the output for the code ?π§ π₯οΈπ€
--> 2 * s1?
--> 2 * s1?
Anonymous Quiz
19%
(1,1,2,2,3,3)
14%
[1,1,2,2,3,3]
39%
Error
28%
(1,2,3,1,2,3)
What error will occur when you execute the following code? π₯οΈπ€π§
--> MANGO = APPLE
--> MANGO = APPLE
Anonymous Quiz
28%
NameError
34%
SyntaxError
18%
TypeError
21%
ValueError
What will be the output of this statement? π₯οΈπ€π§
--> print(0xA + 0xB + 0xC)
--> print(0xA + 0xB + 0xC)
Anonymous Quiz
9%
63
21%
33
35%
None
34%
0xA + 0xB + 0xC
What will be the output of this statement? π€π§ π₯οΈ
--> print(ord('h') - ord('z'))
--> print(ord('h') - ord('z'))
Anonymous Quiz
21%
18
53%
-18
17%
17
9%
-17
What happens when '2' == 2 is executed? π§ π₯οΈπ€
Anonymous Quiz
42%
False
25%
True
24%
Value error
9%
Tupe error
Your dream career is just a few steps away!π§
π±β’ Get upto 100% Scholarship on India's highest rated coding courses!
π»β’ Learn C++, Java, Python, Web Dev, Data Science and other highly sought after skills from IIT and Stanford Alumni.
πβ’ Get Interview preparation book & Christmas hampers wirth Rs. 2000 for free on course enrollment!
Apply Now : https://bit.ly/3GXAGDV
Use code : INSTA50 to get 50% off and then you have to pay only Rs. 48, not even $1 & Rs 50π³π
π±β’ Get upto 100% Scholarship on India's highest rated coding courses!
π»β’ Learn C++, Java, Python, Web Dev, Data Science and other highly sought after skills from IIT and Stanford Alumni.
πβ’ Get Interview preparation book & Christmas hampers wirth Rs. 2000 for free on course enrollment!
Apply Now : https://bit.ly/3GXAGDV
Use code : INSTA50 to get 50% off and then you have to pay only Rs. 48, not even $1 & Rs 50π³π
Which of the following is the correct statement? π§ π€π₯οΈ
--> z = {"x":0, "y":1}
--> z = {"x":0, "y":1}
Anonymous Quiz
9%
x dictionary z is created
33%
x and y are the keys of dictionary z
13%
0 and 1 are the values of dictionary z
46%
All of the above
Suppose we are given with two sets(s1&s2) then what is the output of the code β π₯οΈπ€π§
--> S1 + S2
--> S1 + S2
Anonymous Quiz
25%
Illegal Command
16%
Output will be stored in S1
32%
Adds the elements of both the sets
27%
Removes the repeating elements and adds the both the sets
What will be the output of this program? π§ π₯οΈπ€
--> print(True ** False / True)
--> print(True ** False / True)
Anonymous Quiz
20%
True ** False / True
35%
1.0
18%
1 ** 0 / 1
26%
None of these
What will be the output of this program? π§ π€π₯οΈ
--> int1 = 0b0010
print(int1)
--> int1 = 0b0010
print(int1)
Anonymous Quiz
32%
0b0010
30%
2
23%
NameError: name '0b0010' is not defined
14%
SyntaxError
What will be the output of this program?π§ π₯οΈπ€
--> print(6 + 5 - 4 * 3 / 2 % 1)
--> print(6 + 5 - 4 * 3 / 2 % 1)
Anonymous Quiz
13%
7
31%
7.0
13%
15
43%
11.0