Chapters
Chapter 2: Number Systems
Chapter 3: Computer Organization
Chapter 4: Theoretical Concepts of Operating System
Chapter 5: Working with Windows Operating System
Chapter 6: Specification and Abstraction
Chapter 7: Composition and Decomposition
Chapter 8: Iteration and recursion
Chapter 9: Introduction to C++
Chapter 10: Flow of Control
Chapter 11: Functions
Chapter 12: Arrays and Structures
Chapter 13: Introducton to Object Oriented Programming Techniques
Chapter 14: Classes and objects
Chapter 15: Polymorphism
Chapter 16: Inheritance
Chapter 17: Computer Ethics and Cyber Security
Chapter 18: Tamil Computing

Solutions for Chapter 15: Polymorphism
Below listed, you can find solutions for Chapter 15 of Tamil Nadu Board of Secondary Education Tamil Nadu Board Samacheer Kalvi for Class 11th Computer Science Answers Guide.
Tamil Nadu Board Samacheer Kalvi solutions for Class 11th Computer Science Answers Guide Chapter 15 Polymorphism Evaluation - Section - A [Pages 256 - 257]
Choose the correct answer
Which of the following refers to a function having more than one distinct meaning?
Function Overloading
Member overloading
Operator overloading
Operations overloading
Which of the following reduces the number of comparisons in a program?
Operator overloading
Operations overloading
Function Overloading
Member overloading
void dispchar(char ch=’$’,int size=10)
{
for(int i=1;i<=size;i++)
cout<<ch;
}
How will you invoke the function dispchar() for the following input?
To print $ for 10 times
dispchar();
dispchar(ch,size);
dispchar($,10);
dispchar(‘$’,10 times);
Which of the following is not true with respect to function overloading?
The overloaded functions must differ in their signature.
The return type is also considered for overloading a function.
The default arguments of overloaded functions are not considered for Overloading.
The destructor function cannot be overloaded.
Which of the following is an invalid prototype for function overloading?
void fun (intx);
void fun (char ch) ;void fun (intx);
void fun (inty);void fun (double d);
void fun (char ch);void fun (double d);
void fun (inty);
Tamil Nadu Board Samacheer Kalvi solutions for Class 11th Computer Science Answers Guide Chapter 15 Polymorphism Evaluation - Section - B [Page 257]
Very Short Answers
What is function overloading?
List the operators that cannot be overloaded.
class add{int x; public: add(int)}; Write an outline definition for the constructor.
Does the return type of a function help in overloading a function?
What is the use of overloading a function?
Tamil Nadu Board Samacheer Kalvi solutions for Class 11th Computer Science Answers Guide Chapter 15 Polymorphism Evaluation - Section - C [Page 257]
Short Answers
What are the rules for function overloading?
How does a compiler decide as to which function should be invoked when there are many functions? Give an example.
What is operator overloading? Give some examples of operators which can be overloaded.
Discuss the benefits of constructor overloading?
class sale ( int cost, discount; public: sale(sale &); Write a non-inline definition for constructor specified;
Tamil Nadu Board Samacheer Kalvi solutions for Class 11th Computer Science Answers Guide Chapter 15 Polymorphism Evaluation - Section - D [Pages 258 - 259]
Explain in detail
What are the rules for operator overloading?
Answer the question after going through the following class.
class Book {
int BookCode ; char Bookname[20];float fees;
public:
Book( ) //Function 1
{ fees=1000;
BookCode=1;
strcpy(Bookname,"C++"); }
void display(float C) //Function 2
{ cout<<BookCode<<":"<<Bookname<<":"<<fees<<endl; }
~Book( ) //Function 3
{ cout<<"End of Book Object"<<endl; }
Book (intSC,char S[ ],float F) ; //Function 4
};
In the above program, what are Function 1 and Function 4 combined together referred to as?
Answer the question after going through the following class.
class Book {
int BookCode ; char Bookname[20];float fees;
public:
Book( ) //Function 1
{ fees=1000;
BookCode=1;
strcpy(Bookname,"C++"); }
void display(float C) //Function 2
{ cout<<BookCode<<":"<<Bookname<<":"<<fees<<endl; }
~Book( ) //Function 3
{ cout<<"End of Book Object"<<endl; }
Book (intSC,char S[ ],float F) ; //Function 4
};
Which concept is illustrated by Function3? When is this function called/invoked?
Answer the question after going through the following class.
class Book {
int BookCode ; char Bookname[20];float fees;
public:
Book( ) //Function 1
{ fees=1000;
BookCode=1;
strcpy(Bookname,"C++"); }
void display(float C) //Function 2
{ cout<<BookCode<<":"<<Bookname<<":"<<fees<<endl; }
~Book( ) //Function 3
{ cout<<"End of Book Object"<<endl; }
Book (intSC,char S[ ],float F) ; //Function 4
};
What is the use of Function 3?
Answer the question after going through the following class.
class Book {
int BookCode ; char Bookname[20];float fees;
public:
Book( ) //Function 1
{ fees=1000;
BookCode=1;
strcpy(Bookname,"C++"); }
void display(float C) //Function 2
{ cout<<BookCode<<":"<<Bookname<<":"<<fees<<endl; }
~Book( ) //Function 3
{ cout<<"End of Book Object"<<endl; }
Book (intSC,char S[ ],float F) ; //Function 4
};
Write the statements in main to invoke function1 and function2?
Answer the question after going through the following class.
class Book {
int BookCode ; char Bookname[20];float fees;
public:
Book( ) //Function 1
{ fees=1000;
BookCode=1;
strcpy(Bookname,"C++"); }
void display(float C) //Function 2
{ cout<<BookCode<<":"<<Bookname<<":"<<fees<<endl; }
~Book( ) //Function 3
{ cout<<"End of Book Object"<<endl; }
Book (intSC,char S[ ],float F) ; //Function 4
};
Write the definition for Function4.
Write the output of the following program.
include<iostream>
using namespace std;
class Seminar
{ int Time;
public:
Seminar()
{ Time=30;cout<<"Seminar starts now"<<endl; } void Lecture()
cout<<"Lectures in the seminar on"<<endl; } Seminar(int Duration)
{ Time=Duration;cout<<"Welcome to Seminar "<<endl; }
Seminar(Seminar &D)
{ Time=D.Time;cout<<"Recap of Previous Seminar Content "<<endl;}
~Seminar()
{cout<<"Vote of thanks"<<endl; } };
int main()
{ Seminar s1,s2(2),s3(s2);
s1.Lecture();
return 0;
}
Answer the question based on the following program.
#include<iostream>
#include<string.h>
using namespace std;
class comp {
public:
char s[10];
void getstring(char str[10])
{ strcpy(s,str); }
void operator==(comp);
};
void comp::operator==(comp ob)
{ if(strcmp(s,ob.s)==0)
cout<<"\nStrings are Equal";
else
cout<<"\nStrings are not Equal"; }
int main()
{ comp ob, ob1;
char string1[10], string2[10];
cout<<"Enter First String:";
cin>>string1;
ob.getstring(string1);
cout<<"\nEnter Second String:";
cin>>string2;
ob1.getstring(string2);
ob==ob1;
return 0; }
Mention the objects which will have the scope till the end of the program.
Answer the question based on the following program.
#include<iostream>
#include<string.h>
using namespace std;
class comp {
public:
char s[10];
void getstring(char str[10])
{ strcpy(s,str); }
void operator==(comp);
};
void comp::operator==(comp ob)
{ if(strcmp(s,ob.s)==0)
cout<<"\nStrings are Equal";
else
cout<<"\nStrings are not Equal"; }
int main()
{ comp ob, ob1;
char string1[10], string2[10];
cout<<"Enter First String:";
cin>>string1;
ob.getstring(string1);
cout<<"\nEnter Second String:";
cin>>string2;
ob1.getstring(string2);
ob==ob1;
return 0; }
Name the object which gets destroyed in between the program.
Answer the question based on the following program.
#include<iostream>
#include<string.h>
using namespace std;
class comp {
public:
char s[10];
void getstring(char str[10])
{ strcpy(s,str); }
void operator==(comp);
};
void comp::operator==(comp ob)
{ if(strcmp(s,ob.s)==0)
cout<<"\nStrings are Equal";
else
cout<<"\nStrings are not Equal"; }
int main()
{ comp ob, ob1;
char string1[10], string2[10];
cout<<"Enter First String:";
cin>>string1;
ob.getstring(string1);
cout<<"\nEnter Second String:";
cin>>string2;
ob1.getstring(string2);
ob==ob1;
return 0; }
Name the operator which is overloaded and write the statement that invokes it.
Answer the question based on the following program.
#include<iostream>
#include<string.h>
using namespace std;
class comp {
public:
char s[10];
void getstring(char str[10])
{ strcpy(s,str); }
void operator==(comp);
};
void comp::operator==(comp ob)
{ if(strcmp(s,ob.s)==0)
cout<<"\nStrings are Equal";
else
cout<<"\nStrings are not Equal"; }
int main()
{ comp ob, ob1;
char string1[10], string2[10];
cout<<"Enter First String:";
cin>>string1;
ob.getstring(string1);
cout<<"\nEnter Second String:";
cin>>string2;
ob1.getstring(string2);
ob==ob1;
return 0; }
Write out the prototype of the overloaded member function.
Answer the question based on the following program.
#include<iostream>
#include<string.h>
using namespace std;
class comp {
public:
char s[10];
void getstring(char str[10])
{ strcpy(s,str); }
void operator==(comp);
};
void comp::operator==(comp ob)
{ if(strcmp(s,ob.s)==0)
cout<<"\nStrings are Equal";
else
cout<<"\nStrings are not Equal"; }
int main()
{ comp ob, ob1;
char string1[10], string2[10];
cout<<"Enter First String:";
cin>>string1;
ob.getstring(string1);
cout<<"\nEnter Second String:";
cin>>string2;
ob1.getstring(string2);
ob==ob1;
return 0; }
What types of operands are used for the overloaded operator?
Answer the question based on the following program.
#include<iostream>
#include<string.h>
using namespace std;
class comp {
public:
char s[10];
void getstring(char str[10])
{ strcpy(s,str); }
void operator==(comp);
};
void comp::operator==(comp ob)
{ if(strcmp(s,ob.s)==0)
cout<<"\nStrings are Equal";
else
cout<<"\nStrings are not Equal"; }
int main()
{ comp ob, ob1;
char string1[10], string2[10];
cout<<"Enter First String:";
cin>>string1;
ob.getstring(string1);
cout<<"\nEnter Second String:";
cin>>string2;
ob1.getstring(string2);
ob==ob1;
return 0; }
Which constructor will get executed in the above program? Write the output of the program?
Tamil Nadu Board Samacheer Kalvi solutions for Class 11th Computer Science Answers Guide Chapter 15 Polymorphism CASE STUDY [Page 259]
Suppose you have a Kitty Bank with an initial amount of Rs500 and you have to add some more amount to it. Create a class 'Deposit' with a data member named 'amount' with an initial value of Rs500. Now make three constructors of this class as follows:
1. without any parameter - no amount will be added to the Kitty Bank
2. has a parameter which is the amount that will be added to the Kitty Bank
3. whenever an amount is added an additional equal amount will be deposited automatically.
Create an object of the 'Deposit’ and display the final amount in the Kitty Bank.
Solutions for Chapter 15: Polymorphism

