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: 01/09/2020
12th Standard Computer Science English Medium Model 3 Mark Book Back Questions (New Syllabus) 2020
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.
Write the coding for the following:
a. To check if PIP is Installed in your PC.
b. To Check the version of PIP installed in your PC.
c. To list the packages in matplotlib.
2.
Read the following details.Based on that write a python script to display records in desending order of
Eno
database name :- organization.db
Table name :- Employee
Columns in the table :- Eno, EmpName, Esal, Dept
3.
Identify the module, operator, definition name for the following
welcome.display().
4.
Write a Python program to read a CSV file with default delimiter comma (,).
5.
Write the use of Savepoint command with an example.
6.
What is the difference between Select and Project command?
7.
Write a class with two private class variables and print the sum using a method.
8.
Explain the difference between del and clear( ) in dictionary with an example.
9.
What is the use of format( )? Give an example.
10.
Write a Python code to check whether a given year is leap year or not.
11.
Write the syntax of while loop.
12.
What are the factors that influence time and space complexity.
13.
Write short notes on Escape sequences with examples.
14.
Define Enclosed scope with an example.
15.
Differentiate Concrete data type and abstract datatype.
16.
Mention the characteristics of Interface.
1.
(a) Check if PIP is Installed:
To check if PIP is already installed in our system, navigate our command line to the location of Python's script directory.
Command:
Python m pip install - U pip.
(b) To check PIP version:
To check the version of PIP in our system, type the command as:
C: \Users\Your Name\App Data\Local\Programs\Python\Python 36-32\Scripts> Pip--version.
(c) List packages:
To view the list of installed packages on our system, use the list command:
C:\Users\Your Name\App Data\Local\Programs\Python\Python 36-32\scripts> Pip list
2.
Program: Display the records in descending order using python script
import mysqldb
db = mysqldb.connect ("local host", "user", "123", "organization")
cursor = db.cursor()
cursor.execute ("SELECT *FROM Employee ORDER BY Name DESC")
result = cursor.fetchall()
for row in results:
ENO = row[0], EmpName = row[1], EmpDept = row[2]
print ENO, EmpName, EmpDept
db.close()
3.
welcome → module name
● → operator name
display() → definition name
4.
Program: To read a csv file with comma (,)
#importing csv
import csv
#opening the csv file which is in different location with read mode
with open('c:\\Pyprg\ \sample1.csv', 'r') as F:
#other way to open the file is
f=('C:\\pyprg\\sample1.csv', 'r')
reader = csv.reader(F))
#printing each line of the Data row by row.
print (row)
F. close( )
Output:
['SNO','NAME', 'CITY']
['12101', 'RAM', 'CHENNAI']
['12102', 'LAVANYA' "TIRUCHY']
['12103', 'LAKSHMAN', 'MADURAI']
5.
(i) The SAVEPOINT command is used to temporarily save a transaction so that you can rollback to the point whenever required.
(ii) The different states of our table can be saved at any time using different names and the rollback to that state can be done using the ROLLBACK command.
(iii) SAVEPOINT savepoint_name:
UPDATE student SET Name = 'Mini' WHERE Admno=105;
SAVEPOINT A;
6.
| Select | Project |
|---|---|
| 1. Symbol - σ | 1. Symbol - π |
| 2. Selecting a subset with tuples | 2. Contains a vertical subset of relation. |
| 3. Select filters out all tuples that don't satisfy the condition. |
3. Projection eliminates all attributes of the input relation except in the projection list. |
7.
Code:
class Sample:
def_init_(self, n1, n2):
self._n1=nt
self_n2-n2
def sum(self):
print ("Class Variable 1:" self_n1)
print ("Class Variable 2:", self_n2)
S=Sample (5,10)
S.sum()
Output:
Class Variable 1:5
Class Variable 2: 10
Sum: 15
8.
| del | Clear( ) | |
| (i) | The del statements is used to delete elements whose index is known. | The function clear ( ) is used to delete all the elements in list. |
| (ii) | The del statement can also be used to delete entire list. | It deletes only the elements and retains the list. |
| (iii) | Example: del Dict ["MarkT"] | Example : Dict.clear( ) |
9.
(i) The format( ) function used with strings is very versatile and powerful function used for formatting strings.
(ii) The curly braces {} are used as placeholders or replacement fields which get replaced along with format( ) function.
Example:
num1 = int (input("Number 1:"))
num2 = int (input("Number 2:"))
print ("The, sum of {} and {} is {}". format (num1, num2, (num1 + num2)))
Output:
Number 1: 34
Number 2: 54
The sum of 34 and 54 is 88.
10.
Code:
n=int(input("Enter the year"))
if(y%4==0):
print ("Leap Year")
else:
print ("Not a Leap Year")
Output:
Enter the year 2012
Leap Year
11.
Syntax :
while <condition>;
statements block 1
[else:
statements block2]
12.
(i) Time Factor -Time is measured by counting the number of key operations like comparisons in the sorting algorithm.
(ii) Space Factor -Space is measured by the maximum memory space required by the algorithm.
13.
(i) In Python strings, the backslash "\" is a special character, also called the"escape" character.
(ii) It is used in representing certain whitespace characters: "\t" is a tab, "\n\" is a newline, and "\r" is a carriage return.
(iii) For example to print the message "It's raining", the Python command is
>>> print ("It \ 's raining")
It's raining
Python supports the following escape sequence characters.
| Escape sequence characters | Description | Example | Output |
| \\ | Backslash | >>> print('\\ test") | \test |
| \' | Single - quote | >>> print("Doesn\'t") | Doesn't |
| \'' | Double - quote | >>>print("\"'python\"") | "python" |
| \n | New line | Print ("python"\n","lang..") | Python lang. |
| \t | Tab | Prlnt ("python'","\t","lang.,") | Python lang.. |
14.
(i) All programming languages permit functions to be nested. A function (method) within another function is called nested function.
(ii) A variable which is declared, inside a function which contains another function definition with in it, the inner function can also access the variable of the outer function. This scope is called enclosed scope.
(iii) When a compiler or interpreter search for a variable in a program, it first searches Local, and then searches Enclosing scopes. Consider the following example
|
1. Disp(); |
Entire program |
Output of the program 10 10 |
15.
| S.No | Concrete data type | Abstract data type |
| (i) | Concrete Data Types or structures (CDT's) are direct implementations of a relatively simple concept | Abstract Data Types (ADT's) offer a high level view (and use) of a concept independent of its implementation. |
| (ii) | A concrete data type is a data type whose representation is known. | Abstract data type the representation of a data type is unknown. |
16.
(i) The class template specifies the interfaces to enable an object to be created and operated properly.
(ii) An object's attributes and behaviour is controlled by sending functions to the object.
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