Search Results for:

Tamil Nadu 12th Commerce Model Question Papers 2019-2020 English Tamil Medium

Expert Teachers at SamacheerKalvi.Guru has created Samacheer Kalvi Tamil Nadu State Board Syllabus New Paper Pattern 12th Commerce Model Question Papers 2019-2020 with Answers Pdf Free Download in English Medium and Tamil Medium of TN 12th Standard Commerce Public Exam Question Papers Answer Key, New Paper Pattern of HSC 12th Class Commerce Previous Year Question Papers, Plus Two +2 Commerce Model Sample Papers are part of Tamil Nadu 12th Model Question Papers.

Here we have given the Government of Tamil Nadu State Board 12th Commerce Model Question Papers Tamil Medium with Answers 2019-20 Pdf. Students can view or download the Class 12th Commerce New Model Question Papers 2020 Tamil Nadu English Medium Pdf for their upcoming Tamil Nadu HSC Board Exams. Students can also read Tamilnadu Samcheer Kalvi 12th Commerce Book Solutions.

TN State Board 12th Commerce Model Question Papers 2019 2020 English Tamil Medium

Tamil Nadu 12th Commerce Model Question Papers English Medium 2019-2020

Tamil Nadu 12th Commerce Model Question Papers Tamil Medium 2019-2020

  • Tamil Nadu 12th Commerce Model Question Paper 1 Tamil Medium
  • Tamil Nadu 12th Commerce Model Question Paper 2 Tamil Medium
  • Tamil Nadu 12th Commerce Model Question Paper 3 Tamil Medium
  • Tamil Nadu 12th Commerce Model Question Paper 4 Tamil Medium
  • Tamil Nadu 12th Commerce Model Question Paper 5 Tamil Medium

12th Commerce Model Question Paper Design 2019-2020 Tamil Nadu

Types of Questions Marks No. of Questions to be Answered Total Marks
Part-I Objective Type 1 20 20
Part-II Very Short Answers
(Totally 10 questions will be given. Answer any Seven. Any one question should be answered compulsorily)
2 7 14
Part-Ill Short Answers
(Totally 10 questions will be given. Answer any Seven. Any one question should be answered compulsorily)
3 7 21
Part-IV Essay Type 5 7 35
Total Marks 90

Tamil Nadu 12th Commerce Model Question Paper Weightage of Marks

Purpose Weightage
1. Knowledge 30%
2. Understanding 40%
3. Application 20%
4. Skill/Creativity 10%

It is necessary that students will understand the new pattern and style of Model Question Papers of 12th Standard Commerce Tamilnadu State Board Syllabus according to the latest exam pattern. These Tamil Nadu Plus Two 12th Commerce Model Question Papers State Board Tamil Medium and English Medium are useful to understand the pattern of questions asked in the board exam. Know about the important concepts to be prepared for TN HSLC Board Exams and Score More marks.

We hope the given Samacheer Kalvi Tamil Nadu State Board Syllabus New Paper Pattern Class 12th Commerce Model Question Papers 2019 2020 with Answers Pdf Free Download in English Medium and Tamil Medium will help you.

If you have any queries regarding the Tamil Nadu Government 12th Commerce State Board Model Question Papers with Answers 2019 20, TN 12th Std Commerce Public Exam Question Papers with Answer Key, New Paper Pattern of HSC Class 12th Commerce Previous Year Question Papers, Plus Two +2 Commerce Model Sample Papers, drop a comment below and we will get back to you at the earliest.

Tamil Nadu 12th Biology Model Question Papers 2019-2020 English Tamil Medium

Expert Teachers at SamacheerKalvi.Guru has created Samacheer Kalvi Tamil Nadu State Board Syllabus New Paper Pattern 12th Biology Model Question Papers 2019-2020 with Answers Pdf Free Download in English Medium and Tamil Medium of TN 12th Standard Biology (Bio Botany Bio Zoology) Public Exam Question Papers Answer Key, New Paper Pattern of HSC 12th Class Biology Previous Year Question Papers, Plus Two +2 Biology Model Sample Papers are part of Tamil Nadu 12th Model Question Papers.

Here we have given the Government of Tamil Nadu State Board 12th Biology Model Question Papers Tamil Medium with Answers 2019-20 Pdf. Students can view or download the Class 12th Biology New Model Question Papers 2020 Tamil Nadu English Medium Pdf for their upcoming Tamil Nadu HSC Board Exams. Students can also read Tamilnadu Samcheer Kalvi 12th Biology Book Solutions.

NEET Biology MCQ

TN State Board 12th Biology Model Question Papers 2019 2020 English Tamil Medium

Tamil Nadu 12th Biology Model Question Papers English Medium 2019-2020

Tamil Nadu 12th Biology Model Question Papers Tamil Medium 2019-2020

  • Tamil Nadu 12th Biology Model Question Paper 1 Tamil Medium
  • Tamil Nadu 12th Biology Model Question Paper 2 Tamil Medium
  • Tamil Nadu 12th Biology Model Question Paper 3 Tamil Medium
  • Tamil Nadu 12th Biology Model Question Paper 4 Tamil Medium
  • Tamil Nadu 12th Biology Model Question Paper 5 Tamil Medium

12th Biology Model Question Paper Design 2019-2020 Tamil Nadu

Tamil Nadu 12th Biology Model Question Papers English Tamil Medium

Tamil Nadu 12th Biology Model Question Paper Weightage of Marks

Purpose Weightage
1. Knowledge 30%
2. Understanding 40%
3. Application 20%
4. Skill/Creativity 10%

It is necessary that students will understand the new pattern and style of Model Question Papers of 12th Standard Biology Tamilnadu State Board Syllabus (Bio Botany Bio Zoology) according to the latest exam pattern. These Tamil Nadu Plus Two 12th Biology Model Question Papers State Board Tamil Medium and English Medium are useful to understand the pattern of questions asked in the board exam. Know about the important concepts to be prepared for TN HSLC Board Exams and Score More marks.

We hope the given Samacheer Kalvi Tamil Nadu State Board Syllabus New Paper Pattern Class 12th Biology Model Question Papers 2019 2020 with Answers Pdf Free Download in English Medium and Tamil Medium will help you.

If you have any queries regarding the Tamil Nadu Government 12th Biology State Board Model Question Papers with Answers 2019 20 (Bio Botany Bio Zoology), TN 12th Std Biology Public Exam Question Papers with Answer Key, New Paper Pattern of HSC Class 12th Biology Previous Year Question Papers, Plus Two +2 Biology Model Sample Papers, drop a comment below and we will get back to you at the earliest.

Tamil Nadu 12th Chemistry Model Question Papers 2019-2020 English Tamil Medium

Expert Teachers at SamacheerKalvi.Guru has created Samacheer Kalvi Tamil Nadu State Board Syllabus New Paper Pattern 12th Chemistry Model Question Papers 2019-2020 with Answers Pdf Free Download in English Medium and Tamil Medium of TN 12th Standard Chemistry Public Exam Question Papers Answer Key, New Paper Pattern of HSC 12th Class Chemistry Previous Year Question Papers, Plus Two +2 Chemistry Model Sample Papers are part of Tamil Nadu 12th Model Question Papers.

Here we have given the Government of Tamil Nadu State Board 12th Chemistry Model Question Papers Tamil Medium with Answers 2019-20 Pdf. Students can view or download the Class 12th Chemistry New Model Question Papers 2020 Tamil Nadu English Medium Pdf for their upcoming Tamil Nadu HSC Board Exams. Students can also read Tamilnadu Samcheer Kalvi 12th Chemistry Book Solutions.

NEET Chemistry MCQ

TN State Board 12th Chemistry Model Question Papers 2019 2020 English Tamil Medium

Tamil Nadu 12th Chemistry Model Question Papers English Medium 2019-2020

Tamil Nadu 12th Chemistry Model Question Papers Tamil Medium 2019-2020

  • Tamil Nadu 12th Chemistry Model Question Paper 1 Tamil Medium
  • Tamil Nadu 12th Chemistry Model Question Paper 2 Tamil Medium
  • Tamil Nadu 12th Chemistry Model Question Paper 3 Tamil Medium
  • Tamil Nadu 12th Chemistry Model Question Paper 4 Tamil Medium
  • Tamil Nadu 12th Chemistry Model Question Paper 5 Tamil Medium

12th Chemistry Model Question Paper Design 2019-2020 Tamil Nadu

Types of Questions Marks No. of Questions to be Answered Total Marks
Part-I Objective Type 1 15 15
Part-II Very Short Answers
(Totally 9 questions will be given. Answer any Six. Any one question should be answered compulsorily)
2 6 12
Part-Ill Short Answers
(Totally 9 questions will be given. Answer any Six. Any one question should be answered compulsorily)
3 6 18
Part-IV Essay Type 5 5 25
Total 70
Practical Marks + Internal Assessment (20+10) 30
Total Marks 100

Tamil Nadu 12th Chemistry Model Question Paper Weightage of Marks

Purpose Weightage
1. Knowledge 30%
2. Understanding 40%
3. Application 20%
4. Skill/Creativity 10%

It is necessary that students will understand the new pattern and style of Model Question Papers of 12th Standard Chemistry Tamilnadu State Board Syllabus according to the latest exam pattern. These Tamil Nadu Plus Two 12th Chemistry Model Question Papers State Board Tamil Medium and English Medium are useful to understand the pattern of questions asked in the board exam. Know about the important concepts to be prepared for TN HSLC Board Exams and Score More marks.

We hope the given Samacheer Kalvi Tamil Nadu State Board Syllabus New Paper Pattern Class 12th Chemistry Model Question Papers 2019 2020 with Answers Pdf Free Download in English Medium and Tamil Medium will help you.

If you have any queries regarding the Tamil Nadu Government 12th Chemistry State Board Model Question Papers with Answers 2019 20, TN 12th Std Chemistry Public Exam Question Papers with Answer Key, New Paper Pattern of HSC Class 12th Chemistry Previous Year Question Papers, Plus Two +2 Chemistry Model Sample Papers, drop a comment below and we will get back to you at the earliest.

Tamil Nadu 12th Physics Model Question Papers 2019-2020 English Tamil Medium

Expert Teachers at SamacheerKalvi.Guru has created Samacheer Kalvi Tamil Nadu State Board Syllabus New Paper Pattern 12th Physics Model Question Papers 2019-2020 with Answers Pdf Free Download in English Medium and Tamil Medium of TN 12th Standard Physics Public Exam Question Papers Answer Key, New Paper Pattern of HSC 12th Class Physics Previous Year Question Papers, Plus Two +2 Physics Model Sample Papers are part of Tamil Nadu 12th Model Question Papers.

Here we have given the Government of Tamil Nadu State Board 12th Physics Model Question Papers Tamil Medium with Answers 2019-20 Pdf. Students can view or download the Class 12th Physics New Model Question Papers 2020 Tamil Nadu English Medium Pdf for their upcoming Tamil Nadu HSC Board Exams. Students can also read Tamilnadu Samcheer Kalvi 12th Physics Book Solutions.

Physics NEET MCQ

TN State Board 12th Physics Model Question Papers 2019 2020 English Tamil Medium

Tamil Nadu 12th Physics Model Question Papers English Medium 2019-2020

Tamil Nadu 12th Physics Model Question Papers Tamil Medium 2019-2020

  • Tamil Nadu 12th Physics Model Question Paper 1 Tamil Medium
  • Tamil Nadu 12th Physics Model Question Paper 2 Tamil Medium
  • Tamil Nadu 12th Physics Model Question Paper 3 Tamil Medium
  • Tamil Nadu 12th Physics Model Question Paper 4 Tamil Medium
  • Tamil Nadu 12th Physics Model Question Paper 5 Tamil Medium

12th Physics Model Question Paper Design 2019-2020 Tamil Nadu

Types of Questions Marks No. of Questions to be Answered Total Marks
Part-I Objective Type 1 15 15
Part-II Very Short Answers
(Totally 9 questions will be given. Answer any Six. Any one question should be answered compulsorily)
2 6 12
Part-Ill Short Answers
(Totally 9 questions will be given. Answer any Six. Any one question should be answered compulsorily)
3 6 18
Part-IV Essay Type 5 5 25
Total 70
Practical Marks + Internal Assessment (20+10) 30
Total Marks 100

Tamil Nadu 12th Physics Model Question Paper Weightage of Marks

Purpose Weightage
1. Knowledge 30%
2. Understanding 40%
3. Application 20%
4. Skill/Creativity 10%

It is necessary that students will understand the new pattern and style of Model Question Papers of 12th Standard Physics Tamilnadu State Board Syllabus according to the latest exam pattern. These Tamil Nadu Plus Two 12th Physics Model Question Papers State Board Tamil Medium and English Medium are useful to understand the pattern of questions asked in the board exam. Know about the important concepts to be prepared for TN HSLC Board Exams and Score More marks.

We hope the given Samacheer Kalvi Tamil Nadu State Board Syllabus New Paper Pattern Class 12th Physics Model Question Papers 2019 2020 with Answers Pdf Free Download in English Medium and Tamil Medium will help you.

If you have any queries regarding the Tamil Nadu Government 12th Physics State Board Model Question Papers with Answers 2019 20, TN 12th Std Physics Public Exam Question Papers with Answer Key, New Paper Pattern of HSC Class 12th Physics Previous Year Question Papers, Plus Two +2 Physics Model Sample Papers, drop a comment below and we will get back to you at the earliest.

Samacheer Kalvi 12th Computer Science Solutions Chapter 10 Python Classes and Objects

Students can Download Computer Science Chapter 10 Python Classes and Objects Questions and Answers, Notes Pdf, Samacheer Kalvi 12th Computer Science Book Solutions Guide Pdf helps you to revise the complete Tamilnadu State Board New Syllabus and score more marks in your examinations.

Tamilnadu Samacheer Kalvi 12th Computer Science Solutions Chapter 10 Python Classes and Objects

Samacheer Kalvi 12th Computer Science Python Classes and Objects Text Book Back Questions and Answers

PART – 1
I. Choose The Best Answer

