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/01/2020
Lists, Tuples, Sets and Dictionary
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.
What is Tuple in python?
2.
What is output for the following code?
list = ['T', 'L', 'A', 'S', 'L']
list.sort (reverse = false)
print (list)
3.
Write a python program to generate the squares of even numbers between 1 and 10 using the concept of list comprehensions.
4.
Write a python program to print the following output [36,49,64,81,100]
5.
State the working of pop () and clear () function.
6.
Write the syntax of append () and extend () function.
7.
Differentiate append () and extend () function.
8.
Write a program to display element in a list ("Physics' ,"Chemistry", "Biology") using loop to get the output
Physics
Chemistry
Biology
9.
Write a program to print all elements in the list using reverse, indexing.
10.
What is set in Python?
11.
Write the syntax of creating a Tuple with n number of elements.
12.
Differentiate del with remove( ) function of List.
13.
What will be the value of x in following python code?
List 1 = [2, 4, 6[1, 3, 5]]
x = len (List 1)
14.
How will you access the list elements in reverse order?
15.
What is List in Python?
1.
Tuples consists of a number of values separated by comma and enclosed within parentheses. Tuple is similar to list, values in a list can be changed but not in a tuple.
2.
Output:
['A', 'L', 'S', ''T', 'T']
3.
s = [x **2 for x in range (2,11,2)]
print (s)
4.
s = [ ]
for x in range (6, 11)
a=x**2
s. append (a)
print (s)
5.
(i) pop() function: pope () function can also be used to delete an element using the given index value. pop () function deletes and returns the last element of a list if the index is not given
(ii) clear ( ) function: The function clear( ) is used to delete all the elements in list, it deletes only the elements and retains the list.
6.
Syntax:
List.append (element to be added)
List.extend ([elements to be added])
7.
In Python, append( ) function is used to add a single element and extend( ) function is used to add more than one element to an existing list.
8.
MySubject = ["Physics", "Chemistry", "Biology"]
i = 0
while i < len(MySubject):
print (MySubject[i])
i = i + 1
9.
Marks = [10, 23, 41, 75]
i= -1
while i >= -4:
print (Marks[i])
i = i+-1
Output:
75
41
23
10
10.
(i) In Python, a set is another type of collection data type. A'Set is a mutable and an unordered collection of elements without duplicates.
(ii) That means the elements within a set cannot be repeated. This feature used to include membership testing and eliminating duplicate elements.
11.
Syntax:
# Tuple with n number elements
Tuple_Name (E1, E2, E3.......En)
# Elements of a tuple without parenthesis
Tuple_Name = El, E2, E3 ................. En
12.
| del function | remove () function | |
| (i) | del statement is used to delete elements whose index is known. | move( ) function is used to delete elements of a list if its index is unknown. |
| (ii) | The del statement can also be used to delete entire list. | The remove ( ) function can be used to delete one or more elements if the index value is not known. |
13.
4
14.
Python enables reverse or negative indexing for the list elements. Thus, python lists index in opposite order. The python sets -1 as the index value for the last element in list and -2 for the preceding element and so on. This is called as Reverse Indexing.
15.
A list in Python is known as a "Sequence data type" like strings. It is an ordered collection of values enclosed within square brackets [ ]. Each value of a list is called as element.
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