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 12Computer Science Subject - Lists, Tuples, Sets and Dictionary , 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.
Differentiate list and tuple.
2.
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.
3.
Write the output for the following.
list = [36, 12, 12]
(I) print (list. count (12))
(ii) print (list. index (12))
(iii) print (list. reverse ())
4.
Explain the concept of list comprehension with an example programs.
5.
Read the following and write the output given by the print function mentione(d)
list = [12, 89, 34, 79, 80]
(I) print (list. remove (34))
(Ii) print (list. pop (1))
(iii) print (list. clear ())
6.
Write the syntax of remove (), pop and clear ().
7.
Read the following program and write the output according to the print statement mentioned
list = ['T', 'H', 'N', 'M']
del list [1]
(i) print (list)
del list [1:3]
(ii) print (list)
del list
(iii) print (list)
8.
What is the output of the following code?
(i) list = [34, 45, 48]
print (list.append (80))
(ii) list = [34, 45, 48]
print (list.extend (80, 90))
(iii) list = [34, 98, 47, 55]
list.insert (3, 90)
print (list)
9.
What is the output for the following code?
10.
How will you change the list elements in Python? Give an example.
11.
Fill up the following program to get the output TECM.
list = ['T', 'E', 'C', 'M']
i=0
(i) while _________:
(ii) ________ (MySubject[i], ________)
(iii) ____ i = i +
12.
How will you find the length of a list? Explain with an example.
13.
How will you create a set using list or tuple? Give an example.
14.
Write a program to swap two values using tuple assignment.
15.
Write a program that creates a list of numbers from 1 to 20 that are divisible by 4.
1.
(i) In a list, elements are defined within square brackets, whereas in tuples, they may be enclosed by parenthesis.
(ii) The elements of a tuple can be even defined without parenthesis.
(iii) Whether the elements defined within parenthesis or without parenthesis, there is no differente in it's function.
2.
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
3.
Output:
(i) 2
(ii) 1
(iii) [12, 12, 36]
4.
(i) List comprehension is a simplest way of creating sequence of elements that satisfy a certain condition.
(ii) Syntax:
List = [ expression for variable in range ]
(iii) Example: Generating squares of first 10 natural numbers using the concept of List comprehension.
> > > squares = [x ** 2 for x in range(1, 11) ]
> > > print (squares)
Output:
[1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
5.
Output:
(i) 12, 89, 79, 80
(ii) 12, 79, 80
(iii) []
6.
Syntax:
(i) remove (): List.remove(element) # to delete a particular element
(ii) pop(): List.pop(index of an element)
(iii) clear (): List. clear ()
7.
Output:
(i) ['T', 'N', 'M']
(ii) ['T'
(iii) Error
8.
Output:
(i) 34, 45, 48, 80
(ii) 34, 45, 48, 80, 90
(iii) [34, 98, 47, 90, 55]
9.
MyList = [2, 4, 5, 8, 10]
print ("MyList elements before update ... ")
for x in MyList:
print (x)
MyList[2] = 6
print ("MyList elements after updation ... ")
for y in MyList:
print (y)
Output:
MyList elements before update ...
2
4
5
8
10
MyList elements after updation ...
2
4
6
8
10
10.
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)
11.
(i) i < len (list)
(ii) print
(iii) end = '\t'
12.
(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
13.
A list or Tuple can be converted as set by using set( ) function. This is very simple procedure. First you have to create a list or Tuple then, substitute its variable within set( ) function as argument.
Example:
MyList= [2, 4, 6, 8, 10]
MySet=set(MyList)
print(MySet)
Output:
{2, 4, 6, 8, 10}
14.
a = int(input("Enter value of A:"))
b = int(input('Enter value of B:"))
print("Value of A = ",a, "\n Value of B = ",b)
(a, b) = (b, a)
print("Value of A = ",a, "\n Value of B = ",b)
Output:
Enter value of A: 54
Enter value of B: 38
value of A = 54
value of B = 38
value of A = 38
value of B = 54
15.
divBy4=[ ]
for i in range(21):
if (i%4==0):
divBy4.append(i)
print( divBy4)
Output:
[0,4,8,12,16,20]
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