Every Book Back multiple-choice question from Python Classes and objects (12th Standard Computer Science, Samacheer Kalvi) — each with the correct option highlighted and a clear, worked explanation. Free to read in English and Tamil.
Q1
Which of the following are the key features of an Object Oriented Programming language?
- A. Constructor and Classes
- B. Constructor and Object
- C. Classes and ObjectsCorrect
- D. Constructor and Destructor
Explanation. Classes and objects are the primary building blocks of object-oriented programming, with classes serving as templates and objects representing instances that store data and code together.
Q2
Functions defined inside a class are called:
- A. Functions
- B. Module
- C. MethodsCorrect
- D. section
Explanation. Functions created inside a class template are termed methods, which are used to define the behavior and operations of the class objects.
Q3
Class members are accessed through which operator?
- A. &
- B. .Correct
- C. #
- D. %
Explanation. The dot operator is utilized to access members, including both variables and methods, of a class through an instance of that class.
Q4
Which of the following methods is automatically executed when an object is created?
- A. __object__( )
- B. __del__( )
- C. __func__( )
- D. __init__( )Correct
Explanation. The double underscore init method acts as the constructor in Python, executing automatically upon class instantiation to initialize class variables.
Q5
A private class variable is prefixed with:
- A. __Correct
- B. &&
- C. ##
- D. **
Explanation. In Python, prefixing a variable name with double underscores makes it private, restricting direct access from outside the class structure.
Q6
Which of the following methods is used as a destructor?
- A. __init__( )
- B. __dest__( )
- C. __rem__( )
- D. __del__( )Correct
Explanation. The double underscore del method functions as a destructor in Python, running automatically when an object goes out of scope or is deleted.
Q7
Which of the following class declarations is correct?
- A. class class_name
- B. class class_name<>
- C. class class_name:Correct
- D. class class_name[ ]
Explanation. A class in Python is declared using the class keyword, followed by the class name and a colon to introduce the indented code block.
Q8
What is the output of the following program?
```python
class Student:
def __init__(self, name):
self.name=name
print (self.name)
S=Student("Tamil")
```
- A. Error
- B. TamilCorrect
- C. name
- D. self
Explanation. Instantiating the Student class with the argument Tamil automatically invokes the constructor, which assigns the name and prints it, yielding Tamil as the output.
Q9
Which of the following is a private class variable?
- A. __numCorrect
- B. ##num
- C. \$\$num
- D. &&num
Explanation. Variables declared with a double underscore prefix are treated as private in Python, hiding them from access outside the class scope.
Q10
The process of creating an object is called:
- A. Constructor
- B. Destructor
- C. Initialize
- D. InstantiationCorrect
Explanation. Class instantiation refers to the process of declaring and creating a specific object instance from a class template.
About these Python Classes and objects questions
These are the Book Back multiple-choice questions for Python Classes and objects from the Tamil Nadu State Board (Samacheer Kalvi) 12th Standard Computer Science syllabus. Each question shows the correct option and an original, step-by-step explanation so you understand the method, not just the answer. Use the answer key above to jump to any question, then take the practice test to check yourself under exam-like conditions.
Frequently asked questions
How many MCQs are there in Python Classes and objects?
This chapter has 10 book-back multiple-choice questions, each with the correct answer and a step-by-step explanation.
Are these 12th Standard Computer Science MCQs free to practise online?
Yes. Every question, answer and explanation here is free, and you can also take them as a timed practice test.
Where can I find the Python Classes and objects book-back answers?
The correct option for each question is highlighted on this page with a worked explanation, plus a quick answer-key summary at the top.