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: 13/05/2022
QB365 provides detailed and simple solution for every Creative Questions in class 12 Computer Science Subject. It will helps to get more idea about question pattern in every Creative questions with solution.
latest Creative QuestionsDownload 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.
Read the following program. Answer the following question. Class sample:
x, y= 10, 20
s= sample ()
print (s. x + s. y)
1. What does sample denotes?
2. What does x, y denotes?
3. What does s denotes?
2.
Fill up the blanks in the following program to get the output:
Value of x = 10
Value of y = 20
Sum of x and y= 30
Class sample:
x, __ = 10, 20 -------------------1
s = -------------------------2
print ("value of x =", __ ) ------------3
print ("value of y =", __ ) -------------4
print ("sum of x and y =", __ ) --------5
3.
Why the following program give an error while displaying the value of n2. Give Reason.
4.
Explain the working of the following program. class Sample:
def _init_(self, num):
print("Constructor of class Sample ...")
self.num=num
print("The value is :", num)
S=Sample(10)
5.
Write a note on self argument used in python class function.
1.
1. It denotes class name
2. x, y is a class variables of the class
3. S is an object created to access the members of the class
2.
1. - y
2. - sample 0
3. - s.x
4. - s. y
5. - s. x + s. y
3.
class Sample:
def _init_(self, n1, n2):
self.n1=n1
self._n2=n2
def display(self):
print("Class variable 1 = ", self.n1)
print("Class variable 2 = ", self._n2)
S=Sample(12,14)
S.display()
print("Value 1 = ", S.n1)
print("Value 2 = ". S._n2)
Reason: The print statements defined within class will successfully display the values of n1 and n2, even though the class variable n2 is private because, in this case, n2 is called by a method defined inside the class. But, when we try to access the value of n2 from outside the class Python throws an error because, private variable cannot be accessed from outside the class.
4.
(i) The above class "Sample': has only a constructor with one argument named as num. When the constructor gets executed, first the print statement, prints the "Constructor of class Sample ... " then, the passing value to the constructor is assigned to self.num and finally it prints the value passed along with the given string.
(ii) The above constructor gets executed automatically, when an object S is created with actual parameter 10. Thus, the Python displays the following output.
(iii) Constructor of class Sample ...
The value is: 10
Class variable defined within constructor keep count of number of objects created with the class.
5.
(i) 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.
(ii) No need to pass a value for this argument when we call the method. Python provides its value automatically.
(iii) Even if a method takes no arguments, it should be defined with the first argument called self.
(iv) If a method is defined to accept only one argument it will take it as two arguments ie. self and the defined argument.
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