Bihar STET Computer Science – Programming Concepts Set 3

Questions 51-55 of 100

0% completed (0/100 answered)
Your score 0/100 0 answered
Correct 0 Incorrect 0 Unanswered 100 Accuracy 0%

Question 51

MCQ · Single Correct 1 mark
Previous Year Question Bihar STET C.S. 03.11.2025 (Shift-I) PYQ

In Python classes, what is the purpose of the '__str__(self)' magic method?

Answers for question 51

Question 52

MCQ · Single Correct 1 mark

In Python classes, what is the purpose of the '__repr__(self)' magic method?

Answers for question 52

Question 53

MCQ · Single Correct 1 mark
Previous Year Question Bihar STET C.S. 03.11.2025 (Shift-I) PYQ

In Python, what magic method is overloaded to define behavior for the equality comparison operator '==' between custom objects?

Answers for question 53

Question 54

MCQ · Single Correct 1 mark

Which Python magic method enables instances of a custom class to be called like functions (e.g., obj(arg1))?

Answers for question 54

Question 55

MCQ · Single Correct 1 mark
Previous Year Question Bihar STET C.S. 03.11.2025 (Shift-I) PYQ

In Python, what is the '@property' decorator used for?

Answers for question 55
Scroll to Top