/Python Mcq Set 10 MCQs :- multiple choice questions and answers. e.g MCQS, Mock Tests , Practice Papers , Sample Test, Sample questions

Your Session ID :-Guest1625103

Question 1: What will be the output of the following Python code? class A: def __init__(self, x= 1): self.x = x class der(A): def __init__(self,y = 2): super().__init__() self.y = y def main(): obj = der() print(obj.x, obj.y) main()

Error, the syntax of the invoking method is wrong

The program runs fine but nothing is printed

1 0

1 2

Total MCQS Questions are 50 in this paper Python Mcq Set 10
Search
Categories
R4R Team
R4R provides Multiple choice questions and answers ( MCQs) .The questions on R4R.co.in website is done by expert team! Mock Tests and Practice Papers for prepare yourself.. Mock Tests, Practice Papers,Python Mcq Set 10, MCQS, Objetive choice questions and answers, Multiple choice questions and answers, objective, questions , answers, MCQs questions and answers