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: 22/06/2021
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.
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 out put for the following statement.
strl = "Raja Raja Chozhan"
(i) print (strl. count ('Raja'))
(ii) print (strl. count ('R'))
(iii) print (strl. count ('A'))
(iv) print (strl. count ('a'))
(v) print (strl. count ('a', 0, 5))
(vi) print (strl. count ('a', 11))
2.
Write the output for the following statement.
(i) print ("PYTHON" . lower ())
(ii) print ("PYTHON" . islower ())
(iii) print ("PYTHON" . isupper ())
(iv) print ("PYTHON" . upper ())
3.
Write the output of the following statements.
strl = 'mammals'
(i) std. find ('ma')
(ii) std. find ('ma', 2)
(iii) std. find ('ma', 2, 4)
(iv) std. find ('ma', 2, 5)
4.
Write the syntax and example of using string characters.
5.
How the positive and negative subscript values are assigned? Give example.
6.
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
7.
Why the following program give an error while displaying the value of n2. Give Reason.
8.
Why we need to construct the pass statement?
9.
Draw a flowchart that illustrate how looping construct gets executed.
10.
Draw the flowchart that illustrates the working of break statement
11.
Draw the flowchart that illustrates the use of break and continue statement in loop structure.
12.
Write a note on the following function used in list.
13.
Explain with an example how will you create a tuple with a single element.
14.
Write a program to define a list of countries that are a member of BRICS. Check whether a county is member of BRICS or not.
15.
How will you change the list elements in Python? Give an example.
16.
How will you find the length of a list? Explain with an example.
17.
Write a pseudo code for Insertion sort.
18.
Write a note on two factors in which space required by an algorithm is decided.
19.
Design an algorithm to find square of the given number and display the result.
20.
Assume a = 1000 b = 10, Evaluate the following expression.
(i) a%30
(ii) a/b
(iii) b**2
(iv) b//3
21.
Write a Python program to get the following output.
Output:
Enter Number 1: 50
Enter Number 2: 50
The sum of 50 and 50 is 100
22.
Differentiate two ways in which Python programs can be written.
23.
How will you ensure the principle of data encapsulation in object - oriented programming?
24.
Write a note on built-in scope.
25.
Give an example of an ADT for rational numbers.
1.
(i) 2
(ii) 2
(iii) 0
(iv) 5
(v) 2
(vi) 1
2.
(i) python
(ii) false
(iii) false
(iv) PYTHON
3.
(i) 0
(ii) 3
(iii) -1
(iv) 3
4.
Syntax:
("String to be display with %vall and %vaI2" %(val1, vaI2))
Example:
name = "Rajarajan''
mark = 98
print ("Name: %s and Marks: %d" %(name,mark) )
Output:
Name: Rajarajan and Marks: 98
5.
The positive subscript 0 is assigned to the first character and n-1 to the last character, where n is the number of charaters in the string. The negative index assigned from the last character to the first character in reverse order begins with -1.
Example:
| String | S | C | H | O | O | L |
| Positive subscript | 0 | 1 | 2 | 3 | 4 | 5 |
| Built in functions | -6 | -5 | -4 | -3 | -2 | -1 |
6.
1. - y
2. - sample 0
3. - s.x
4. - s. y
5. - s. x + s. y
7.
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.
8.
pass statement is generally used as a placeholder. When we have a loop or function that is to be implemented in the future and not now, we cannot develop such functions or loops with empty body segment because the interpreter would raise an error. So, to avoid this we can use pass statement to construct a body that does nothing.
9.

10.

11.

