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
63%
4 3 2 1
15%
error
14%
1 2 3 4
8%
none of the mentioned
What will be the output of the following Python function?π€π₯οΈπ§
len(["hello",2, 4, 6])
len(["hello",2, 4, 6])
Anonymous Quiz
24%
Error
9%
6
57%
4
10%
3
What will be the output of the following Python code?π€π₯οΈπ§
x = 'abcd'
for i in range(len(x)): print(i)
x = 'abcd'
for i in range(len(x)): print(i)
Anonymous Quiz
14%
error
21%
1 2 3 4
29%
a b c d
36%
0 1 2 3
The process of pickling in Python includes ____________π€π₯οΈπ§
Anonymous Quiz
33%
conversion of a Python object hierarchy into byte stream
21%
conversion of a datatable into a list
31%
conversion of a byte stream into Python object hierarchy
15%
conversion of a list into a datatable
Python supports the creation of anonymous functions at runtime, using a construct called __________π€π₯οΈπ§
Anonymous Quiz
14%
pi
23%
anonymous
57%
lambda
5%
none of the mentioned
What will be the output of the following Python program?π€π₯οΈπ§
z=set('abc')
z.add('san') z.update(set(['p', 'q'])) z
z=set('abc')
z.add('san') z.update(set(['p', 'q'])) z
Anonymous Quiz
15%
{βaβ, βcβ, βcβ, βpβ, βqβ, βsβ, βaβ, βnβ}
40%
{βabcβ, βpβ, βqβ, βsanβ}
22%
{βaβ, βbβ, βcβ, βpβ, βqβ, βsanβ}
23%
{βaβ, βbβ, βcβ, [βpβ, βqβ], βsan}
What is the order of precedence in python?π€π₯οΈπ§
Anonymous Quiz
17%
Exponential, Parentheses, Multiplication, Division, Addition, Subtraction
27%
Exponential, Parentheses, Division, Multiplication, Addition, Subtraction
25%
Parentheses, Exponential, Multiplication, Division, Subtraction, Addition
30%
Parentheses, Exponential, Multiplication, Division, Addition, Subtraction
What will be the output of the following Python code?π€π₯οΈπ§
print(0xA + 0xB + 0xC)
print(0xA + 0xB + 0xC)
Anonymous Quiz
29%
0xA0xB0xC
36%
Error
12%
0x22
23%
33
What will be the output of the following Python code?π€π₯οΈπ§
>>>example = "snow world"
>>>example[3] = 's' >>>print example
>>>example = "snow world"
>>>example[3] = 's' >>>print example
Anonymous Quiz
15%
snow
31%
snow world
53%
Error
What will be the output of the following Python code?π€π₯οΈπ§
True = False while True: print(True) break
True = False while True: print(True) break
Anonymous Quiz
26%
True
33%
False
23%
None
18%
none of the mentioned
What will be the output of the following Python code?π€π₯οΈπ§
x = ['ab', 'cd']
for i in x: i.upper() print(x)
x = ['ab', 'cd']
for i in x: i.upper() print(x)
Anonymous Quiz
14%
[βabβ, βcdβ]
67%
[βABβ, βCDβ]
9%
[None, None]
10%
none of the mentioned
What is the maximum possible length of an identifier in Python?π€π₯οΈπ§
Anonymous Quiz
25%
79 characters
16%
31 characters
22%
63 characters
36%
none of the mentioned
What does pip stand for python?π€π₯οΈπ§
Anonymous Quiz
7%
unlimited length
10%
all private members must have leading and trailing underscores
67%
Preferred Installer Program
15%
none of the mentioned
Which function is called when the following Python program is executed?π€π₯οΈπ§
f = foo()
format(f)
f = foo()
format(f)
Anonymous Quiz
17%
str()
47%
format()
15%
__str__()
21%
__format__()
What will be the output of the following Python code snippet?π€π₯οΈπ§
x = 'abcd'
for i in range(len(x)): print(x) x = 'a'
x = 'abcd'
for i in range(len(x)): print(x) x = 'a'
Anonymous Quiz
13%
a
35%
abcd abcd abcd abcd
30%
a a a a
21%
none of the mentioned
What will be the output of the following Python code?π€π₯οΈπ§
i = 0
while i < 3: print(i) i += 1 else: print(0)
i = 0
while i < 3: print(i) i += 1 else: print(0)
Anonymous Quiz
19%
0 1 2 3 0
35%
0 1 2 0
32%
0 1 2
15%
error
What will be the output of the following Python code?π€π₯οΈπ§
for i in range(int(2.0)):
print(i)
for i in range(int(2.0)):
print(i)
Anonymous Quiz
19%
0.0 1.0
46%
0 1
24%
error
11%
none of the mentioned
My friends, are you a final year student or just graduated?π€
Join Coding Ninjas pay after placement program. Learn Coding for free & pay only if you get job of Salary Rs. 7-20 Lakh!π
Take one step ahead to join your dream companies like Amazon, Google & Microsoft!π§
100% Job Gurantee!π±
Register for freeπ
https://bit.ly/36FOk1q
Join Coding Ninjas pay after placement program. Learn Coding for free & pay only if you get job of Salary Rs. 7-20 Lakh!π
Take one step ahead to join your dream companies like Amazon, Google & Microsoft!π§
100% Job Gurantee!π±
Register for freeπ
https://bit.ly/36FOk1q