Question 1.
Which of the following are the key features of an Object Oriented Programming language?
(a) Constructor and Classes
(b) Constructor and Object
(c) Classes and Objects
(d) Constructor and Destructor
Answer:
(c) Classes and Objects

Question 2.
Functions defined inside a class:
(a) Functions
(b) Module
(c) Methods
(d) section
Answer:
(c) Methods

Samacheer Kalvi 12th Computer Science Solutions Chapter 10 Python Classes and Objects

Question 3.
Class members are accessed through which operator?
(a) &
(b) .
(c) #
(d) %
Answer:
(b) .

Question 4.
Which of the following method is automatically executed when an object is created?
(a) _object_( )
(b) _del( )_( )
(c) _func_( )
(d) _init_( )
Answer:
(d) _init_( )

Samacheer Kalvi 12th Computer Science Solutions Chapter 10 Python Classes and Objects

Question 5.
A private class variable is prefixed with
(a) _
(b) &&
(c) ##
(d) **
Answer:
(a) _

Question 6.
Which of the following method is used as destructor?
(a) _init_( )
(b) _dest_ ( )
(c) _rem_( )
(d) _del_( )
Answer:
(d) _del_( )

Samacheer Kalvi 12th Computer Science Solutions Chapter 10 Python Classes and Objects

Question 7.
Which of the following class declaration is correct?
(a) class class_name
(b) class class_name< >
(c) class class_name:
(d) class class_name[ ]
Answer:
(c) class class_name:

Question 8.
Which of the following is the output of the following program?
– class Student:
def_init_(self, name):
self.name=name
S=Student(“Tamil”)
(a) Error
(b) Tamil
(c) name
Answer:
(b) Tamil

Samacheer Kalvi 12th Computer Science Solutions Chapter 10 Python Classes and Objects

Question 9.
Which of the following is the private class variable?
(a) _num
(b) ##num
(c) $$num
(d) &&num
Answer:
(a) _num

Question 10.
The process of creating an object is called as:
(a) Constructor
(b) Destructor
(c) Initialize
(d) Instantiation
Answer:
(d) Instantiation

PART – II
II. Answer The Following Questions

Question 1.
What is class?
Answer:
Classes and Objects are the key features of Object Oriented Programming. Class is the main building block in Python. Object is a collection of data and function that act on those data. Class is a template for the object. According to the concept of Object Oriented Programming, objects are also called as instances of a class or class variable.

Samacheer Kalvi 12th Computer Science Solutions Chapter 10 Python Classes and Objects

Question 2.
What is instantiation?
Answer:
Once a class is created, next you should create an object or instance of that class. The process of creating object is called as “Class Instantiation”.
Syntax:
object_name = class_name( )

Question 3.
What is the output of the following program?
Answer:
class Sample:
_num=10
def disp(self):
print(self._num)
S=Sample( )
S.disp( )
print(S._num)
Output:
Error: Sample has no attribute S._num
10

Samacheer Kalvi 12th Computer Science Solutions Chapter 10 Python Classes and Objects

Question 4.
How will you create constructor in Python?
Answer:
In Python, there is a special function called “init” which act as a Constructor. It must begin and end with double underscore. This function will act as an ordinary function;
General format of init method (Constructor function)
def_init_(self.[args …………….]):
<statements>

Question 5.
What is the purpose of Destructor?
Answer:
Destructor is also a special method gets executed automatically when an object exit from the scope. It is just opposite to constructor. In Python, _del_( ) method is used as destructor.

PART – III
III. Answer The Following Questions

Question 1.
What are class members? How do you define it?
Answer:
In Python, a class is defined by using the keyword class. Every class has a unique name followed by a colon ( : ).
Syntax:
class class_name:
statement_1
statement_2
…………………
…………………
statement_n
Where, statement in a class definition may be a variable declaration, decision control, loop or even a function definition. Variables defined inside a class are called as “Class Variable” and functions are called as “Methods”. Class variable and methods are together known as members of the class. The class members should be accessed through objects or instance of class. A class can be defined anywhere in a Python program.
Example:
Program to define a class
class Sample:
x, y = 10, 20 # class variables
In the above code, name of the class is Sample and it has two variables x and y having the initial value 10 and 20 respectively. To access the values defined inside the class, you need an object or instance of the class.

Samacheer Kalvi 12th Computer Science Solutions Chapter 10 Python Classes and Objects

Question 2.
Write a class with two private class variables and print the sum using a method?
Answer:
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)
print(“sum self._n1 + self._n2)
s = sample(10, 20)
s.display( )
Output:
class variable 1 : 10
class variable 2 : 20
sum : 30

Samacheer Kalvi 12th Computer Science Solutions Chapter 10 Python Classes and Objects

Question 3.
Find the error in the following program to get the given output?
class Fruits:
def_init_(self, f1, f2):
self.f1=f1
self.f2=f2
def display (self):
print(“Fruit 1 = %s, Fruit 2 = %s” %(self.fl, self.f2))
F = Fruits (‘Apple’, ‘Mango’)
del F.display
F.display( )
Output
Fruit 1 = Apple, Fruit 2 = Mango
Answer:
In line No. 8, del F.display will not come

Samacheer Kalvi 12th Computer Science Solutions Chapter 10 Python Classes and Objects

Question 4.
What is the output of the following program?
Answer:
class Greeting:
def_init_(self, name):
self._name = name
def display(self):
print(“Good Morning “, self._name)
obj=Greeting(‘Bindu Madhavan’)
obj.display( )
Output:
Bindu Madhavan Good Morning

Samacheer Kalvi 12th Computer Science Solutions Chapter 10 Python Classes and Objects

Question 5.
How do define constructor and destructor in Python?
Answer:
General format of init method (Constructor function)
def_init_(self.[args ……………….]):
<statements>
To define destructor:
_del_ ( ) method is used.

PART – IV
IV. Answer The Following Questions