12.
| max( ) | Returns the maximum value in a list |
max (list) |
MyList=[21, 76, 98, 23] print(maxtMyList) Output: 98 |
| min( ) | Returns the minimum value in a list. |
min (list) |
MyList=[21, 76, 98, 23] print(min(MyList) ) Output: 21 |
| sum( ) | Returns the sum of values in a list. |
sum (list) |
MyList=[21, 76, 98, 23] print(sum(MyList) ) Output: 218 |
13.
(i) While creating a tuple with a single element, add a comma at the end of the element.
(ii) In the absence of a comma, Python will consider the element as an ordinary data type; not a tuple. Creating a Tuple with one element is called "Singleton" tuple.
(iii) Example:
Example:
> > > MyTup4 = (10)
> > > type(MyTup4)
< class 'int' >
> > > MyTup5 = (10,)
>>> type(MyTup5)
< class 'tuple' >
14.
country=["India", "Russia", "Srilanka", "China", "Brazil"]
is_member = input("Enter the name of the country: ")
if is_member in country:
print(is_member, " is the member of BRICS")
else:
print(is_member, " is not a member of BRICS")
Output:
Enter the name of the country: India
India is the member of BRICS
Output:
Enter the name of the country: Japan
Japan is not a member of BRICS
15.
In Python, the lists are mutable, which means they can be changed. A list element or range of elements can be changed or altered by using simple assignment operator (=).
Example:
MyList = [1,3,5,7,9]
print ("List Odd numbers ... ")
for x in MyList:
print (x)
MyList[0:5] = 2, 4, 6, 8, 10
print ("List Even numbers ... ")
for y in MyList:
print (y)
16.
(i) The len( ) function in Python is used to find the length of a list. (i.e., the number of elements in a list).
(ii) Usually, the len( ) function is used to set the upper limit in a loop to read all the elements of a list.
(iii) If a list contains another list as an element, len( ) returns that inner list as a single element.
(iv) Example: Accessing single element
> > > MySubject = ['Tamil', 'English', 'Comp', 'Science', 'Maths']
> > > len(MySubject)
4
17.
Step 1 - If it is the first element, it is already sorted.
Step 2 - Pick next element
Step 3 - Compare with all elements in the sorted sub-list
Step 4 - Shift all the elements in the sorted sub-list that is greater than the value to be sorted
Step 5 - Insert the value
Step 6 - Repeat until list is sorted
18.
The space required by an algorithm is equal to the sum of the following two components:
(i) A fixed part is defined as the total space required to store certain data and variables for an algorithm. For example, simple variables and constants used in an algorithm.
(ii) A variable part is defined as the total space required by variables, which sizes depends on the problem and its iteration. For example: recursion used to calculate factorial of a given value n.
19.
The algorithm can be written as:
Step 1: start the process
Step 2: get the input x
Step 3: calculate the square by multiplying the input value ie., square \(\leftarrow \)x* x
Step 4: display the result square
Step 5: stop
20.
(i) 100
(ii) 100.0
(iii) 100
(iv) 3
21.
x = int(input ("Enter Number 1")
y = int(input("Enter Number 2")
print ("The sum of", x, " and ", y, "is", x+y)
22.
(i) In Python, programs can be written in two ways namely Interactive mode and Script mode.
(ii) The Interactive mode allows us to write codes in Python command prompt >>> whereas in script mode programs can be written and stored as separate file with the extension.
(iii) py and executed. Script mode is used to create and edit python source file.
23.
Public members (generally methods declared in a class) are accessible from outside the class. The object of the same class is required to invoke a public method. This arrangement of private instance variables and public methods ensures the principle of data encapsulation.
24.
(i) Built-in scope is the widest scope. The built -in scope has all the names that are pre-loaded into the program scope when we start the compiler or interpreter.
(ii) Any variable or module which is defined in the library functions of a programming language has Built-in or module scope. They are loaded as soon as the library files are imported to the program.

(iii) Normally only Functions or modules come along with the software, as packages, therefore they will come under Built in scope.
25.
An ADT for rational numbers:
- - constructor
- - constructs a rational number with numerator n, denominator d
rational(n, d)
- - selector
number(x) \(\rightarrow \) returns the numerator of rational number x
denom(y) \(\rightarrow \) returns the denominator of rational number y
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