12th Standard Syllabus & Materials
12th Standard
TN 12th Computer Applications மின்னணு தரவு பரிமாற்றம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின் - வணிக பாதுகாப்பு அமைப்புகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின்னணு செலுத்தல் முறைகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின் - வணிகம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications திறந்த மூல கருத்துருக்கள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications வலையமைப்பு வடமிடல் Sample Question Papers Study Material - QB365 Set A

Published on: 10/09/2022
QB365 provides a detailed and simple solution for every Possible Creative Questions in Class 12 Computer Science Subject - Python Classes and Objects , English Medium. It will help Students to get more practice questions, Students can Practice these question papers in addition to score best marks.
Download Tamil Nadu 12th Standard Computer Science question papers, model tests, one-mark questions, important questions, and public exam papers in PDF format. Free study materials and answer keys for TN State Board students.
Questions + Answers key
Take MCQ Computer Science Test

1.
what is the output of the following program?
Class Hosting:
def_init_(self, name):
Self._name = name
def display(self):
print("welcome to", self._name)
obj = Greeting('Python programming')
obi.display()
2.
What are private members?
3.
What are public members?
4.
How will you declare a class variable?
5.
What are self arguments?
6.
How will you access the class members?
7.
Write a note on public and private data members of python class.
8.
Explain the working of the following program
class Sample:
num=0
def _init_(self) var):
Sample.num+= 1
self.var=var
print("The object value is = ", var)
print("The count of object created Sample.num) =",
S1=Sample(15)
S2=Sample(35)
S3=Sample(45)
9.
Write a program in python that illustrate the use of constructor.
10.
Name the function which acts as a constructor and destructor.
11.
Differentiate python class function and ordinary function.
12.
Write the syntax for the following
(i) Creating objects
(ii) Accessing class members
13.
Write the general form of declaring class in Python.
1.
Output:
Welcome to Python programming.
2.
A variable prefixed with double underscore becomes private in nature. These variables can be accessed only within the class.
3.
The Variables which are defined inside the class is public by default. These variables can be accessed anywhere in the program using dot operator.
4.
When we declare a class variable within the class, methods must be prefixed by the class name and dot operator.
5.
Python class function or method is very similar to ordinary function with a small difference that, the class method must have the first argument named as self.
6.
Any class member i.e. class variable or method (function) can be accessed by using object with a dot (.) operator.
7.
(i) The variables which are defined inside the class is public by default. These variables can be accessed anywhere in the program using dot operator.
(ii) A variable prefixed with double underscore becomes private in nature. These variables can be accessed only within the class
8.
In the program, class variable num is shared by all three objects of the class Sample. It is initialized to zero and each time an object is created, the num is incremented by 1. Since, the variable shared by all objects, change made to num by one object is reflected in other objects as well
9.
Program to illustrate Constructor:
class Sample:
def _init_(self, num):
print("Constructor of class Sample...")
self.num=num
print("The value is :", num)
S = Sample(10)
Output:
constructor of class Sample..
The value is:10
10.
Constructor -( - - init - - ( ))
Destructor -(- - del - - ( ))
11.
Python class function or method is very similar to ordinary function with a small difference. The class method must have the first argument named as self.
12.
(i) Object - name = class_name ()
(ll) Object - name = class_member
13.
In Python, a class is defined by using the keyword class. Every class has a unique name followed by a colon (:).
Syntax:
class class_name:
statement_1
statement_2
.................
.................
statement_n
12th Standard Syllabus & Materials
12th Standard
TN 12th Computer Applications களப்பெயர் முறைமை (DNS) Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications வலையமைப்பு எடுத்துக்காட்டுகள் மற்றும் நெறிமுறைகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications கணினி வலையமைப்பு ஓர் அறிமுகம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications PHP-உடன் MySQL-ஐ இணைத்தல் Sample Question Papers Study Material - QB365 Set A
Tamilnadu Stateboard 12th Standard Subjects

Maths

Chemistry

Physics

Biology

Computer Science

Business Maths and Statistics

Economics

Commerce

Accountancy

History

Computer Applications

Biology

Computer Technology

Computer Applications

Computer Science

Business Maths and Statistics

Commerce

Economics

Maths

Chemistry

Physics

Computer Technology

History

Accountancy

Tamil

English

French
Tamilnadu Stateboard Standards