What is the output of the code?
Anonymous Quiz
18%
Nothing is printed
11%
i from A is 0
37%
i from A is 60
24%
i from A is 90
7%
Error
3%
None of the above
What is the output of the code?
Anonymous Quiz
7%
Nothing
12%
Inbox Inbox
48%
Inbox Spam
16%
Spam Inbox
8%
Spam Spam
7%
Error
2%
None of the above
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