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: 27/09/2019
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 the use of tuple () function? Give example.
2.
Write a python program to generate the squares of even numbers between 1 and 10 using the concept of list comprehensions.
3.
Write a python program to print the following output [36,49,64,81,100]
4.
How will you delete the elements from the list if the index value is not known?
5.
Write the syntax of deleting elements from the list.
6.
Write the syntax of append () and extend () function.
7.
How will you insert elements in a list? Write the syntax.
8.
What is nested list? Give example.
9.
Write the syntax of creating list. Give example.
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.
(i) The tuple( ) function is used to create Tuples from a list. When you create a tuple from a list, the elements should be enclosed within square brackets.
(ii) Example:
MyTup3 = tuple( [23, 45, 90] )
> > > print(MyTup3)
(23, 45, 90)
2.
s = [x **2 for x in range (2,11,2)]
print (s)
3.
s = [ ]
for x in range (6, 11)
a=x**2
s. append (a)
print (s)
4.
The remove( ) function can also be used to delete one or more elements if the index value is not known.
5.
Syntax:
del List [index of an element]
# to delete a particular element
del List [index from : index to]
# to delete multiple elements
del List
# to delete entire list
6.
Syntax:
List.append (element to be added)
List.extend ([elements to be added])
7.
(i) To include an element at your desired position, you can use insert ( ) function. The insert( ) function is used to insert an element at any position of a list.
(ii) Syntax:
List.insert (position index, element)
8.
(i) Mylist contains another list as an element. This type of list is known as "Nested List': Nested list is a list containing another list as an element.
(ii) Example: Mylist = [ "Welcome", 3.14, 10, [2,4,6] ]
9.
Syntax:
Variable = [element-1, element-2, element-3 ................ elernent-n]
Example:
Marks = [10,23,41,75]
Fruits = ["Apple", "Orange", "Mango", "Banana"]
MyList = [ ]
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