Tamil Nadu Board Samacheer Kalvi solutions for Class 11th Computer Science Answers Guide chapter 15 - Polymorphism
Shaalaa.com has the Tamil Nadu Board of Secondary Education Mathematics Class 11th Computer Science Answers Guide Tamil Nadu Board of Secondary Education solutions in a manner that help students grasp basic concepts better and faster. The detailed, step-by-step solutions will help you understand the concepts better and clarify any confusion. Tamil Nadu Board Samacheer Kalvi solutions for Mathematics Class 11th Computer Science Answers Guide Tamil Nadu Board of Secondary Education 15 (Polymorphism) include all questions with answers and detailed explanations. This will clear students' doubts about questions and improve their application skills while preparing for board exams.
Further, we at Shaalaa.com provide such solutions so students can prepare for written exams. Tamil Nadu Board Samacheer Kalvi textbook solutions can be a core help for self-study and provide excellent self-help guidance for students.
Concepts covered in Class 11th Computer Science Answers Guide chapter 15 Polymorphism are Introduction to Polymorphism, Function Overloading, Overloaded Constructors, Operator Overloading.
Using Tamil Nadu Board Samacheer Kalvi Class 11th Computer Science Answers Guide solutions Polymorphism exercise by students is an easy way to prepare for the exams, as they involve solutions arranged chapter-wise and also page-wise. The questions involved in Tamil Nadu Board Samacheer Kalvi Solutions are essential questions that can be asked in the final exam. Maximum Tamil Nadu Board of Secondary Education Class 11th Computer Science Answers Guide students prefer Tamil Nadu Board Samacheer Kalvi Textbook Solutions to score more in exams.
Get the free view of Chapter 15, Polymorphism Class 11th Computer Science Answers Guide additional questions for Mathematics Class 11th Computer Science Answers Guide Tamil Nadu Board of Secondary Education, and you can use Shaalaa.com to keep it handy for your exam preparation.