11th Standard Syllabus & Materials
11th Standard
Tamilnadu 11th Standard Tamil மொழி கலை -செய்யுள் - ஒவ்வொரு புல்லையும் Important Questions And Answers Study Material - QB365
NEW11th Standard
Tamilnadu 11th Standard Tamil கேடில் விழுச்செல்வம் - உரைநடை - தமிழகக் கல்வி வரலாறு Important Questions And Answers Study Material - QB365
NEW11th Standard
Tamilnadu 11th Standard Tamil பீடு பெற நில் - இலக்கணம் - பகுபத உறுப்புகள் Important Questions And Answers Study Material - QB365
NEW11th Standard
Tamilnadu 11th Standard Tamil பீடு பெற நில் - செய்யுள் - குறுந்தொகை Important Questions And Answers Study Material - QB365 Set B
NEW11th Standard
Tamilnadu 11th Standard Tamil பீடு பெற நில் - செய்யுள் - குறுந்தொகை Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
Tamilnadu 11th Standard Tamil பீடு பெற நில் - செய்யுள் - காவடிச்சிந்து Important Questions And Answers Study Material - QB365 Set B

Published on: 12/10/2019
Polymorphism
Download Tamil Nadu 11th Standard Computer Science question papers, model tests, one-mark questions, important questions, and public exam papers in PDF format. Free study materials and answer keys for TN State Board students.
Questions + Answers key
Take MCQ Computer Science Test

1.
Give the syntax for operator overloading.
2.
What is overload resolution?
3.
What is functions signature?
4.
Define polymorphism.
5.
What is overloaded function?
6.
What is the use of overloading a function?
7.
Does the return type of a function help in overloading a function?
8.
9.
What is function overloading?
10.
What is function signature?
11.
Write a short note on operator overloading.
12.
Discuss the benefits of constructor overloading?
13.
What is operator overloading? Give some example of operators which can be overloaded.
14.
What are the rules for function overloading?
15.
16.
What are the rules for operator overloading?
17.
The number and types of a function's parameter are called ________.
overload resolution
overloaded function
function's signature
function's prototype
18.
How many type OS overloading are there in C++?
3
4
only one
2
19.
#include< iostream >
using namespace std;
class Point {
private:
int x, y;
public:
point(int x1,int y1)
{
x=x1;y=y1;
}
void operator+(Point&pt3);
void showO {cout << "x=" << x << " ,y=" << y;}
};
void Point::operator+(point &pt3)
{
x + =pt3.x;
y+=pt3.y;
}
int main ()
{
point ptl(3,2),pt2(5,4);
pt1+pt2;
pt1.show ();
return 0;
}
Which of the following statement invoke operator overloading?
pt1+pt2
Pointpt1(3,2),pt2(5,4)
pt1.showt);
return 0;
20.
Which of the following operator is by default overloaded by the compiler?
*
+
+=
==
21.
Which of the following is 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);
22.
Which of the following reduces the number of comparisons in a program?
Operator overloading
Operations overloading
Function Overloading
Member overloading
23.
1.
ReturnType classname :: Operator Operator Symbol (argument list)
{
\\ Function body
}
Example: Deposit Deposit: : operator + (Deposit d1);
2.
The process of selecting the most appropriate overloaded function or operator is called overload resolution.
3.
The number and types of a function's parameters are called the function's signature.
4.
Polymorphism is the ability of a message or function to be displayed in more than one form.
5.
An overloaded function refers to a function having more than one distinct meaning.
6.
Function overloading is not only implementing polymorphism but also reduces the number of comparisons in a program and makes the program to execute faster. It also helps the programmer by reducing the number of function names to be remembered.
7.
No. The return type of overloaded functions are not considered for overloading same data type.
8.
9.
The ability of the function to process the message or data in more than one form is called as function overloading. In other words function overloading means two or more functions in the same scope share the same name but their parameters are different.
10.
The ability of the function to process the message or data in more than one form is called as function overloading. It implies that two or more functions in the same scope share the same name but their parameters are different. In this situation, the functions that share the same name are said to be overloaded and the process is called function overloading. The number and types of a function's parameters are called the function's signature.
11.
(i) The term operator overloading, refers to giving additional
(ii) Functionality to the normal C++ operators like +,++,-,--,+=,-=,*,<,>. It is also a type of polymorphism in which an operator is overloaded to give user-defined meaning to it.
(iii) For example '+' operator can be overloaded to perform addition on various data types, like for Integer, String( concatenation), etc.
(iv) Almost all operators can be overloaded in C++. However, there are few operators which can not be overloaded.
12.
Function overloading can be applied for constructors, as constructors are special functions of classes. A class can have more than one constructor with different signature. Constructor overloading provides flexibility of creating multiple type of objects for a class.
1. Memory is allocated for the objects.
2. Initialisation for the objects.
13.
The term operator overloading, refers to giving additional functionality to the normal C++ operators like +, ++, -, --, +=, -=, *, <, >.It is also a type of polymorphism in which an operator is overloaded to give user defined meaning to it.
For example ¹+'operator can be overloaded to perform addition on various data types, like for Integer, String (concatenation) etc.
14.
Rules for function overloading:
(i) The overloaded function must differ in the number of its arguments or data types.
(ii) The return type of overloaded functions are not considered for overloading same data type.
(iii) The default arguments of overloaded functions are not considered as part of the parameter list in function overloading
15.
16.
Following are some rules to be followed while implementing operator overloading.
(i) Precedence and Associativity of an operator cannot be changed.
(ii) No new operators can be created, only existing operators can be overloaded.
(iii) Cannot redefine the meaning of an operator's procedure. You cannot change how integers are added. Only additional functions can be to an operator.
(iv) Overloaded operators cannot have default arguments.
(v) When binary operators are overloaded, the left hand object must be an object of the relevant class.
17.
(c)
function's signature
18.
(d)
2
19.
(a)
pt1+pt2
20.
(d)
==
21.
(a)
void fun (intx);
void fun (char ch);
22.
(b)
Operations overloading
23.
(a)
11th Standard Syllabus & Materials
11th Standard
Tamilnadu 11th Standard Tamil பீடு பெற நில் - செய்யுள் - காவடிச்சிந்து Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
Tamilnadu 11th Standard Tamil பீடு பெற நில் - உரைநடை - மலை இடப்பெயர்கள் : ஓர் ஆய்வு Important Questions And Answers Study Material - QB365 Set B
NEW11th Standard
Tamilnadu 11th Standard Tamil பீடு பெற நில் - உரைநடை - மலை இடப்பெயர்கள் : ஓர் ஆய்வு Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
Tamilnadu 11th Standard Tamil மாமழை போற்றுதும் - செய்யுள் - ஐங்குறுநூறு Important Questions And Answers Study Material - QB365 Set B
Tamilnadu Stateboard 11th Standard Subjects

Maths

Commerce

Economics

Biology

Business Maths and Statistics

Accountancy

Computer Science

Physics

Chemistry

Maths

Biology

Economics

Physics

Chemistry

History

Business Maths and Statistics

Computer Science

Accountancy

Computer Applications

History

Computer Technology

Commerce

Computer Applications

Computer Technology

Tamil

English

French
Tamilnadu Stateboard Standards