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: 17/10/2019
பைத்தான் இனக்குழுக்கள் மற்றும் பொருள்கள்
12ஆம் வகுப்பு Computer Science / கணினி அறிவியல் தமிழ் மீடியம் | மாதிரி வினாத்தாள்கள் | முக்கிய வினாக்கள் | கேள்வி விடை தொகுப்பு | வினாத்தாள்கள் | பொதுத்தேர்வு மாதிரி வினாத்தாள்கள் , Computer Science / கணினி அறிவியல் பாடத்திற்கான மாதிரி வினாத்தாள்கள், முக்கிய கேள்வி-விடைகள், ஒருமார்க் கேள்விகள், காலாண்டு & பொதுத்தேர்வு கேள்வித் தொகுப்புகள்
Questions + Answers key
Take MCQ Computer Science Test

1.
பைத்தானில் ஆக்கி மற்றும் அழிப்பிகளை எவ்வாறு வரையறுப்பாய்?
2.
பின்வரும் நிரலின் வெளியீடு என்ன?
class Greeting:
def __init__(self, name):
self.__name = name
def display(self):
print("Good Morning ", self.__name)
obj=Greeting('Bindu Madhavan')
obj.display( )
3.
கொடுக்கப்பட்ட வெளியீட்டை பெற பின்வரும் நிரலில் உள்ள பிழைகளை காண்க.
class Fruits:
def __init__(self, f1, f2):
self.f1=f1
self.f2=f2
def display(self):
print("Fruit 1 = %s, Fruit 2 = %s" %(self.f1, self.f2))
F = Fruits ('Apple', 'Mango')
del F.display
F.display()
வெளியீடு :
Fruit 1 = Apple, Fruit 2 = Mango
4.
இரண்டு private இனக்குழு மாறிகளுடன், வழிமுறையை பயன்படுத்தி கூட்டுத்தொகை sum அச்சிடும் இனக்குழுவை வரையறுக்கவும்.
5.
இனக்குழு உறுப்புகள் என்றால் என்ன? அதனை எவ்வாறு வரையறுப்பாய்?
6.
பொருட்களையும், அதன் அடக்க விலையையும் சேமிக்கவும், சேமிக்கப்பட்ட பொருட்களை திரையில் தோன்றவும் செய்ய வேண்டும். அப்போது அனைத்து பொருட்களையும் அளவுகளை உள்ளீடாக பெற்று இறுதியில் விலைப்பட்டியலை அச்சிடும் பைத்தான் நிரல் ஒன்றை எழுதுக.
7.
சரத்தை உள்ளீடாகப் பெற்று, அதில் எத்தனை பெரிய எழுத்துக்கள், சிறிய எழுத்துக்கள், உயிரெழுத்துகள், மெய்யெழுத்துகள் மற்றும் இடைவெளிகள் உள்ளன என்று கண்டறியும் பைத்தான் நிரலை எழுதுக.
8.
உன்னுடைய பள்ளி நூலகத்தில் உள்ள புத்தகங்களை பதிவு செய்து, புத்தகங்களின் பட்டியலை காட்டும் பைத்தான் நிரலை எழுதுக.
9.
இனக்குழுவைப் பயன்படுத்தி கொடுக்கப்பட்ட எண் நேர்மறை எண்ணா அல்லது எதிர்மறை எண்ணா என்று சோதித்து அச்சிடும் பைத்தான் நிரலை எழுதுக.
10.
இனக்குழுவை பயன்படுத்தி கொடுக்கப்பட்ட எண் ஒற்றைப்படை அல்லது இரட்டைப்படை எண்ணா எனச் சோதித்து அச்சிடும் பைத்தான் நிரலை எழுதுக.
11.
எழுது பொருட்களை (stationery) சேர்க்க அல்லது நீக்கும் பட்டியல் முறை நிரல் ஒன்றை எழுதுக. பொருள்களின் பெயர் மற்றும் பிராண்ட் - யை ஒரு dictionary - யில் சேமிக்க வேண்டும்.
1.
ஆக்கி :
ஓர் இனக்குழுவின் சான்றுரு பயன்பாட்டிற்கு வரும் பொழுது ஆக்கி என்னும் சிறப்புச் செயற்கூறு தானாகவே இயக்கப்படுகிறது. பைத்தானில், “init” என்னும் சிறப்பு செயற்கூறு ஆக்கியாக செயல்படுகிறது. இது இரட்டை அடிக்கீறில் (UnderScore)தொடங்கி இரட்டை அடிக்கீறலுடன் முடிய வேண்டும்.
__init__வழிமுறையின் (ஆக்கி) பொதுவடிவம்
def __init__(self, [args .......]):
<statements>
அழிப்பி :
பொருள்களை அழிப்பதற்கான சிறப்பு செயற்கூறு அழிப்பி (destructor) ஆகும். இது ஆக்கியின் செயல்பாட்டிற்கு எதிரானது ஆகும். பைத்தானில், _ del _( ) செயற்கூறு அழிப்பியாகப் பயன்படுத்தப்படுகிறது.
2.
Good Morning Bindu Madhavan
3.
கொடுக்கப்பட்ட நிரலில் எட்டாவது வரியில் வருகின்ற del F.display எனும் கூற்று தேவையில்லாத ஒன்று. பின்வரும் வெளியீடு கிடைக்க இந்த கூற்று தேவையில்லாத ஒன்று.
4.
Code:
class Sample :
def __init__(self, n1, n2):
self._n1=n1
self._n2=n2
def sum(self):
print ("Class Variable 1:",self._n1)
print ("Class Variable 2:", self._n2)
S=Sample (5,10)
S.sum()
வெளியீடு :
>>>
Class Variable 1 : 5
Class Variable 2 : 10
Sum : 15
>>>
5.
(i) இனக்குழுக்குள்ளே வரையறுக்கப்படும் மாறிகள் இனக்குழு மாறிகள் (Class variables) என்றும் செயற்கூறுகள் வழிமுறைகள் (methods) என்றும் அழைக்கப்படும்.
(ii) இனக்குழு மாறிகள் மற்றும் வழிமுறைகள் சேர்ந்து இனக்குழுவின் உறுப்புகள் (members) எனப்படும்.
(iii) இனக்குழுவின் உறுப்புகளை இனக்குழுவின் பொருள்கள் அல்லது சான்றுருக்கள் மூலமாகவே அணுகுதல் வேண்டும்.
(iv) பைத்தானில், இனக்குழுவை வரையறுக்க class என்னும் சிறப்புச் சொல் பயன்படுத்தப்படுகிறது. ஒவ்வொரு இனக்குழுவும் தனித்த பெயருடன் முக்காற்புள்ளி(:) யைக் கொண்டு முடியும்.
தொடரியல்
class class_name:
statement_1
statement_2
....................
....................
statement_n
6.
class MyStore:
__ prod _ code = [ ]
__ prod _ name = [ ]
__ prod _ price = [ ]
__ prod _ quant = [ ]
def getdata ( self ):
self. p = int ( input ( " Enter no. of products you need to store: ) )
for x in range ( self. p ):
self. __ prod _ code.
append ( int ( input ( " Enter Product Code: " ) )
self. __ prod _ name. append ( str ( input ( " Enter Product Name: " ) ) )
self. __ prod _ price. append ( int ( input ( " Enter Cost price: " ) ) )
def display ( self ):
print ( " Stock in Stores " )
print ( " -------------------------------------- " )
print ( " Product Code \t Product Name \t Cost price " )
print ( " --------------------------------------- " )
for x in range ( self. p ):
print ( self. __ prod _ code [ x ], " \t\t ", self. __ prod _ name [ x ], " \t\t ", self. __ cost _ price [ x ] )
print ( " ------------------------------------------ " )
def print _ bill ( self ):
total _ price = 0
for x in range ( self. p ):
q = int ( input ( " Enter the quantity for the product code %d: " % self. __ prod _ code [ x ] ) )
self. __ prod _ quant. append ( q )
total _ price = total _ price + self. __ cost _ price [ x ] * self. __ prod _quant [ x ]
print ( " Invoice Receipt " )
print ( " ------------------------------------------- " )
print ( " Product Code \t Product Name \t Cost Price \t Quantity \t Total Amount " )
print ( " -------------------------------------------- " )
for x in range ( self. p ):
print ( self. __ prod _ code [ x ], " \t\t ", self. __ prod _ name [ x ], " \t\t ",
print ( self. __ prod _ price [ x ], " \t\t ", self. __ prod _ quant [ x ], " \t\t ",
self. __ cost _ price [ x ], " \t\t ", self. __ cost _ price [ x ] )
print ( " ------------------------------------------ " )
print ( " Total Amount = ", total _ price )
S = MyStore ( )
S. getdata ( )
S. display ( )
S. print _ bill ( )
7.
class String:
def _ init _ ( self ):
self. uppercase = 0
self. lowercase = 0
self. vowels = 0
self. consonants = 0
self. spaces = 0
self. string = " "
def getstr ( self ):
self. string = str ( input ( " Enter a String: " ) )
def count _ upper ( self ) :
for ch in self. string:
if ( ch. isupper ( ) ):
self. uppercase + = 1
def count _ lower ( self ):
for ch in self. string:
if ( ch. islower ( ) ):
self. lowercase + = 1
def count _ vowels ( self ):
for ch in self. string:
if ( ch in ( ' A ', ' a ', ' e ', ' E ', ' i ' , ' I ', ' o ', ' O ', ' l ', ' L ' ) ):
self. vowels + = 1
def count _ consonants ( self ):
for ch in self. string:
if ( ch not in ( ' A ', ' a ', ' e ', ' E ', ' i ' , ' I ', ' o ', ' O ', ' l ', ' L ' ) ):
self. consonants + = 1
def count _ space ( self ):
for ch in self. string:
if ( ch = = " " ):
self. spaces + = 1
def execute ( self ):
self. count _ upper ( )
self. count _ lower ( )
self. count _ vowels ( )
self. count _ consonants ( )
self. count _ space ( )
def display ( self ):
print ( The given string contains . . ." )
print ( " %d Uppercase letters " % self. uppercase )
print ( " %d Lowercase letters " % self. lowercase )
print ( " %d Vowels " % self. vowels )
print ( " %d Consonants " % self. consonants )
print ( " %d Spaces " % self. spaces )
S = String ( )
S. getstr ( )
S. execute ( )
S. display ( )
8.
class Library:
def _ init _ ( self ):
self. bookname = " "
self. author = " "
def getdata ( self ):
self. bookname = input ( " Enter Name of the Book: " )
self. author = input ( " Enter Author of the Book: " )
def display ( self ):
print ( " Name of the Book: ", self. bookname )
print ( " Author of the Book: ", self. author )
print ( " \n " )
book = [ ] # empty list
ch = ' y '
while ( ch = = ' y ' ):
print ( " 1. Add new Book \n 2. Display Books " )
resp = int ( input ( " Enter your choice: " ) )
if ( resp = = 1 ):
L = Library ( )
L. getdata ( )
book. append ( L )
elif ( resp = = 2 ):
for x in book:
x. display ( )
else:
print ( " Invalid input . . . . " )
ch = input ( " Do you want continue . . . . " )
9.
class Test:
def check ( self, num )
if num> 0:
print ( num, " is positive number " )
else:
print ( num, " is negative number " )
n = test ( )
x = int ( input ( " Enter the number " ) )
n. check ( x )
10.
இனக்குழுவைப் பயன்படுத்தி கொடுக்கப்பட்ட எண் ஒற்றைப்படை அல்லது இரட்டைப்படை எண்ணா என்று சோதித்து அச்சிடும் நிரல்:
class Odd_Even:
even = 0 #class variable
def check(self, num):
if num%2==0:
print ( num, " is Even number " )
else:
print ( num, " is Odd number " )
n=Odd_Even ( )
x = int ( input ( " Odd number " )
n. check ( x )
11.
Class stationery:
def getdata(self):
self.Itemname = input ("enter name of the item")
self.Brand = input ("enter brand name")
item = {}
ch= 'y'
while (ch = = 'y'):
print ("1. Add items \n 2. Delete items")
n = int (input ("enter your choice"))
if (n = = 1):
s = stationery ( )
s.getdata ( )
item.append {S}
elif (n = = 2):
del item
else: print ("Invalid Input")
ch = input ("Do you want to continue (Y/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