Question 1.
Write a menu driven program to add or delete stationary items. You should use dictionary to store items and the brand?
Answer:
stationary = { }
while((ch == 1) or (ch == 2))
print(” 1. Add Item \n 2. Delete Item”)
ch = int(input(“Enter your choice “))
if(ch==1):
n = int(input(“Enter the number of items to be added in the stationary shop”))
for i in range(n):
item = input(“Enter an item “)
brand = input(“Enter the brand Name”)
stationary[item] = brand
print(stationary)
elif(ch == 2):
remitem = input(“Enter the item to be deleted from the shop”)
dict.pop(remitem)
print( stationary)
else:
print(“Invalid options. Type 1 to add items and 2 to remove items “)
ch = int(input(“Enter your choice :”)
Output:

  1. Add item
  2. Delete Item Enter your choice : 1

Enter the number of items to be added in the stationary shop : 2
Enter an item : Pen
Enter the brand Name : Trimax
Enter an item : Eraser
Enter the brand Name : Camlin
Pen : Trimax
Eraser : Camlin
Enter your choice : 2
Enter the item to be deleted from the shop : Eraser
Pen : Trimax
Enter your choice : 3
Invalid options. Type 1 to add items an 2 to remove items.

Practice Programs

Question 1.
Write a program using class to store name and marks of students in list and print total marks?
Answer:
class stud:
def_init_(self):
self.name=” ”
self.m1=0
self.m2=0
self.tot=0
def gdata(self):
self.name = input(“Enter your name”)
self.m1 = int(input(“Enter marks 1”))
self.m2 = int(input(“Enter marks2”))
self, tot = self.m1+self.m2
def disp(self):
print(self.name)
print(self.m1)
print(self.m2)
print(self.tot)
mlist = [ ]
st = stud( )
st.gdata( )
mlist. append(st)
for x in mlist:
x.disp( )
Output:
Enter your name Ram
Enter marks 1 100
Enter marks2 100
Ram 100 100 200

Samacheer Kalvi 12th Computer Science Solutions Chapter 10 Python Classes and Objects

Question 2.
Write a program using class to accept three sides of a triangle and print its area?
Answer:
class Tr:
def_init_(self, a, b, c):
self.a = float(a)
self.b = float(b)
self.c = float(c)
def area(self):
s = (self.a + self.b + self.c)/2
return((s*(s-self.a) * (s-self.b) * (s-self.c) ** 0.5)
a = input(“Enter side 1:”)
b = input(“Enter side2:”)
c = input(“Enter side3:”)
ans=Tr(a,b,c)
print(ans.area( ))
Output:
Enter side 1 : 3
Enter side 2 : 4
Enter side 3 : 5
6.0

Samacheer Kalvi 12th Computer Science Solutions Chapter 10 Python Classes and Objects

Question 3.
Write a menu driven program to read, display, add and subtract two distances?
Answer:
class Dist:
def_init_(self):
self, dist 1=0
self.dist 2=0
def read(self):
self.dist 1=int(input(“Enter distance 1”))
self.dist 2=int(input(“Enter distance 2”))
def disp(self):
print(“distance 1”, self.dist 1)
print(“distance 2”, self.dist 2)
def add(self):
print(“Total distances”, self.dist 1+self.dist 2)
def sub(self):
print(“Subtracted distance”, self.dist 1-self.dist 2)
d=Dist( )
choi = “y”
while(choi == “y”):
print(” 1. accept \n 2. Display \n 3. Total \n 4. Subtract”)
ch = int(input(“Enter your choice”))
if(ch==l):
d.read( )
elif(ch==2):
d.disp( )
elif(ch==3):
d.add( )
elif(ch==4):
d.sub( )
else:
print(“Invalid Input…”)
choi = input(“Do you want to continue”)
Output:

  1. Accept
  2. Display
  3. Add
  4. Subtract

Enter your choice : 3
Enter distance 1 : 100
Enter distance 2 : 75
Do you want to continue .. y

  1. Accept
  2. Display
  3. Add
  4. Subtract

Enter your choice : 3
Total distances : 175
Do you want to continue .. y

  1. Accept
  2. Display
  3. Add
  4. Subtract

Enter your choice : 2
Enter distance 1 : 100
Enter distance 2 : 75
Do you want to continue .. y

  1. Accept
  2. Display
  3. Add
  4. Sub

Enter your choice : 4
Subtracted distance : 25
Do you want to continue .. N

Samacheer kalvi 12th Computer Science Python Classes and Objects Additional Questions and Answers

PART – 1
1. Choose The Correct Answer

Question 1.
……………………. are also called as instances of a class or class variable.
Answer:
objects

Samacheer Kalvi 12th Computer Science Solutions Chapter 10 Python Classes and Objects

Question 2.
All integer variables used in python program is an object of class ……………………….
Answer:
int

Question 3.
All the string variables are of object of class ……………………..
Answer:
strings

Question 4.
class is defined by the keyword ………………………
Answer:
class

Samacheer Kalvi 12th Computer Science Solutions Chapter 10 Python Classes and Objects

Question 5.
A statement in a class definition may be a ………………………..
(a) variable declaration
(b) decision control
(c) loop
(d) all of these
Answer:
(d) all of these

Question 6.
………………….. and …………………. are called as members of the class
Answer:
class variables and methods

Question 7.
The first argument of the class method is ……………………….
(a) class
(b) func
(c) def
(d) self
Answer:
(d) self

Samacheer Kalvi 12th Computer Science Solutions Chapter 10 Python Classes and Objects

Question 8.
The statements defined inside the class must be properly indented.
True / false
Answer:
True

Question 9.
The init function should begin and end with
(a) underscore
(b) double underscore
(c) #
(d) S
Answer:
(b) double underscore

Samacheer Kalvi 12th Computer Science Solutions Chapter 10 Python Classes and Objects

Question 10.
…………………….. is used to initialize the class variables.
(a) constructor
(b) destructor
(c) class
(d) objects
Answer:
(a) constructor

Question 11.
Find the correct statement from the following.
(a) constructor function can be defined with arguments
(b) constructor function can be defined without arguments
(c) constructor function can be defined with or without argument
(d) constructor function cannot be defined
Answer:
(c) constructor function can be defined with or without argument

Samacheer Kalvi 12th Computer Science Solutions Chapter 10 Python Classes and Objects

Question 12.
…………………….. is a special function to gets executed automatically when an object exit from the scope.
(a) constructor
(b) init
(c) destructor
(d) object
Answer:
(c) destructor

Question 13.
The variables which are defined inside the class is by default.
(a) private
(b) public
(c) protected
(d) local
Answer:
(b) public

Samacheer Kalvi 12th Computer Science Solutions Chapter 10 Python Classes and Objects

Question 14.
Which variables can be accessed anywhere in the program using dot operator?
(a) private
(b) public
(c) protected
(d) auto
Answer:
(b) public

Question 15.
Which variables can be accessed only within the class?
(a) private
(b) public
(c) protected
(d) local
Answer:
(a) private

Samacheer Kalvi 12th Computer Science Solutions Chapter 10 Python Classes and Objects

Question 16.
Match the following
1. constructor – (i) def process(self)
2. Destructor – (ii) S.x
3. method – (iii) _del_(self)
4. object – (iv) _init_(self, num)
(a) 1-(iv) 2-(iii) 3-(i) 4-(ii)
(b) 1-(i) 2-(ii) 3-(iii) 4-(iv)
(c) 1-(iv) 2-(ii) 3-(i) 4-(iii)
(d) 1-(i) 2-(iii) 3-(iv) 4-(ii)
Answer:
(a) 1-(iv) 2-(iii) 3-(i) 4-(ii)

PART – II
II. Answer The Following Questions

Question 1.
Write note on self?
Answer:
The class method must have the first argument named as self. No need to pass a value for this argument when we call the method. Python provides its value automatically. Even if – a method takes no arguments, it should be defined with the first argument called self. If a method is defined to accept only one argument it will take it as two arguments ie. self and the defined argument.

Samacheer Kalvi 12th Computer Science Solutions Chapter 10 Python Classes and Objects

PART – III
III. Answer The Following Questions

Question 1.
Write the output for the program?
Answer:
class Sample:
def_init_(self, num):
print(“Constructor of class Sample…”)
self.num=num
print(“The value is num)
S=Sample(10)
Constructor of class sample…
The value is: 10

PART – IV
IV. Answer The Following Questions

Question 1.
Write a program to calculate area and circumference of a circle?
Answer:
class Circle:
pi=3.14
def_init_(self,radius):
self.radius=radius
def area(self):
return Circle.pi*(self.radius**2)
def circumference(self):
return 2*Circle.pi*self.radius
r = int(input(“Enter Radius:”))
C=Circle(r)
print(“The Area =”,C.area( ))
print(“The Circumference =”, C.circumference( ))
Output:
Enter Radius: 5
The Area = 78.5
The Circumference = 31.400000000000002

Samacheer Kalvi 12th Computer Science Solutions Chapter 10 Python Classes and Objects

Question 2.
Write a menu driven program that keeps record of books available in your school library?
Answer:
class Library:
def_init_(self):
self.bookname=””
self.author=””
def getdata(self):
self.bookname = input(“Enter Name of the Book: “)
self.author = input(“Enter Author of the Book: “)
def display(self):
print(“Name of the Book: “,self.bookname)
print(” Author of the Book: “,self.author)
print(“\n”)
book=[ ] #empty list
ch = ‘y’
while(ch= =’y’):
print(“1. Add New Book \n 2.Display Books”)
resp = int(input(“Enter your choice :”))
if(resp= =1):
L=Library( )
L.getdata( )
book.append(L)
elif(resp= =2):
for x in book:
x.display( )
else:
print(“Invalid input….”)
ch = input(“Do you want continue….”)
Output:

  1. Add New Book
  2. Display Books

Enter your choice : 1
Enter Name of the Book: Programming in C++
Enter Author of the Book: K. Kannan
Do you want continue….y

  1. Add New Book
  2. Display Books

Enter your choice : 1
Enter Name of the Book: Learn Python
Enter Author of the Book: V.G.Ramakrishnan
Do you want continue….y

  1. Add New Book
  2. Display Books

Enter your choice : 1
Enter Name of the Book: Advanced Python
Enter Author of the Book: Dr. Vidhya
Do you want continue….y

  1. Add New Book
  2. Display Books Enter your choice : 1

Enter Name of the Book: Working with OpenOffice
Enter Author of the Book: N.V.Gowrisankar
Do you want continue….y

  1. Add New Book
  2. Display Books Enter your choice : 1

Enter Name of the Book: Data Structure
Enter Author of the Book: K.Lenin
Do you want continue….y

  1. Add New Book
  2. Display Books

Enter your choice : 1
Enter Name of the Book: An Introduction to Database System
Enter Author of the Book: R.Sreenivasan
Do you want continue….y

  1. Add New Book
  2. Display Books Enter your choice : 2

Enter Name of the Book: Programming in C++
Enter Author of the Book: K. Kannan
Name of the Book: Learn Python
Author of the Book: V.G.Ramakrishnan
Name of the Book: Advanced Python
Author of the Book: Dr. Vidhya
Name of the Book: Working with OpenOffice
Author of the Book: N.V.Gowrisankar
Name of the Book: Data Structure
Author of the Book: K.Lenin
Name of the Book: An Introduction to Database System
Author of the Book: R.Sreenivasan
Do you want continue….n

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Students can Download Computer Science Chapter 8 Strings and String Manipulations Questions and Answers, Notes Pdf, Samacheer Kalvi 12th Computer Science Book Solutions Guide Pdf helps you to revise the complete Tamilnadu State Board New Syllabus and score more marks in your examinations.

Tamilnadu Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Samacheer Kalvi 12th Computer Science Strings and String Manipulations Text Book Back Questions and Answers

PART – I
I. Choose The Best Answer

Question 1.
Which of the following is the output of the following python code?
Answer:
str1=”TamilNadu”
print (str1 [:: -1])
(a) Tamilnadu
(b) Tmlau
(c) UdanlimaT
(d) UdaNlimaT
Answer:
(c) UdanlimaT

Question 2.
What will be the output of the following code?
Answer:
str1= “Chennai Schools”
str1[7] = “_”
(a) Chennai – Schools
(b) Chenna – School
(c) Type error
(d) Chennai
Answer:
(c) Type error

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 3.
Which of the following operator is used for concatenation?
(a) +
(b) &
(c) *
(d) =
Answer:
(a) +

Question 4.
Defining strings within triple quotes allows creating:
(a) Single line Strings
(b) Multiline Strings
(c) Double line Strings
(d) Multiple Strings
Answer:
(b) Multiline Strings

Question 5.
Strings in python:
(a) Changeable
(b) Mutable
(c) Immutable
(d) Flexible
Answer:
(c) Immutable

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 6.
Which of the following is the slicing operator?
(a) { }
(b) [ ]
(c) <>
(d) ( )
Answer:
(b) [ ]

Question 7.
What is stride?
(a) Index value of slide operation
(b) First argument of slice operation
(c) Second argument of slice operation
(d) Third argument of slice operation
Answer:
(d) Third argument of slice operation

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 8.
Which of the following formatting character is used to print exponential notation in upper case?
(a) % e
(b) % E
(c) % g
(d) % n
Answer:
(b) % E

Question 9.
Which of the following is used as placeholders or replacement fields which get replaced along with format ( ) function?
(a) { }
(b) <>
(c) ++
(d) ^^
Answer:
(a) { }

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 10.
The subscript of a string may be:
(a) Positive
(b) Negative
(c) Both (a) and (b)
(d) Either (a) or (b)
Answer:
(d) Either (a) or (b)

PART – II
II. Answer The Following Questions

Question 1.
What is String?
Answer:
String is a data type in python, which is used to handle array of characters. String is a sequence of Unicode characters that may be a combination of letters, numbers, or special symbols enclosed within single, double or even triple quotes.
Example:
‘Welcome to learning Python’
“Welcome to learning Python”
“Welcome to learning Python”

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 2.
Do you modify a string in Python?
Answer:
If you want to modify the string, a new string value can be assign to the existing string variable. To define a new string value to the existing string variable. Python completely overwrite new string on the existing string.
Example:
>>> str1=”How are you”
>>> print (str1)
How are you
>>> str1=”How about you”
>>> print (str1)
How about you

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 3.
How will you delete a string in Python?
Answer:
Python will not allow deleting a particular character in a string. Whereas you can remove entire string variable using del command.
Example: Code lines to delete a string variable
>>> str1=”How about you”
>>> print (str1)
How about you
>>> del str1
>>> print (str1)
NameError: name ‘str1’ is not defined

Question 4.
What will be the output of the following python code?
Answer:
str1 = “School”
print (str1*3)
Output:
School School School

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 5.
What is slicing?
Answer:
String slicing:
Slice is a substring of a main string. A substring can be taken from the original string by using [ ] operator and index or subscript values. Thus, [ ] is also known as slicing operator. Using slice operator, we can slice one or more substrings from a main string.

General format of slice operation:
str[start:end]
Where start is the beginning index and end is the last index value of a character in the string. Python takes the end value less than one from the actual index specified. For example, if you want to slice first 4 characters from a string, you have to specify it as 0 to 5. Because, python consider only the end value as n – 1.
Example: slice a single character from a string
>>> str1=”THIRUKKURAL”
>>> print (str1[0])
T

PART – III
III. Answer The Following Questions

Question 1.
Write a Python program to display the given pattern?
Answer:
C O M P U T E R
C O M P U T E
C O M P U T
C O M P U
C O M P
C O M
C O
C
Program:
str1 = “COMPUTER”
index = len (str1)
for i in str 1:
print (str 1[: index])
index – = 1

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 2.
Write a short about the followings with suitable example?
Answer:
Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 3.
What will be the output of the given python program?
str1 = “welcome”
str2 = “to school”
str3 = str1[: 2] str2[len(str2)-2:]
print (str3)
output:
Answer:
weoo 1

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 4.
What is the use of format( )? Give an example?
Answer:
The format( ) function used with strings is very versatile and powerful function used for formatting strings. 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.

Question 5.
Write a note about count ( ) function in python?
Answer:
Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

PART – IV
IV. Answer The Following Questions.

Question 1.
Explain about string operators in python with suitable example?
Answer:
String Operators:
Python provides the following operators for string operations. These operators are useful to manipulate string.

(i) Concatenation (+):
Joining of two or more strings is called as Concatenation. The plus (+) operator is used to concatenate strings in python.
Example:
>>> “welcome” + “Python”
‘welcomePython’

(ii) Append (+=):
Adding more strings at the end of an existing string is known as append. The operator += is used to append a new string with an existing string.
Example:
>>> str1 =”Welcome to ”
>>> str1+=”Leam Python”
>>> print (str1)
Welcome to Learn Python

(iii) Repeating (*):
The multiplication operator (*) is used to display a string in multiple number of times.
Example:
>>> str1 =”Welcome”
>>> print (str1*4)
Welcome Welcome Welcome Welcome

(iv) String slicing:
Slice is a substring of a main string. A substring can be taken from the original string by using [ ] operator and index or subscript values. Thus, [ ] is also known as slicing operator. Using slice operator, you have to slice one or more substrings from a main string.
General format of slice operation:
str[start: end]
Where start is the beginning index and end is the last index value of a character in the string. Python takes the end value less than one from the actual index specified. For example, if you want to slice first 4 characters from a string, you have to specify it as 0 to 5. Because, python consider only the end value as n – 1.
Example:
(i) slice a single character from a string
>>> str1=”THIRUKKURAL ”
>>> print (str1 [0])
T .

(v) Stride when slicing string
When the slicing operation, you can specify a third argument as the stride, which refers to the number of characters to move forward after the first character is retrieved from the string. The default value of stride is 1.
Example:
>>> str1= “Welcome to learn Python”
>>> print (str1 [10:16])
learn
Note: Remember that, python takes the last value as n – 1
You can also use negative value as stride (third argument). If you specify a negative value, it prints in reverse order.
Example:
>>> str1 = “Welcome to learn Python”
>>> print(str1 [::-2])
nhy re teoIW

Practice Programs

Question 1.
Write a python program to find the length of a string?
Answer:
str=input (“Enter a string: “)
print (len(str))
Output:
Enter a string: HELLO
5

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 2.
Write a program to count the occurrences of each word in a given string?
Answer:
def word_count(str):
counts = dict ( )
words = str.split ( ) for word in words:
if word in counts:
counts[word] +=1
else:
counts[word]=1
return counts
print (word_count (‘the quick brown fox jumps over the lazy dog.’))
Ouput:
{‘the’: 2, ‘jumps’: 1, ‘brown’: 1, ‘lazy’: 1, ‘fox’: 1, ‘over’: 1, ‘quick’: 1, ‘dog’: 1}

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 3.
Write a program to add a prefix text to all the lines in a string?
Answer:
import
text =
“‘Strings are immutable. Slice is a
substring of a main string. Stride
is a third argument in slicing operation'”
text_without_lndentation= textwrap.dedent (text)
wrapped = extwrap.fill (text_without_Indentation, width = 50)
print (textwrap.indent(wrapped, ‘*’)
print ()
Output:

  • Strings are immutable. Slice is a
  • substring of a main string. Stride
  • is a third argument in slicing operation

Question 4.
Write a program to print integers with ‘*’ on the right of specified width?
Answer:
x = 1 2 3
print (“original number: “, x)
print (“formatted number(right padding, width 6): “+” {: * < 7 d}”.format(x));
Output:
original number : 1 2 3
formatted number (right padding, width 6): 1 2 3 ***

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 5.
Write a program to create a mirror of the given string. For example, “wel” = “lew“?
Answer:
str1 = input (“Enter a string: “)
str2 = ‘ ‘
index= -1
for i in str1:
str2 += str1 [index]
index -= 1
print (“The given string = { } \n The Reversed string = { }”.format(str 1, str 2))
Output:
Enter a string: welcome
The given string = welcome
The Reversed string = emoclew

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 6.
Write a program to removes all the occurrences of a given character in a string?
Answer:
def removechar(s,c):
# find total no of occurrence of a character
counts = s.count(c)
# convert into list of characters
s = list(s)
# keep looping until counts become 0
while counts:
# remove char, from list
s.remove(c)
counts -= 1
# join remaining characters s = ” .join(s)
print(s)
s = “python programming”‘
remove char(s, ‘p’)
Output:
ython rogramming

Question 7.
Write a program to append a string to another string without using + = operator?
Answer:
s1 = input (“Enter the first string: “)
s2 = input (“Enter the second string: “)
print (‘concatenated strings =’,” ” ,join ([s1, s2]))
Output:
Enter the first string: Tamil
Enter the second string: Nadu
concatenated strings = Tamil Nadu

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 8.
Write a program to swap two strings?
Answer:
print (“Enter Y for exit.”)
string1 = input(“Enter first string: “)
if string1 = = ‘x’:
exit();
else:
string2 = input (“Enter second string : “)
print (” \n Both strings before swap : “)
print (“First string = “, string1)
print (” Second string = “, string2)
temp = string1
string1 = string2
string2 = temp
print (“\n Both strings after swap: “)
print (“First string = “, string1)
print (” Second string = “, string2)
Output:
Enter ‘x’ for exit
Enter first string: code
Enter second string: python
Both strings before swap:
First string = code
Second string = python
Both strings after swap:
First string = python
Second string = code

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 9.
Write a program to replace a string with another string without using replace ( )?
Answer:
s1 = input (“Enter the string to be replaced: “)
s2 = input (“Enter the string to replace with “)
s1 = s2
print (“Replaced string is “, s1)
Output:
Enter the string to be replaced: Computer
Enter the string to replace with: repcomputer
Replaced string is repcomputer

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 10.
Write a program to count the number of characters, words and lines in a given string?
Answer:
string = input (“Enter string:”)
char = 0
word = 0
line = 0
for i in string:
char = char + 1
if (i = = “):
word = word + 1
elif (i = = ‘ \n’):
line = line +1
print (“Number of words in the string: “)
print (word)
print (“Number of characters in the string: “)
print (char)
print (“Number of lines in the string: “)
print (line)
Output:
Enter string: welcome to learning python
Number of words in the string : 4
Number of characters in the string : 26
Number of lines in the string : 1

Samacheer kalvi 12th Computer Science Strings and String Manipulations Additional Questions and Answers

PART – 1
I. Choose The Correct Answer

Question 1.
Strings in python can be created using ………………………….. quotes
(a) Single
(b) Double
(c) Triple
(d) All the above
Answer:
(d) All the above

Question 2.
Strings which contains double quotes should be defined with …………………….. quotes
(a) Single
(b) Double
(c) Triple
(d) All the these
Answer:
(c) Triple

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 3.
The positive subscript of the string starts from ………………………….. and ends with …………………………
Answer:
0, n – 1

Question 4.
In strings, the negative index assigned from the last character to the first character in reverse order begins with …………………………
(a) 0
(b) 1
(c) -1
(d) -2
Answer:
(c) -1

Question 5.
How will you modify the string?
(a) A new string value can be assigned to the existing string variable
(b) Updating the string character by character
Answer:
(a) A new string value can be assigned to the existing string variable

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 6.
Which function is used to change all occurrences of a particular character in a string?
(a) Replace ( )
(b) Change ( )
(c) Edit ( )
(d) Append ( )
Answer:
(a) Replace ( )

Question 7.
Which command is used to remove the entire string variable?
(a) Remove
(b) Del
(c) Delete
(d) Strike
Answer:
(b) Del

Question 8.
Joining of two or more strings is called as …………………………..
(a) Append
(b) Repeating
(c) Concatenation
(d) Strike
Answer:
(c) Concatenation

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 9.
Adding more strings at the end of an existing strings is ………………………….
(a) Append
(b) Concatenation
(c) Repeating
(d) Slicing
Answer:
(a) Append

Question 10.
Find the wrongly matched pair from the following.
(a) Append ⇒ + =
(b) Concate ⇒ +
(c) Repeat ⇒ /
(d) Slice ⇒ [ ]
Answer:
(c) Repeat ⇒ /

Question 11.
Which operator is used to append a new string with an existing string?
(a) +
(b) + =
(c) *
(d) * =
Answer:
(b) + =

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 12.
The multiplication operator is also called as ………………………….
(a) Append
(b) Concatenate
(c) Repeat
(d) Slice
Answer:
(c) Repeat

Question 13.
Which is used to display a string multiple number of times?
(a) Repeating
(b) *
(c) Multiplication operator
(d) All the above
Answer:
(d) All the above

Question 14.
…………………………. is a substring of a main string.
Answer:
Slice

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 15.
In python, end value is considered as ……………………….
(a) 0
(b) n
(c) n – 1
(d) 1
Answer:
(c) n – 1

Question 16.
Find the wrong statement from the following.
(I) Slice a single character from a string
(II) Slice a substring
(III) Slice a substring without specifying beginning index
(IV) Slice a substring without specifying end index

(a) (I), (II)
(b) (II), (III), (IV)
(c) All are wrong
(d) All are correct
Answer:
(d) All are correct

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 17.
The default value of stride is …………………………
(a) 0
(b) 1
(c) n
(d) n – 1
Answer:
(b) 1

Question 18.
If the stride is negative, then it will prints
(a) Third character
(b) Third word
(c) Full string
(d) Reverse order
Answer:
(d) Reverse order

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 19.
…………………………. is the formatting character for signed decimal integer.
(a) %d or %i
(b) %d and %i
(c) %d %u
(d) %i &u
Answer:
(a) %d or %i

Question 20.
…………………….. is the formatting character for short numbers in floating point or exponential notation.
Answer:
% g or % G

Question 21.
Escape sequences starts with a ………………………..
Answer:
Back Slash

Question 22.
Find the wrong match
(a) Backslash – \b
(b) Backslash – //
(c) Carriage return – \r
(d) Line feed – \n
Answer:
(b) Backslash – //

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 23.
Which function returns the length of the string?
(a) str len( )
(b) len(str)
(c) length( )
(d) strlength( )
Answer:
(b) len(str)

Question 24.
The function isalnum( ) returns ………………………. when it contains special characters.
Answer:
False

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 25.
How many membership operators are there?
(a) 2
(b) 3
(c) 4
(d) 5
Answer:
(a) 2

Question 26.
……………………. is the membership operator.
(a) is
(b) at
(c) to
(d) in
Answer:
(d) in

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 27.
……………………. function is a powerful function used for formatting strings.
Answer:
Format ( )

Question 28.
The ……………………. and ………………………. operators can be used with strings to determine whether a string is present another string.
Answer:
In, Not in

PART – II
II. Answer The Following Questions

Question 1.
Fill the Table with appropriate values.
Answer:
Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 2.
Find the output?
Answer:
Program
str1 = ‘ * ‘
i=1
while i<=5: print (str1*i)
i+=1
Output
*
* *
* * *
* * * *
* * * * *

PART – III
III. Answer The Following Question

Question 1.
Write note on replace function?
Answer:
The replace function replaces all occurrences of char 1 with char 2.
Example
>>> str1 =”How are you”
>>> print (str1)
How are you
>>>print (str1.replace(“o”, “e”))
Hew are yeu

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 2.
Write note on Append Operator?
Answer:
Append (+ =)
Adding more strings at the end of an existing string is known as append. The operator + = is used to append a new string with an existing string.
Example:
>>> str1=’Welcome to ”
>>> str1+=”Leam Python”
>>> print (str1)
Welcome to Learn Python

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 3.
Give any 6 formatting characters with their usage?
Formatting characters
Answer:
Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Question 4.
Write any 6 escape sequences with their description?
Answer:
Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

PART – IV
IV. Answer The Following Questions

Question 1.
Explain any 10 Built-in string functions?
Answer:
Built – in String functions
Python supports the following built – in functions to manipulate string.
Samacheer Kalvi 12th Computer Science Solutions Chapter 8 Strings and String Manipulations

Tamil Nadu 12th Maths Model Question Papers 2019-2020 English Tamil Medium

Expert Teachers at SamacheerKalvi.Guru has created Samacheer Kalvi Tamil Nadu State Board Syllabus New Paper Pattern 12th Maths Model Question Papers 2019-2020 with Answers Pdf Free Download in English Medium and Tamil Medium of TN 12th Standard Maths Public Exam Question Papers Answer Key, New Paper Pattern of HSC 12th Class Maths Previous Year Question Papers, Plus Two +2 Maths Model Sample Papers are part of Tamil Nadu 12th Model Question Papers.

Here we have given the Government of Tamil Nadu State Board 12th Maths Model Question Papers Tamil Medium with Answers 2019-20 Pdf. Students can view or download the Class 12th Maths New Model Question Papers 2020 Tamil Nadu English Medium Pdf for their upcoming Tamil Nadu HSC Board Exams. Students can also read Tamilnadu Samcheer Kalvi 12th Maths Book Solutions.

TN State Board 12th Maths Model Question Papers 2019 2020 English Tamil Medium

Tamil Nadu 12th Maths Model Question Papers English Medium 2019-2020

Tamil Nadu 12th Maths Model Question Papers Tamil Medium 2019-2020

  • Tamil Nadu 12th Maths Model Question Paper 1 Tamil Medium
  • Tamil Nadu 12th Maths Model Question Paper 2 Tamil Medium
  • Tamil Nadu 12th Maths Model Question Paper 3 Tamil Medium
  • Tamil Nadu 12th Maths Model Question Paper 4 Tamil Medium
  • Tamil Nadu 12th Maths Model Question Paper 5 Tamil Medium

12th Maths Model Question Paper Design 2019-2020 Tamil Nadu

Types of Questions Marks No. of Questions to be Answered Total Marks
Part-I Objective Type 1 20 20
Part-II Very Short Answers
(Totally 10 questions will be given. Answer any Seven. Any one question should be answered compulsorily)
2 7 14
Part-III Short Answers
(Totally 10 questions will be given. Answer any Seven. Any one question should be answered compulsorily)
3 7 21
Part-IV Essay Type 5 7 35
Total 90
Internal Assessment 10
Total Marks 100

Tamil Nadu 12th Maths Model Question Paper Weightage of Marks

Purpose Weightage
1. Knowledge 30%
2. Understanding 40%
3. Application 20%
4. Skill/Creativity 10%

It is necessary that students will understand the new pattern and style of Model Question Papers of 12th Standard Maths Tamilnadu State Board Syllabus according to the latest exam pattern. These Tamil Nadu Plus Two 12th Maths Model Question Papers State Board Tamil Medium and English Medium are useful to understand the pattern of questions asked in the board exam. Know about the important concepts to be prepared for TN HSLC Board Exams and Score More marks.

We hope the given Samacheer Kalvi Tamil Nadu State Board Syllabus New Paper Pattern Class 12th Maths Model Question Papers 2019 2020 with Answers Pdf Free Download in English Medium and Tamil Medium will help you.

If you have any queries regarding the Tamil Nadu Government 12th Maths State Board Model Question Papers with Answers 2019 20, TN 12th Std Maths Public Exam Question Papers with Answer Key, New Paper Pattern of HSC Class 12th Maths Previous Year Question Papers, Plus Two +2 Maths Model Sample Papers, drop a comment below and we will get back to you at the earliest.

12th Model Question Papers 2020-2021 Tamil Nadu State Board English Tamil Medium with Answers

Expert Teachers at SamacheerKalvi.Guru has created Samacheer Kalvi Tamil Nadu State Board Syllabus New Paper Pattern 12th Model Question Papers 2020-2021 with Answers Pdf Free Download in English Medium and Tamil Medium of TN 12th Standard Public Exam Question Papers Answer Key, New Paper Pattern of HSC 12th Class Previous Year Question Papers, Plus Two +2 Model Sample Papers, 12th Quarterly Half Yearly Model Question Papers Tamil Nadu are part of Samacheer Kalvi.

Here we have given the Tamil Nadu Government 12th State Board Model Question Papers with Answers for All Subjects 2020-21 Tamil Medium Pdf. Students can view or download the Class 12th New Model Question Papers 2021 Tamil Nadu English Medium Pdf for their upcoming Tamil Nadu HSC Board Exams. Students can also read Tamilnadu Samcheer Kalvi 12th Books Solutions.

12th New Public Exam Model Question Papers Tamil Nadu 2020 2021 English Tamil Medium

12th New Model Question Papers 2020 2021 Tamil Nadu

TN 12th Public Exam Question Papers Free Download

It is necessary that students will understand the new pattern and style of Model Question Papers of 12th Standard Tamilnadu State Board Syllabus according to the latest exam pattern. These Tamilnadu Plus Two 12th Model Question Papers State Board Tamil Medium and English Medium are useful to understand the pattern of questions asked in the board exam. Know about the important concepts to be prepared for TN HSLC Board Exams and Score More marks.

We hope the given Samacheer Kalvi Tamil Nadu State Board Syllabus New Paper Pattern Class 12th Model Question Papers 2020 2021 with Answers Pdf Free Download in English Medium and Tamil Medium will help you.

If you have any queries regarding the Tamil Nadu Government 12th State Board Model Question Papers with Answers 2020 21 for All Subjects, TN 12th Std Public Exam Question Papers with Answer Key, New Paper Pattern of HSC Class 12th Previous Year Question Papers, Plus Two +2 Model Sample Papers, 12th Quarterly Half Yearly Model Question Papers Tamil Nadu, drop a comment below and we will get back to you at the earliest.

Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts

Students can Download Accountancy Chapter 7 Company Accounts Questions and Answers, Notes Pdf, Samacheer Kalvi 12th Accountancy Book Solutions Guide Pdf helps you to revise the complete Tamilnadu State Board New Syllabus and score more marks in your examinations.

Tamilnadu Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts

Samacheer Kalvi 12th Accountancy Company Accounts Text Book Back Questions and Answers

I. Choose the Correct Answer

Question 1.
A preference share is one ……………..
(i) which carries preferential right with respect to payment of dividend at fixed rate
(ii) which carries preferential right with respect to repayment of capital on winding up
(a) Only (i) is correct
(b) Only (ii) is correct
(c) Both (i) and (ii) are correct
(d) Both (i) and (ii) are incorrect
Answer:
(c) Both (i) and (ii) are correct

Question 2.
That part of share capital which can be called up only on the winding up of a company is called ……………..
(a) Authorised capital
(b) Called up capital
(c) Capital reserve
(d) Reserve capital
Answer:
(d) Reserve capital

Question 3.
At the time of forfeiture, share capital account is debited with ……………..
(a) Face value
(b) Nominal value
(c) Paid up amount
(d) Called up amount
Answer:
(d) Called up amount

Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts

Question 4.
After the forfeited shares are reissued, the balance in the forfeited shares account should be transferred to ……………..
(a) General reserve account
(b) Capital reserve account
(c) Securities premium account
(d) Surplus account
Answer:
(b) Capital reserve account

Question 5.
The amount received over and above the par value is credited to ……………..
(a) Securities premium account
(b) Calls in advance account
(c) Share capital account
(d) Forfeited shares account
Answer:
(a) Securities premium account

Question 6.
Which of the following statement is false?
(a) Issued capital can never be more than the authorised capital
(b) In case of under subscription, issued capital will be less than the subscribed capital
(c) Reserve capital can be called at the time of winding up
(d) Paid up capital is part of called up capital
Answer:
(b) In case of under subscription, issued capital will be less than the subscribed capital

Question 7.
When shares are issued for purchase of assets, the amount should be credited to ……………..
(a) Vendor’s A/c
(b) Sundry assets A/c
(c) Share capital A/c
(d) Bank A/c
Answer:
(c) Share capital A/c

Question 8.
Match the pair and identify the correct option:
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 1
Answer:
(c) (iii) (ii) (iv) (i)

Question 9.
If a share of ₹ 10 on which ₹ 8 has been paid up is forfeited. Minimum reissue price is ……………..
(a) ₹ 10 per share
(b) ₹ 8 per share
(c) ₹ 5 per share
(d) ₹ 2 per share
Answer:
(d) ₹ 2 per share

Question 10.
Supreme Ltd. forfeited 100 shares of ₹ 10 each for non – payment of final call of ₹ per share. All these shares were re-issued at ₹ 9 per share. What amount will be transferred to capital reserve account?
(a) ₹ 700
(b) ₹ 800
(c) ₹ 900
(d) ₹ 1,000
Answer:
(a) ₹ 700

II. Very short answer questions

Question 1.
What is a share?
Answer:
The capital of companies is divided into small units called shares.

Question 2.
What is oversubscription?
Answer:
When the number of shares applied for is more than the number of shares offered for a subscription it is said to be oversubscription.

Question 3.
What is meant by calls in arrear?
Answer:
When a shareholder fails to pay the amount due on the allotment or on calls, the amount remaining unpaid is known as calls in arrears. In other words, the amount called up but not paid is calls in arrear.

Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts

Question 4.
Write a short note on the securities premium account.
Answer:
When a company issues shares at a price more than face value, the shares are said to be issued at a premium. The excess is called a premium amount and is transferred to a securities premium account. It is shown under “reserves and surplus” as a separate head in the note to accounts for the balance sheet.

Question 5.
Why are the shares forfeited?
Answer:
When a shareholder defaults in making payment of allotment and/or call money, the shares may be forfeited.

III. Short answer questions

Question 1.
State the difference between preference shares and equity shares?
Answer:
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 2

Question 2.
Write a brief note on calls – in – advance.
Answer:
The excess amount paid over the called up value of a share is known as cells in advance. It is the excess money paid on application or allotment or cells. Such excess amounts can be returned or adjusted towards future payments. If the company decides to adjust such amount towards future payment, the excess amount is transferred to a separate account called cells in the advance account.

Calls in advance do not form part of the company’s share capital and no dividend is payable on such amount.
As per Table F of the Indian Companies Act, 2013, interest may be paid on calls in advance if Articles of Association so provide not exceeding 12% per annum.

Question 3.
What is a reissue of forfeited shares?
Answer:
The directors of a company have the authority to reissue shares once forfeited by them due to non – payment of calls. They can reissue the forfeited shares at par, at a premium, or a discount. When forfeited shares are reissued at a premium, the amount of such premium will be credited to securities premium. If the reissue price is more than the amount unpaid of forfeited shares it results in profit and is transferred to the capital reserve account

Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts

Question 4.
Write a short note as:

  1. Authorized Capital
  2. Reserve Capital

Answer:
1. Authorised capital: It means such capital as is authorized by the memorandum of association. It is the maximum amount which can be raised as capital. It is also known as registered capital or nominal capital.

2. Reserve capital: The company can reserve a part of its subscribed capital to be called up only at the time of winding up. It is called reserve capital.

Question 5.
What is meant by the issue of shares for consideration other than cash?
Answer:
A company may issue shares for consideration other than cash when the company acquires fixed assets such as land, building, and machinery, etc. A company may also issue shares as consideration for the purchase of a business, to promotors for their services, and to brokers and underwriters for their commission.

IV. Exercises

Question 1.
Progress Ltd. issued 50,000 ordinary shares of ₹ 10 each, payable ₹ 2 on the application, ₹ 4 on the allotment, ₹ 2 on the first call, and ₹ 2 on final call. All the shares are subscribed and the amount was duly received. Pass journal entries.
Answer:
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 2

Question 2.
Sampath company issued 25,000 shares at ₹ 10 per share payable ₹ 3 on the application, ₹ 4 on the allotment, ₹ 3 on the first and final call. The public subscribed for 24,000 shares. The directors allotted all the 24,000 shares and received the money duly. Pass necessary journal entries.
Answer:
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 3

Question 3.
Saranya Ltd. issued 20,000 equity shares of ₹ 10 each to the public at par. The details of the amount payable on the shares are as follows:
On application ₹ 3 per share
On allotment ₹ 4 per share
On the first and final call ₹ 3 per share
Application money was received on 30,000 shares. Excess application money was refunded immediately. Pass journal entries to record the above.
Answer:
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 4

Question 4.
Gaja Ltd issued 40,000 shares of ₹ 10 each to the public payable ₹ 2 on the application, ₹ 5 on the allotment, and ₹ 3 on the first and final call. Applications were received for 50,000 shares. The Directors decided to allot 40,000 shares on a pro-rata basis and a surplus of application money was utilized for allotment. Pass journal entries assuming that the amounts due were received.
Answer:
Journal Entries
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 5

Question 5.
Lalitha Ltd. offered 30,000 equity shares of ₹ 10 each to the public payable ₹ 2 per share on the application, ₹ 3 on share allotment, and the balance when required. Applications for 50,000 shares were received on which the directors allotted as:
Applicants for 10,000 shares – Full
Applicants for 35,000 shares – 20,000 shares (excess money will be utilized for allotment)
Applicants for 5,000 shares – Nil
All the money due was received. Pass journal entries upto the receipt of allotment.
Journal Entries
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 6
Working Notes:
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 7

Question 6.
Das Ltd. offered 50,000 equity shares of ₹ 10 each to the public payable as follows:
On application ₹ 4; on allotment ₹ 3; on first call ₹ 1 and on second and final call ₹ 2. Applications were received for 1,00,000 shares. All the applicants were allotted 1 share for every two shares applied. Excess application money was used for the amount due on allotment and call. Pass necessary journal entries.
Answer:
Journal Entries
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 8

Question 7.
Anjali Flour Ltd. with a registered capital of ₹ 4,00,000 in equity shares of ₹ 10 each, issued 30,000 of such shares; payable ₹ 2 per share on application, ₹ 5 per share on allotment, and ₹ 3 per share on the first call. The issue was duly subscribed.
All the money payable was duly received but on allotment, one shareholder paid the entire balance on his holding of 500 shares. Give journal entries to record the transactions.
Answer:
Journal Entries
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 9

Question 8.
Muthu Ltd. issued 50,000 shares of ₹ 10 each payable as follows:
₹ 2 on the application; ₹ 4 on allotment; ₹ 4 on first and final call.
All money was duly received except one shareholder holding 1,000 shares failed to pay the call money. Pass the necessary journal entries for calls by using calls in arrear account.
Answer:
Journal Entries
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 10

Question 9.
Arjun was holding 1,000 shares of ₹ 10 each of Vanavil Electronics Ltd, issued at par. He paid ₹ 3 on the application, ₹ 4 on the allotment but could not pay the first and final call of ₹ 3. The directors forfeited the shares for non – payment of call money. Give Journal entry for forfeiture of shares.
Answer:
Journal Entries
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 11

Question 10.
Lakshith was holding 50 shares of ₹ 10 each on which he paid ₹ 2 on application but could not pay ₹ 4 on the allotment and ₹ 2 on the first call. Directors forfeited the shares after the first call. Give journal entry for recording the forfeiture of shares.
Answer:
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 12

Question 11.
Goutham Ltd. forfeited 500 equity shares of ₹ 10 each issued at par held by Ragav for non – payment of the final call of ₹ 2 per share. The shares were forfeited and reissued to Madhan at ₹ 8 per share. Show the journal entries for forfeiture and reissue.
Answer:
Journal Entries
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 13

Question 12.
Nivetha Ltd. forfeited 1,000 equity shares of ₹ 10 each for non-payment of call of ₹ 4 per share. Of these 800 shares were reissued @ ₹ 7 per share. Pass journal entries for forfeiture and reissue.
Answer:
Journal Entries
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 14

Question 13.
Nathiya Textiles Ltd. forfeited 100 shares of ₹ 10 each, ₹ 8 called up, on which Mayuri had paid application and allotment money of ₹ 6 per share. Of these 75 shares were re-issued to Soundarya by receiving ₹ 7 per share. Pass journal entries for forfeiture and reissue.
Answer:
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 15

Question 14.
Simon Ltd issued 50,000 equity shares of ₹ 10 each at par payable on application ₹ 1 per share, on allotment ₹ 5 per share, on first call ₹ 2 per share, and on second and final call ₹ 2 per share. The issue was fully subscribed and all the amounts were duly received with the exception of 2,000 shares held by Chezhian, who failed to pay the second and final call. His shares were forfeited and reissued to Elango at ₹ 8 per share. Journalise the above transactions.
Journal Entries
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 16

Question 15.
Kanchana Ltd. issued 50,000 shares of ₹ 10 each payable as under.
On application – ₹ 1
On allotment – ₹ 5
On first call – ₹ 2
On final call – ₹ 2
Applications were received for 70,000 shares. Applications for 8,000 shares were rejected and allotment was made proportionately towards the remaining applications. The directors made both the calls and the all the amounts were received except the final call on 1,500 shares which were subsequently forfeited. Later 1,200 forfeited shares were reissued by receiving ₹ 8 per share. Give journal entries.
Answer:
Journal Entries
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 17

Question 16.
Viswanath Furniture Ltd. invited applications for 20,000 shares of ₹ 10 each at a premium of ₹ 2 per share payable.
₹ 2 on application
₹ 5 (including premium) on allotment
₹ 5 on first and final call
There were oversubscription and applications were received for 30,000 shares and the excess applications were rejected by the directors. Pass the journal entries.
Answer:
Journal Entries
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 18

Question 17.
United Industries Ltd. issued shares of ₹ 10 each at 10% premium payable ₹ 3 on application, ₹ 4 on allotment (including premium), ₹ 2 on first call and ₹ 2 on final call.

Journalise the transactions relating to forfeiture of shares for the following situations: Manoj who holds 250 shares failed to pay the second and final call and his shares were forfeited. Manoj who holds 250 shares failed to pay the allotment money and first call and second and final call and his shares were forfeited. Manoj who holds 250 shares failed to pay the allotment money and first call money and his shares were forfeited after the first call.
Answer:
Journal Entries
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 19

Question 18.
Kasthuri Ltd. had allotted 20,000 shares to applicants of 30,000 shares on a pro-rata basis. The amount payable was ₹ 1 on application, ₹ 5 on allotment (including premium of ₹ 2 each), and ₹ 2 on the first call and ₹ 2 on final calls. Subin, a shareholder failed to pay the first call and final call on his 500 shares. All the shares were forfeited and out of the 400 shares were re-issued @ ₹ 8 per share. Pass necessary journal entries.
Answer:
Journal Entries
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 20

Question 19.
Vairam Ltd. issued 60,000 shares of ₹ 10 each at a premium of ₹ 2 per share payable as follows:
On application ₹ 6
On allotment ₹ 4 (including premium)
On the first and final call ₹ 2
Issue was fully subscribed and the amounts due were received except Saritha to whom 1,000 shares were allotted who failed to pay the allotment money and first and final call money. Her shares were forfeited. All the forfeited shares were reissued to Parimala at ₹ 7 per share. Pass journal entries.
Answer:
Journal Entries
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 21

Question 20.
Abdul Ltd. issues 50,000 shares of ₹ 10 each at a premium of ₹ 2 per share. Pass journal entry if the amount is fully received along with a premium amount of ₹ 2 per share.
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 22

Question 21.
Paradise Ltd. purchased assets of ₹ 4,40,000 from Suguna Furniture Ltd. It issued equity shares of ₹ 10 each fully paid in satisfaction of their claim. What entries will be made if such issue is: (a) at par and (b) at a premium of 10%.
Answer:
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 23
Total Amount = ₹ 4,40,000 Face value of shares is 10.
Premium @ 10% = Premium amt Rs. 1.
Issue Price = Face Value + Securities Premium 10 + 1 = 11
No. of Equity Shares = \(\frac{\text { Total amount }}{\text { Issue price }}\) = \(\frac { 440000 }{ 11 }\) = 40,000 Shares

Samacheer Kalvi 12th Accountancy Company Accounts Additional Questions and Answers

I. Choose the correct answer

Question 1.
Equity Shareholders are ………………
(a) Creditors
(b) Owners
(c) Directors
(d) None of these
Answer:
(b) Owners

Question 2.
Money received in advance from share holders before it is actually called – up by the director is
(a) debited to calls – in – advance A/c
(b) Cr to Calls – in – advance A/c
(c) Dr to calls A/c
(d) none of the above
Answer:
(b) Cr to Calls – in – advance A/c

Question 3.
Securities Premium Reserve can be used for ………………
(a) Paying interest on debentures
(b) meeting the cost of issue of shares
(c) Paying tax liability
(d) Paying dividend as shares
Answer:
(b) meeting the cost of issue of shares

Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts

Question 4.
When share are allowed which of the following account is credited?
(a) Share capital A/c
(b) Share Allotment A/c
(c) Share Application Ac
(d) Shareholders Ac
Answer:
(a) Share capital Ac

Question 5.
Right issue of shares is issued to ………………
(a) Directors
(b) Employees
(c) Existing Shareholders
(d) Shareholder A/c
Answer:
(c) Existing Shareholders

Question 6.
At what rate a company is required to change interest on calls – in – arrears?
(a) 12% p.a.
(b) 10% p.a.
(c) 5% p.a.
(d) 6% p.a.
Answer:
(b) 10% p.a.

Question 7.
At what rate a company is required to pay interest on calls – in – arrears?
(a) 6% p.a.
(b) 12% p.a.
(c) 10% p.a.
(d) 5% p.a.
Answer:
(b) 12% p.a.

Question 8.
According to the Companies Act 2000, a company limited by share can issue ……………… kinds of shares.
(a) 1
(b) 2
(c) 3
Answer:
(b) 2

Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts

Question 9.
The maximum number of calls that a company can make is ………………
(a) one
(b) two
(c) three
Answer:
(c) three

Question 10.
Capital Reserve is shown on the side of balance sheets ………………
(a) Assets
(b) Liability
(c) Both
Answer:
(b) Liability

II. Fill in the blanks

Question 11.
When excess application money is adjusted towards allotment it is called as ……………… allotment.
Answer:
Pro-rata

Question 12.
There should be a time gap of between the two calls.
Answer:
One month

Question 13.
Capital Reserve represent ……………… profit.
Answer:
Capital

Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts

Question 14.
Reserve Capital can be issued at the time of ………………
Answer:
Winding-up

Question 15.
A Company may also issue shares as consideration for business, to ……………… for their services ……………… for their commission.
Answer:
Promotors, Brokers

III. Assertion and Reason

Question 16.
(i) Assertion: When a shareholder defaults in making payment of allotment/call money share may be forfeited.
(ii) Reason: Share forfeited can be reissued at par, discount, or premium.
(a) (i) and (ii) are correct
(b) (i) is correct (ii) is incorrect
(c) (i) and (iii) are incorrect
(d) (i) is incorrect (ii) is correct
Answer:
(a) (i) and (ii) are correct

IV. Match the following

Question 17.
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 25
Answer:
(3) (d) (c) (a) (b)

V. Very Short Answer Questions

Question 1.
Name different types of share capital.
Answer:

  1. Authorised share capital.
  2. Issued share capital.
  3. Subscribed share capital.
  4. Called – up – share capital.
  5. Paid-up – share capital and.
  6. Reserve capital.

Question 2.
What is meant by Authorised Capital?
Answer:
This is the amount stated in the capital clause of the memorandum of association with which the company was registered. It is the maximum amount a company can raise during the lifetime.

Question 3.
What do you mean by Capital Reserve?
Answer:
It is that reserve which is created out of capital profits such as profit on sale of fixed assets, profit on revaluation of assets, premium on issue of shares and debentures, etc.

Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts

Question 4.
What is meant by Pro-rata Allotment of shares?
Answer:
Pro-rata allotment is that allotment of shares when applications may be allotted in less number of shares than they have applied for.

Question 5.
Define Equity shares.
Answer:
Equity shares are those shares which are not entitled to a fixed rate of dividend. The dividend is paid on these shares after it is paid on preference shares. Equity share capital is returned only when preference shares is returned.

VI. Short Answer Questions

Question 1.
For what purpose Securities Premium Reserve Amount is used?
Answer:
According to Section 52(2) of the Companies Act 2013. Securities Premium Reserve can be used.

  1. To issue fully paid-up bonus shares to the shareholders.
  2. To write off preliminary expenses of the companies.
  3. To write off the commission paid or discount/exp on the issue of shares/debentures.
  4. To pay premium on the redemption of preference shares or debentures of the company.

Question 2.
What are the difference between under subscription and oversubscription?
Answer:

S. No. Basis for Difference Under Subscription Over Subscription
1. Meaning The number of shares applied for is less than shares offered to the public for subscription. The number of shares applied for is more than the shares offered to the public for subscription.
2. . Minimum Subscription The problem of minimum subscription may arise The problem of minimum subscription does not arise.
3. Allotment of Shares All the applications for shares are allotted. Some applications are to be rejected.
4. Refund There is no question of refund of money. Money is refunded to applicants whose applications are rejected.

VII. Exercise

Question 1.
A company forfeited 200 shares of ₹ 20 each, ₹ 15 per share called upon which ₹ 10 per share had been paid. Directors reissued all the forfeited shares. @ ₹ 15 per share paid up for the payment of ₹ 10 each. Give the journal entries.
Answer:
Journal Entries
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 25

Question 2.
A company forfeited 200 shares of ₹ 10 each fully called up for non – payment of the first call of ₹ 2/- per share and final call of ₹ 3 per share. 120 of these shares were reissued at ₹ 6/- per share fully paid up. Give the necessary entries.
Answer:
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 25

Calculation of Amount Transfer to Capital Reserve:
No of shares x (Reissue price – paid up amount)
= 120 x (6 – 5)
= 120 x 1 = ₹ 120.

Question 3.
Global Ltd issued 6000 shares of ₹ 100/- each at premium of ₹ 20 per share payable as follow
₹ 30 on Application
₹ 50 on Allotment (including premium)
₹ 30 on First call and
₹ 10 on final call
All shares were duly subscribed and money due were received. Pass Journal Entries.
Answer:
Journal Entries
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 25

Question 4.
Sun Ltd offered for subscription 20,000 shares of ₹ 10/- each payable
₹ 2.50 in Application
₹ 5 on Allotment
₹ 3 on the First call
₹ 2 on Final call
Applications were received for 30,000 shares.
The application for 5,000 shares was rejected. Application money for other 5,000 shares was applied towards the amount due on allotment. Pass Journal Entries.
Samacheer Kalvi 12th Accountancy Solutions Chapter 7 Company Accounts 25

Question 27.
Anbu and Shankar are partners in a business sharing profits and losses in the ratio of 7 : 5. The balance sheet of the partners on 31.03.2018 is as follows:
Samacheer Kalvi 12th Accountancy Solutions Chapter 5 Admission of a Partner 41
Rajesh is admitted for 1/5 share on the following terms:

  1. Goodwill of the firm is valued at ₹ 80,000 and Rajesh brought cash ₹ 6,000 for his share of goodwill.
  2. Rajesh is to bring ₹ 1,50,000 as his capital.
  3. Motor car is valued at ₹ 2,00,000; stock at ₹ 3,80,000 and debtors at ₹ 3,50,000.
  4. Anticipated claim on workmen compensation fund is ₹ 10,000
  5. Unrecorded investment of ₹ 5,000 has to be brought into account.

Prepare revaluation account, capital accounts and balance sheet after Rajesh’s admission.
Revaluation Account
Samacheer Kalvi 12th Accountancy Solutions Chapter 5 Admission of a Partner 42
Capital Account
Samacheer Kalvi 12th Accountancy Solutions Chapter 5 Admission of a Partner 43
Balance Sheet as on 31.03.2018
Samacheer Kalvi 12th Accountancy Solutions Chapter 5 Admission of a Partner 44
Samacheer Kalvi 12th Accountancy Solutions Chapter 5 Admission of a Partner 45

Samacheer Kalvi 12th Accountancy Admission of a Partner Additional Questions and Answers

I. Choose the correct answer

Question 1.
At the time of admission of a partner calculation of new profit ratio is ………………
(a) not necessary
(b) necessary
(c) optional
Answer:
(b) necessary

Question 2.
In admission, undistributed profit or loss transferred to ………………
(a) New Partners only
(b) Old Partners only
(c) All the Partners
Answer:
(b) Old Partners only

Question 3.
To get sacrificing ratio should be deducted from old share ………………
(a) Gaining share
(b) New share
(c) Neither of the two
Answer:
(b) new share

Samacheer Kalvi 12th Accountancy Solutions Chapter 5 Admission of a Partner

Question 4.
A person who is admitted to the firm is known as ………………
(a) Outgoing partners
(b) Incoming partner
(c) Both
Answer:
(b) incoming partner

Question 5.
At the time of admission of a new partner the following are revalued ………………
(a) Assets
(b) Liabilities
(c) Both
Answer:
(c) Both

Question 6.
New profit ratio is calculated at the time of admission, by deducting ………………
(a) Sacrifice from the old ratio
(b) Old ratio from the sacrifice
(c) Sacrifice from the new ratio
Answer:
(a) Sacrifice from the old ratio

Question 7.
On the admission of a new partner ………………
(a) Old firm has to be dissolved
(b) Old partnership has to be dissolved
(c) Both old firm and partnership have to be dissolved
(d) Neither partnership nor firm has to be dissolved
Answer:
(b) Old partnership has to be dissolved

Question 8.
When a new partner brings his share of goodwill in cash, the amount is debited to ………………
(a) Premium A/c
(b) Cash A/c
(c) Capital A/c of old partner
(d) Capital A/c of new partner
Answer:
(b) Cash A/c

Question 9.
Goodwill already appearing in the Balance sheet at the time of admission of a partner is transferred to ………………
(a) New Partners’ Capital A/c
(b) Old Partners’ Capital A/c
(c) Revaluation A/c
(d) None of the above
Answer:
(b) Old Partners’ Capital A/c

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionary

Students can Download Computer Science Chapter 9 Lists, Tuples, Sets and Dictionary Questions and Answers, Notes Pdf, Samacheer Kalvi 12th Computer Science Book Solutions Guide Pdf helps you to revise the complete Tamilnadu State Board New Syllabus and score more marks in your examinations.

Tamilnadu Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionary

Samacheer Kalvi 12th Computer Science Lists, Tuples, Sets and Dictionary Text Book Back Questions and Answers

PART – 1
1. Choose The Best Answer

Question 1.
Pick odd one in connection with collection data type?
(a) List
(b) Tuple
(c) Dictionary
(d) Loop
Answer:
(d) Loop

Question 2.
Let list1=[2 ,4, 6, 8, 10], then print (List1[-2]) will result in ……………………….
(a) 10
(b) 8
(c) 4
(d) 6
Answer:
(b) 8

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 3.
Which of the following function is used to count the number of elements in a list?
(a) Count( )
(b) Find( )
(c) Len( )
(d) Index( )
Answer:
(c) Len( )

Question 4.
If List=[10, 20, 30, 40, 50] then List[2]=35 will result –
(a) [35, 10, 20, 30, 40, 50]
(b) [10, 20, 30, 40, 50, 35]
(c) [10, 20, 35, 40, 50]
(d) [10, 35, 30, 40, 50]
Answer:
(c) [10, 20, 35, 40, 50]

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 5.
If List=[17, 23, 41, 10] then List.append (32) will result –
(a) [32, 17, 23, 41, 10]
(b) [17, 23, 41, 10, 32]
(c) [10, 17, 23, 32, 41]
(d) [41, 32, 23, 17, 10]
Answer:
(b) [17, 23, 41, 10, 32]

Question 6.
Which of the following Python function can be used to add more than one element within an existing list?
(a) append( )
(b) append_more( )
(c) extend( )
(d) more( )
Answer:
(c) extend( )

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 7.
What will be the result of the following Python code?
S = [x**2 for x in range(5)]
print(S)
(a) [0, 1, 2, 4, 5]
(b) [0, 1, 4, 9, 16]
(c) [0, 1, 4, 9, 16, 25]
(d) [1, 4, 9, 16, 25]
Answer:
(b) [0, 1, 4, 9, 16]

Question 8.
What is the use of type( ) function in python?
(a) To create a Tuple
(b) To know the type of an element in tuple.
(c) To know the data type of python object.
(d) To create a list.
Answer:
(c) To know the data type of python object.

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 9.
Which of the following statement is not correct?
(a) A list is mutable
(b) A tuple is immutable.
(c) The append( ) function is used to add an element.
(d) The extend( ) function is used in tuple to add elements in a list.
Answer:
(d) The extend( ) function is used in tuple to add elements in a list.

Question 10.
Let set A={3, 6, 9}, set B={1, 3, 9} What will be the result of the following snippet?
print (setA|setB)
(a) {3, 6, 9, 1, 3, 9}
(b) {3, 9}
(c) {1}
(d) {1, 3, 6, 9}
Answer:
(d) {1, 3, 6, 9}

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 11.
Which of the following set operation includes all the elements that are in two sets but not the one that are common to two sets?
(a) Symmetric difference
(b) Difference
(c) Intersection
(d) Union
Answer:
(a) Symmetric difference

Question 12.
The keys in Python, dictionary is specified by …………………………
(a) =
(b) ;
(c) +
(d) :
Answer:
(d) :

PART – II
II. Answer The Following Questions

Question 1.
What is List in Python?
Answer:
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.

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 2.
How will you access the list elements in reverse order?
Answer:
Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionary

Question 3.
What will be the value of x in following python code?
Answer:
List1=[2, 4, 6, [1, 3, 5]]
x=len(List1)
Ans: 4

Question 4.
Differentiate del with remove( ) function of List?
Answer:
There are two ways to delete an element from a list viz. del statement and remove( ) function, del statement is used to delete known elements whereas remove( ) function is used to delete elements of a list if its index is unknown. The del statement can also be used to delete entire list.

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 5.
Write the syntax of creating a Tuple with n number of elements?
Answer:
# Tuple with n number elements
Tuple _ Name = (E1, E2, E2 ……………… En)
# Elements of a tuple without parenthesis
Tuple_Name = E1, E2, E3 …………………. En

Question 6.
What is set in Python?
Answer:
In python, a set is another type of collection data type. A Set is a mutable and an unordered collection of elements without duplicates. That means the elements within a set cannot be repeated. This feature used to include membership testing and eliminating duplicate elements.

PART – III
III. Answer The Following Questions

Question 1.
What are the advantages of Tuples over a list?
Answer:

  1. The elements of a list are changeable (mutable) whereas the elements of a tuple are unchangeable (immutable), this is the key difference between tuples and list.
  2. The elements of a list are enclosed within square brackets. But, the elements of a tuple are enclosed by paranthesis.
  3. Iterating tuples is faster than list.

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 2.
Write a short note about sort( )?
Answer:
sort( ) function sorts the element in list.
Syntax:
List.sort (reverse = True/False, Key = myFunc)
Both arguments are optional

  • If reverse is set as True, list sorting is in descending order.
  • Ascending is default.
  • Key=myFunc; “myFunc” – the name of the user defined function that specifies the sorting criteria.

Example
My List=[‘Thilothamma’, ’Tharani’, ‘Anitha’, ‘SaiSree’, ‘Lavanya’]
MyList.sort( )
print(MyList)
Output:
[‘Anitha’, ‘Lavanya’, ‘SaiSree’, ‘Tharani’, ‘Thilothamma’]

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 3.
What will be the output of the following code?
list=[2**x for x in range(5)
print(list)
[1, 2, 4, 8, 16]

Question 4.
Explain the difference between del and clear( ) in dictionary with an example?
Answer:
In Python dictionary, del keyword is used to delete a particular element. The clear( ) function is used to delete all the elements in a dictionary. To remove the dictionary, we can use del keyword with dictionary name.
Dict={‘Roll No’: 12001, ‘SName’: ‘Meena’, ‘Mark1’: 98, ‘Mar12’: 86}
print(“Dictionary elements before deletion: \n”, Dict)
del Dict[‘Mark1’] # Deleting a particular element
Dict.clear( ) # Deleting all elements

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 5.
List out the set operations supported by python?
Answer:
(i) Union:
It includes all elements from two or more sets
Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionary
In python, the operator | is used to union of two sets. The function union( ) is also used to join two sets in python.

(ii) Intersection:
It includes the common elements in two sets
Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionary
The operator & is used to intersect two sets in python. The function intersection( ) is also used to intersect two sets in python.

(iii) Difference:
It includes all elements that are in first set (say set A) but not in the second set (say set B)
Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionary
The minus(-) operator is used to difference set operation in python. The function difference( ) is also used to difference operation.

(iv) Symmetric difference:
It includes all the elements that are in two sets (say sets A and B) but not the one that are common to two sets.
Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionary
The caret (^) operator is used to symmetric difference set operation in python. The function symmetric_difference( ) is also used to do the same operation.

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 6.
What are the difference between List and Dictionary?
Answer:
Difference between List and Dictionary

  1. List is an ordered set of elements. But, a dictionary is a data structure that is used for matching one element (Key) with another (Value).
  2. The index values can be used to access a particular element. But, in dictionary key represents index. Remember that, key may be a number of a string.
  3. Lists are used to look up a value whereas a dictionary is used to take one value and look up another value.

PART – IV
IV. Answer The Following Questions

Question 1.
What the different ways to insert an element in a list. Explain with suitable example. Inserting elements in a list?
Answer:
append( ) function in Python is used to add more elements in a list. But, it includes elements at the end of a list. If you want to include an element at your desired position, you can use insert () function is used to insert an element at any position of a list.
Syntax:
List, insert (position index, element)
Example:
>>> MyList=[34,98,47, ‘Kannan’, ‘Gowrisankar’, ‘Lenin’, ‘Sreenivasan’ ]
>>> print(MyList)
[34, 98, 47, ‘Kannan’, ‘Gowrisankar’, ‘Lenin’, ‘Sreenivasan’]
>>> MyList.insert(3, ‘Ramakrishnan’)
>>> print(MyList)
[34, 98, 47, ‘Ramakrishnan’, ‘Kannan’, ‘Gowrisankar’, ‘Lenin’, ‘Sreenivasan’]
In the above example, insertf) function inserts a new element ‘Ramakrishnan’ at the index value 3, ie. at the 4th position. While inserting a new element in between the existing elements, at a particular location, the existing elements shifts one position to the right.

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 2.
What is the purpose of range( )? Explain with an example?
Answer:
(i) The range( ) is a function used to generate a series of values in Python. Using range( ) function, you can create list with series of values. The range( ) function has three arguments.
Syntax of range( ) function:
range (start value, end value, step value)
where,

  • start value – beginning value of series. Zero is the default beginning value.
  • end value – upper limit of series. Python takes the ending value as upper limit – 1.
  • step value – It is an optional argument, which is used to generate different interval of values.

Example: Generating whole numbers upto 10
for x in range (1, 11):
print(x)
Output
1
2
3
4
5
6
7
8
9
10

(ii) Creating a list with series of values
Using the range( ) function, you can create a list with series of values. To convert the result of range( ) function into list, we need one more function called list( ). The list( ) function makes the result of range( ) as a list.
Syntax:
List_Varibale = list ( range ( ) )
Note
The list( ) function is all so used to create list in python.
Example
>>> Even_List = list(range(2,11,2))
>>> print(Even_List)
[2, 4, 6, 8, 10]
In the above code, list( ) function takes the result of range( ) as Even List elements. Thus, Even _List list has the elements of first five even numbers.

(iii) We can create any series of values using range( ) function. The following example explains how to create a list with squares of first 10 natural numbers.
Example: Generating squares of first 10 natural numbers
squares = [ ]
for x in range(1,11):
s = x ** 2
squares.append(s)
print (squares)
Output
[1, 4, 9, 16, 25, 36, 49, 64, 81, 100]

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 3.
What is nested tuple? Explain with an example.?
Answer:
In Python, a tuple can be defined inside another tuple; called Nested tuple. In a nested tuple, each tuple is considered as an element. The for loop will be useful to access all the elements in a nested tuple.
Example:
Toppers = ((“Vinodini”, “XII-F”, 98.7), (“Soundarya”, “XII-H”, 97.5),
(“Tharani”, “XII-F”, 95.3), (“Saisri”, “XII-G”, 93.8))
for i in Toppers:
print(i)
Output:
(‘Vinodini’, ‘XII-F’, 98.7)
(‘Soundarya’, ‘XII-H’, 97.5)
(‘Tharani’, ‘XII-F’, 95.3)
(‘Saisri’, ‘XII-G’, 93.8)

Question 4.
Explain the different set operations supported by python with suitable example?
Answer:
Set Operations:
As you leamt in mathematics, the python is also supports the set operations such as Union, Intersection, difference and Symmetric difference.
(i) Union:
It includes all elements from two or more sets
Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionary
In python, the operator | is used to union of two sets. The function union( ) is also used to join two sets in python.
Example: Program to Join (Union) two sets using union operator
set_A={2,4,6,8}
set_B={‘A’, ’B’, ‘C, ‘D’}
U_set=set_A|set_B
print(U_set)
Output:
{’D’, 2, 4, 6, 8, ‘B’, ’C, A’}

(ii) Intersection:
It includes the common elements in two sets
Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionary
The operator & is used to intersect two sets in python. The function intersection ) is also used to intersect two sets in python.
Example: Program to insect two sets using intersection operator
set_A={A’, 2, 4, ‘D’}
set_B={A’, ‘B’, ‘C’, ‘D’}
print(set_A & set_B)
Output:
{’A, ‘D’}
Example: Program to insect two sets using intersection operator
set_A={‘A’, 2, 4, ’D’}
set_B={A’, ‘B’, ‘C’, ‘D’}
print(set_A.intersection(set_B))
{‘A’, ‘D’}

(iii) Difference:
It includes all elements that are in first set (say set A) but not in the second set (say set B)
Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionary
The minus (-) operator is used to difference set operation in python. The function difference() is also used to difference operation.
Example: Program to difference of two sets using minus operator
set_A={‘A’, 2, 4, ‘D’} set_B={‘A’, ‘B’, ‘C, ‘D’} print(set_A – set_B)
Output:
{2,4}
Example: Program to difference of two sets using difference function
set_A={‘A’, 2, 4, TV} set_B={‘A’, ’B’, ’C, ’D’} print(set_A.difference(set_B))
Output:
{2,4}

(iv) Symmetric difference:
It includes all the elements that are in two sets (say sets A and B) but not the one that are common to two sets.
Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionary

The caret (^) operator is used to symmetric difference set operation in python. The function symmetric_difference( ) is also used to do the same operation.
Example: Program to symmetric difference of two sets using caret operator
set_A={‘A’, 2, 4, ‘D’}
set_B={‘A’, ‘B’, ‘C, ‘D’}
print(set_A^A set_B)
Output:
{2, 4, ‘B’, ‘C’}
Example: Program to difference of two sets using symmetric difference function
set_A={‘A’, 2, 4, ‘D’}
set_B={‘A’, ‘B’, ‘C’, ‘D’}
print(set_A. symmetric_difference(set_B))
Output:
{2, 4, ‘B’, ‘C’}

Practice Programs

Question 1.
Write a program to remove duplicates from a list.
Method I:
mylist = [2,4,6,8,8,4,10]
myset = set(mylist)
print(myset)
Output:
{2, 4, 6, 8, 10}
Method II:
def remove(duplicate):
final_list=[ ]
for num in duplicate:
if num not in final_list:
final_list.append(num)
return final_list
duplicate = [2, 4, 10, 20, 5, 2, 20, 4]
print(remove(duplicate))
Output:
[2, 4, 10, 20, 5]

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 2.
Write a program that prints the maximum value in a Tuple?
Answer:
tuple = (456, 700, 200)
print(“max value : “, max(tuple))
Output:
max value : 700

Question 3.
Write a program that finds the sum of all the numbers in a Tuples using while loop?
Answer:
tuple = (1, 5, 12)
s = 0
i = 0
while(i < len (tuple)):
s = s + tuple[i]
i+ = 1
print(“Sum of elements in tuple is “, s)
Output:
Sum of elements in tuple is 18

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 4.
Write a program that finds sum of all even numbers in a list?
Answer:
numlist = [ ]
evensum = 0
number = int(input(“Please enter the total no of list elements”))
for i in range(1, number +1):
value = int(input(“Please enter the value “))
numlist.append(value)
for j in range(number):
if(numlist[j]% 2 == 0):
even_sum = even_sum + numlist[j]
print(“Sum of even no. in this list = “, even_sum)
Output:
Please enter the total no of list elements : 5
Please enter the value : 10
Please enter the value : 11
Please enter the value : 12
Please enter the value : 13
Please enter the value : 14
The sum of even no. in this list = 60

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 5.
Write a program that reverse a list using a loop?
Answer:
def reverse(list):
list.reverse( )
return list
list = [10, 11, 12, 13, 14, 15]
print(reverse(list))
Output:
15, 14, 13, 12, 11, 10

Question 6.
Write a program to insert a value in a list at the specified location?
Answer:
vowel = [‘a’, ‘e’, ‘i’, ‘u’]
vowel.insert(3, ‘o’)
print(‘updated list’, vowel)
Output:
updated list [‘a’, ‘e’, ‘i’, ‘o’, ‘u’]

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 7.
Write a program that creates a list of numbers from 1 to 50 that are either divisible by 3 or divisible by 6?
Answer:
n = [ ]
s = [ ]
for x in range(1, 51):
n.append(x)
for x in range(1, 51):
if(x%3 == 0) or (x % 6 == 0):
s.append(x)
print(“The numbers divisible by 3 or 6 is “, s)
Output:
The numbers divisible by 3 or 6 is
[3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48]

Question 8.
Write a program to create a list of numbers in the range 1 to 20. Then delete all the numbers from the list that are divisible by 3?
Answer:
num = [ ]
for x in range(1, 21):
num.append(x)
print(“The list of numbers from 1 to 20 =”, num)
for index, i in enumerate(num):
if(i % 3 == 0)
del num[index]
print(“The list after deleting numbers”, num)
Output:
The list of numbers from 1 to 20 = [1,2,3,4… 20]
The list after deleting numbers[1, 2, 4, 5, 7, 8, 10, 11, 13, 14, 16, 17, 19, 20]

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 9.
Write a program that counts the number of times a value appears in the list. Use a loop to do the same?
Answer:
a = [ ]
n = int(input”Enter number of elements :”))
for i in range(l, n+1):
b = int(input(“Enter element”))
a.append(b)
k = 0
num = int(input(“Enter the number to be counted : “))
for j in a:
if(j == num):
k = k+1
print(“Number of times”, num, “appears is”, k)
Output:
Enter number of elements : 4
Enter element: 23
Enter element: 45
Enter element: 23
Enter element: 67
Enter the number to be counted : 23
Number of times 23 appears is 2

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 10.
Write a program that prints the maximum and minimum value in a dictionary?
Answer:
my_dict = {‘x’: 500, ‘y’: 5874, ‘z’: 560}
val = my_dict.values( )
print(‘max value’, max(val))
print(‘min value’, min(val))
Output:
max value 5874
min value 500

Samacheer kalvi 12th Computer Science Lists, Tuples, Sets and Dictionary Additional Questions and Answers

PART – 1
I. Choose The Correct Answer

Question 1.
A list in python is denoted by ………………………..
(a) [ ]
(b) { }
(c) <>
(d) #
Answer:
(a) [ ]

Question 2.
A ………………………… is a sequence data type like strings.
(a) List
(b) Tuples
(c) Set
(d) Dictionary
Answer:
(a) List

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 3.
Each value of a list is called as –
(a) Set
(b) Dictionary
(c) Element
(d) Strings
Answer:
(c) Element

Question 4.
The position of an element is indexed with numbers beginning with …………………………….
(a) n
(b) n-1
(c) 0
(d) 1
Answer:
(c) 0

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 5.
(1) mylist[ ] – (i) tuple
(2) mylist[10,[2,4,6]] – (ii) Empty tuple
(3) t=(23,56,89) – (iii) Nested list
(4) lis=( ) – (iv) empty list
(a) 1-(iv), 2-(iii), 3-(i), 4-(ii)
(b) 1-(i), 2-(ii), 3-(iii), 4-(iv)
(c) 1-(iv), 2-(ii), 3-(i), 4-(iii)
(d) 1-(i), 2-(iii), 3-(iv), 4-(ii)
Answer:
(a) 1-(iv), 2-(iii), 3-(i), 4-(ii)

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 6.
………………………… is used to access an element in a list
(a) element
(b) i
(c) index
(d) tuple
Answer:
(c) index

Question 7.
Index value can be positive or negative in the list.
True / false
Answer:
True

Question 8.
To access the list elements in reverse order, ……………………. value have to be given
(a) 0
(b) positive
(c) imaginery
(d) negative
Answer:
(d) negative

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 9.
………………………. are used to access all elements from a list.
(a) If
(b) loop
(c) array
(d) tuple
Answer:
(b) loop

Question 10.
Find the Output:
marks = [10, 23, 41, 75]
i = -1
while i >= – 4:
print(marks[i])
i = i + – 1
(o) 1 2 3 4
(b) 10, 23, 41, 75
(c) 75, 41, 23, 10
(d) 0, 41, 23, 0
Answer:
(c) 75, 41, 23, 10

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 11.
…………………….. operator is used to change the list of elements
(a) =
(b) +
(c) +=
(d) *=
Answer:
(a) =

Question 12.
In changing list elements, …………………………. is the upper limit of this range.
(a) Index from
(b) Index to
(c) Index with
(d) Index
Answer:
(b) Index to

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 13.
If the range is specified as [1 : 5], it will update the elements from …………………………..
(a) 2 to 4
(b) 1 to 5
(c) 1 to 4
(d) 2 to 5
Answer:
(c) 1 to 4

Question 14.
……………………….. function is used to add a single element in the list.
Answer:
append( )

Question 15.
Write the output,
list = [34, 45, 48]
list.append(90)
(a) [34, 45, 48, 90]
(b) [90, 34, 45, 48]
(c) [34, 90, 45, 48]
(d) [34, 45, 90, 48]
Answer:
(a) [34, 45, 48, 90]

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 16.
list = [34, 45, 48]
list.extend([71, 32, 29]) results in ………………………….
Answer:
[35, 45, 48, 71, 32, 29]

Question 17.
………………………… function is used to insert an element at any position of a list.
Answer:
insert( )

Question 18.
Find the correct statement from the following
(a) when new element is inserted in the list, the existing elements shift one position to the right
(b) when a new element is inserted in the list, the existing element shifts one position to the left.
Answer:
(a) when new element is inserted in the list, the existing elements shift one position to the right

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 19.
How many ways of deleting the elements from a list are there?
(a) 1
(b) 2
(c) 3
(d) 4
Answer:
(b) 2

Question 20.
The two ways of deleting elements from a list are ……………………….. and …………………………
Answer:
del and remove( )

Question 21.
Which function is used to delete elements of a list if its index is unknown?
(a) del
(b) delete
(c) remove( )
(d) backspace
Answer:
(c) remove( )

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 22.
Which statement is used to delete known elements?
(a) del
(b) delete
(c) remove
(d) rem
Answer:
(a) del

Question 23.
………………………… statement deletes the entire list.
Answer:
del

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 24.
…………………….. function deletes the element using the given index value.
Answer:
pop( )

Question 25.
When you try to print the list which is already cleared, ……………………….. is display without any elements
Answer:
[ ] or empty square bracket

Question 26.
…………………………… function is used to generate a series of values in python
(a) range
(b) series
(c) Fill series
(d) Auto fill
Answer:
(a) range

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 27.
The range( ) function has ………………………. arguments.
(a) 1
(b) 2
(c) 3
(d) 4
Answer:
(c) 3

Question 28.
Which is an optional argument in range( ) function …………………………..
(a) start value
(b) end value
(c) step value
(d) default
Answer:
(c) step value

Question 29.
The ……………………… function is used to create list in python
Answer:
list( )

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 30.
……………………… is a simplest way of creating sequence of elements that satisfy a certain conditions returns copy of the list.
Answer:
List comprehension

Question 31.
……………….. returns copy of the list
Answer:
copy( )

Question 32.
x = mylist = [36, 12, 12]
x = mylist.count(12)
print(x) gives the vlaue as
(a) 2
(b) 3
(c) 0
(d) 1
Answer:
(a) 2

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 33.
………………….. returns the index value of the first recurring element.
Answer:
index( )

Question 34.
How many arguments are there in the sort( ) function?
(a) 1
(b) 2
(c) 3
(d) 4
Answer:
(b) 2

Question 35.
……………………… consists of a number of values separated by comma and enclosed within parenthesis
(a) list
(b) tuples
(c) dictionary
(d) sets
Answer:
(b) tuples

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 36.
The term ………………………. in latin represents an abstraction of the sequence of numbers.
(a) list
(b) tuples
(c) set
(d) dictionary
Answer:
(b) tuples

Question 37.
Identify the wrong statement from the following:
(a) The elements of the tuple are enclosed by parenthesis.
(b) The elements of a tuple can be even defined without parenthesis
(c) The list elements have to be given in square brackets
(d) Iterating list is faster than tuples.
Answer:
(d) Iterating list is faster than tuples.

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 38.
The …………………….. function is used to create tuples from a list.
Answer:
tuple( )

Question 39.
Creating a tuple with one element is called ……………………….. tuple.
Answer:
Singleton

Question 40.
Find the wrong tuple.
(a) mytup = (10)
(b) mytup = (10)
(c) print(tup[: ])
(d) tup(10, 20)
Answer:
(d) tup(10, 20)

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 41.
To delete an entire tuple, …………………….. command is used.
(a) del
(b) delete
(c) clear
(d) remove
Answer:
(a) del

Question 42.
Which operator is used to join two tuples?
(a) –
(b) _
(c) +
(d) +:
Answer:
(c) +

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 43.
…………………….. assignment is a powerful feature in python.
Answer:
Tuple

Question 44.
(x, y) = (3**2, 15%2)
print(x,y) gives the answer
(a) 6 1
(b) 6 7
(c) 9 1
(d) 9 7
Answer:
(c) 9 1

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 45.
Which one of the following is the tuple assignment operator?
(a) +=
(b) =
(c) ==
(d) *=
Answer:
(b) =

Question 46.
How many values can be returned by the functions in python?
(a) 1
(b) 2
(c) 3
(d) many
Answer:
(d) many

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 47.
A tuple defined in another tuple is called as ……………………….
Answer:
Nested tuple

Question 48.
…………………………. feature is used to include membership testing and eliminate duplicate elements.
Answer:
Set

Question 49.
A …………………………… is a mutable and an unordered collection of elements without duplicates.
Answer:
Set

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 50.
Which is true related to sets?
(a) mutable
(b) unordered
(c) No duplicates
(d) All are true
Answer:
(d) All are true

Question 51.
A list or tuples can be converted as set by using …………………………. function?
(a) set
(b) create set
(c) change
(d) alter
Answer:
(a) set

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 52.
Which operator joins two sets?
(a) +
(b) |
(c) ||
(d) &
Answer:
(b) |

Question 53.
Join is called as ……………………… in sets
(a) union
(b) intersection
(c) difference
(d) symmetric difference
Answer:
(a) union

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 54.
Identify the intersection operator.
(a) +
(b) –
(c) .
(d) &
Answer:
(d) &

Question 55.
Which operator is used to do difference in set?
(a) +
(b) –
(c) :
(d) &
Answer:
(b) –

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 56.
Which is the symmetric difference operator?
(a) +
(b) –
(c) ^
(d) &
Answer:
(c) ^

Question 57.
………………………. is used to separate the elements in the dictionary
Answer:
Comma

Question 58.
The key value pairs are enclosed with ……………………………
(a) <>
(b) [ ]
(c) { }
(d) ( )
Answer:
(c) { }

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 59.
The mixed collection of elements are called as ………………………….
(a) list
(b) tuples
(c) sets
(d) dictionary
Answer:
(d) dictionary

Question 60.
Identify the correct statement.
(a) The dictionary type stores a index along with its element
(b) The dictionary type stores a key along with its element
Answer:
(a) The dictionary type stores a index along with its element

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 61.
Which part is optional in dictionary comprehension?
(a) If
(b) expression
(c) var
(d) sequences
Answer:
(a) If

Question 62.
Find the statement which is wrong. When you assign a value to the key
(a) it will be appended
(b) it will overwrite the old data
Answer:
(a) it will be appended

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 63.
Pick odd one with including elements in list.
(a) append( )
(b) extend( )
(c) insert( )
(d) include
Answer:
(d) include

Question 64.
Pick the odd one with deleting elements from a list.
(a) del
(b) remove( )
(c) pop( )
(d) clear
Answer:
(d) clear

PART – II
II. Answer The Following Questions

Question 1.
Write note on nested list?
Answer:
Mylist = [ “Welcome”, 3.14, 10, [2, 4, 6] ]
In the above example, Mylist contains another list as an element. Nested list is a list containing another list as an element.

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 2.
Fill the table
Answer:
marks = [10, 23, 41, 75]
Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionary
Example
Marks [10, 23, 41, 75]
Samacheer kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionary

Question 3.
Give the syntax to access an element from a list?
Answer:
To access an element from a list, write the name of the list, followed by the index of the element enclosed within square brackets.
Syntax:
List_Variable = [El, E2, E3 …………….. En]
print (List_Variable [index ofa element])

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 4.
What is meant by Reverse Indexing?
Answer:
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.

Question 5.
Give the syntax for changing list elements?
Answer:
Syntax:
List_Variable [index of an element] = Value to be changed
List_Variable [index from : index to] = Values to changed
Where, index from is the beginning index of the range; index to is the upper limit of the range which is excluded in the range.

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 6.
Give the syntax for append, extend and insert?
Answer:
Syntax:
List.append (element to be added)
List, extend ( [elements to be added])
List, insert (position index, element)

Question 7.
Differentiate clear( ) and del in list?
Answer:
The function clear( ) is used to delete all the elements in list, it deletes only the elements and retains the list. Remember that, the del statement deletes entire list.

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 8.
How will you create a list with series of value?
Answer:
Using the range( ) function, you can create a list with series of values. To convert the result of range( ) function into list, we need one more function called list( ). The list( ) function makes the result of range( ) as a list.
Syntax:
List_Varibale = list (range ( ))

Question 9.
Write note on list comprehensions?
Answer:
List comprehensions:
List comprehension is a simplest way of creating sequence of elements that satisfy a certain condition.
Syntax:
List = [expression for variable in range]

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 10.
Define singleton tuple?
Answer:
While creating a tuple with a single element, add a comma at the end of the element. 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.
MyTup5 = (10,)

Question 11.
Write note on dictionary comprehensions?
Answer:
In Python, comprehension is another way of creating dictionary. The following is the syntax of creating such dictionary.
Syntax
Diet = { expression for variable in sequence [if condition] }

PART – III
III. Answer The Following Questions

Question 1.
How will you create a list in python? Explain with syntax and examples?
Answer:
In python, a list is simply created by using square bracket. The elements of list should be specified within square brackets. The following syntax explains the creation of list.
Syntax:
Variable = [element – 1, element – 2, element – 3 element – n]
Example:
Marks = [10, 23, 41, 75]

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 2.
How will you find the length of the list. Give example?
Answer:
The len( ) function in Python is used to find the length of a list, (i.e., the number of elements in a list). Usually, the len( ) function is used to set the upper limit in a loop to read all the elements of a list. If a list contains another list as an element, len( ) returns that inner list as a single element.
Example :Accessing single element
>>> MySubject = [“Tamil”, “English”, “Comp. Science”, “Maths”]
>>> len(MySubject)
4

Question 3.
Give the 3 different syntax formats for deleting the elements from a list?
Answer:
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

Question 4.
Give the syntax for remove, pop and clear?
Answer:
Syntax:
List.remove(element) # to delete a particular element
List.pop(index of an element)
List, clear( )

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 5.
Write a program that creates a list of numbers from 1 to 20 that are divisible by 4. Program to create a list of numbers from 1 to 20 that are divisible by 4
Answer:
divBy4=[ ]
for i in range(21):
if (i%4= =0):
divBy4.append(i)
print(divBy4)
Output
[0, 4, 8, 12, 16, 20]

Question 6.
Write a program to join two tuple assignment?
Answer:
# Program to join two tuples
Tup 1 = (2,4,6,8,10)
Tup2 = (1,3,5,7,9)
Tup3 = Tup1 + Tup2
print(Tup3)
Output
(2,4,6,8,10,1,3,5,7,9)

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 7.
Write note on tuple assignment?
Answer:
Tuple assignment is a powerful feature in Python. It allows a tuple variable on the left of the assignment operator to be assigned to the values on the right side of the assignment operator.
Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionary
Example
>>> (a, b, c) = (34, 90, 76)
>>> print(a,b,c)
34 90 76
# expression are evaluated before assignment
>>> (x, y, z, p) = (2**2, 5/3+4, 15%2, 34>65)
>>> print(x,y,z,p)
4 5.666666666666667 1 False

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 8.
How will you create a set in python?
Answer:
A set is created by placing all the elements separated by comma within a pair of curly brackets.
The set( ) function can also used to create sets in Python.
Syntax:
Set Variable = {El, E2, E3 ………………. En}
Example:
>>> S1={1,2,3,’A’,3.14}
>>> print(S1)
{1,2, 3, 3.14, ‘A’}
>>> S2={1,2,2,’A’,3.14}
>>> print(S2)
{1,2,’A’, 3.14}

Question 9.
Write note on dictionaries. Give syntax?
Answer:
A dictionary is a mixed collection of elements. The dictionary type stores a key along with its element. The keys in a Python dictionary is separated by a colon ( : ) while the commas work as a separator for the elements. The key value pairs are enclosed with curly braces { }. Syntax of defining a dictionary:
Dictionary_Name =
{ Key_l: Value_1,
Key_2: Value_2,
……………..
Key_n: Value_n
}

PART – IV
IV. Answer The Following Questions

Question 1.
Explain Various Functions in list?
Answer:
Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionary

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 2.
Write a python program using list to read marks of six subjects and to print the marks scored in each subject and show the total marks.
Python program to read marks of six subjects and to print the marks scored in each subject and show the total marks
Answer:
marks=[ ]
subjects=[‘Tamir, ‘English’, ‘Physics’, ‘Chemistry’, ‘Comp. Science’, ‘Maths’]
for i in range(6):
m=int(input(“Enter Mark = “))
marks.append(m)
for j in range(len(marks)):
print(“{ }. { } Mark= { } “.format(jl+,subjects[j],marks[j]))
print(“Total Marks = “, sum(marks))
Output

  • Enter Mark = 45
  • Enter Mark = 98
  • Enter Mark = 76
  • Enter Mark = 28
  • Enter Mark = 46
  • Enter Mark = 15
    1. Tamil Mark = 45
    2. English Mark = 98
    3. Physics Mark = 76
    4. Chemistry Mark = 28
    5. Comp. Science Mark = 46
    6. Maths Mark = 15
    7. Total Marks = 308

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 3.
Write a program using list to generate the Fibonacci series and find sum. Program to generate in the Fibonacci series and store it in a list. Then find the sum of all values?
Answer:
a=-1
b=1
n=int(input(“Enter no. of terms: “))
i=0
sum=0
Fibo=[ ]
while i<n:
s = a + b
Fibo.append(s)
sum+=s
a = b
b = s
i+=1
print(“Fibonacci series upto “+ str(n) +” terms is : ” + str(Fibo))
print(“The sum of Fibonacci series: “,sum)
Output
Enter no. of terms: 10
Fibonacci series upto 10 terms is : [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]
The sum of Fibonacci series: 88

Question 4.
Write a program to swap two values using tuple assignment
Program to swap two values using tuple assignment
Answer:
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

Samacheer Kalvi 12th Computer Science Solutions Chapter 9 Lists, Tuples, Sets and Dictionarys

Question 5.
Write a program using a function that returns the area and circumference of a circle whose radius is passed as an argument two values using tuple assignment. Program using a function that returns the area and circumference of a circle whose radius is passed as an argument. Assign two values using tuple assignment:
Answer:
pi = 3.14
def Circle(r):
return (pi*r*r, 2*pi*r)
radius = float(input(“Enter the Radius! “))
(area, circum) = Circle(radius)
print (“Area of the circle = “, area)
print (“Circumference of the circle = “, circum)
Output:
Enter the Radius: 5
Area of the circle = 78.5
Circumference of the circle = 31.400000000000002