What will be the output of the Python code?
Anonymous Quiz
15%
The program has an error because there isnβt any function to return self.a
33%
The program has an error because b is private and display(self) is returning a private member
27%
The program has an error because b is private and hence canβt be printed
25%
The program runs fine and 1 is printed
What is the output of the program?
Anonymous Quiz
7%
['a', 'b', 'c']
5%
['c', 'b', 'a']
20%
['a', 'b', 'c', 'a', 'b', 'c', 'a', 'b', 'c']
21%
['c', 'b', 'a', 'c', 'b', 'a', 'c', 'b', 'a']
18%
[]
26%
Error
3%
None of the mentioned
π€1
What is the true statement about the code snippet?
Anonymous Quiz
44%
Class B inherits all the data fields of class A
16%
Class B needs an argument
17%
The data field βjβ cannot be accessed by object b
24%
Class B is inheriting class A but the data field βiβ in A cannot be inherited
What is the output of the code?
Anonymous Quiz
24%
{0: 1, 7: 0, 1: 1, 8: 0}
29%
{1: 1, 7: 2, 0: 1, 8: 1}
22%
{0: 0, 7: 0, 1: 1, 8: 1}
25%
KeyError
What is the output of the program?
Anonymous Quiz
10%
0-0-5
9%
1-2-10
12%
2-1-5
47%
2-0-5
6%
3-1-10
4%
3-2-6
12%
Error
π1
What is the output of the code snippet?
Anonymous Quiz
7%
False False True True False
6%
False False True True True
18%
True True True True True
16%
True True True True False
3%
True True 0 0 False
22%
True True 3 1 False
9%
True True 3 1 True
12%
Error
7%
None of the above
π3π1
What will be the output of the code?
Anonymous Quiz
9%
0
7%
1
36%
10
16%
20
11%
50
14%
Error
7%
None of the above