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

Published on: 30/06/2021
QB365 provides detailed and simple solution for every Creative Questions in class 11 Computer Science Subject. It will helps to get more idea about question pattern in every Creative questions with solution.
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.
Write a program to find the area of a rectangle using constructor overloading in a class.
2.
Write the coding for the following output using constructor overloading.
Output:
Constructor without parameters ...
Parameterized constructor ...
Copy Constructor ....
Enter data ... 20 30
Object a:
The numbers are ..20 30
Thesum of the numbers are .. 50
Object b:
The numbers are..10 20
The sum of the numbers are .. 30
Object c..
The numbers are ..10 20
The sum of the numbers are .. 30
3.
Give the output of the following program.
4.
Write a C++ program to concatenate two strings using operator overloading.
5.
Write a c++ program to find Addition and Subtraction of complex number using operator overloading.
1.
#include < iostream >
using namespace std;
class Area
{
int 1, b, a;
public:
area( );
area(int);
area(int, int);
area(area&);
void calculate ( )
};
area: .area ( )
{
cout < < "\n Enter the value of length and breath";
cin > > 1 > > b;
cout < < "\n\n non parameterized constructor";
}
area :: area (int c)
{
1=b=c;
cout < < "\n\n non parameterized constructor with one argument";
}
area ::area(int 11, int b 1)
{
cout < < "\n\n Non parameterized constructor with two argument";
1=11;
b=b1
}
area :: area(area & a)
{
=a1;
1= a.b;
cout < < "\n\n copy constructor";
}
void area::calculate ( )
{
a = 1*b;
cout < < a;
}
int main ( )
{
area obj;
cout < < "\n area of Rectangle is";
obj.calculate ( )
area obj1(2);
cout < < "\n area of Rectangle";
obj 1.calculatet);
area obj2 (2,3);
cout < < "\n area of Rectangle";
obj2.calculatet);
area obj3 (obj2); .
cout < < "\n area of Rectangle";
obj3.calculate ( );
return 0;
}
Output:
Enter the value of length and breadth 10 20
Non parameterized constructor area of Rectangle is 60
Parameterized constructor with one argument area of Rectangle 8
Parameterized constructor with two argument area of Rectangle 10
copy constructor area of Rectangle 10
2.
#include< iostream >
using namespace std;
class add
{
int num1, num2, sum;
public:
add ( )
{
cout < < "\n Constructor without parameters ...";
num1=0;
num2=0;
sum=0;
}
add (int s1, int s2)
{
cout < < "\n Parameterized constructor ...";
num1= s1;
num2=s2;
sum=0;
}
add (add &a)
{
cout < < "\n Copy Constructor ...";
num1= a.num1;
num2=a.num2;
sum=0;
}
void getdata ( )
{
cout < < "\n Enter data ...";'
cin > > num 1 > > num2;
}
void addition ( )
{
sum=num1+num2;
}
void putdata ( )
{
cout < < "\n The numbers are ..";
cout< <num 1 < < '\t' < < num2;
cout < < "\n The sum of the numbersare .."< < sum;
}
};
int main ( )
{
add a, b (10, 20) , c(b);
a.getdata ( );
a.addition( );
b.addition( );
c.addition( );
cout< < "\n Object a:";
a.putdatat);
cout < < "\n Object b :";
b.putdata( );
cout < < "\n Object c..";
c.putdata( );
return 0;
}
3.
#include < bit sf std C++.h >
using namespace std;
class Greeks
{
Public:
void func(int x)
{
cout < < "value of';
}
void func(double x)
{
cout < < "value of';
}
void func(int X, int)
{
cout < < "value of';
}
};
int inain ( )
{
Greeks obj 1;
obj 1.func(7);
obj 1.func(9 .132);
obj 1.func(85, 64);
return 0;
}
Output
value of x is 7
value of x is 9.132
value of x and y is 85, 64
4.
#include< string.h >
#include< iostram >
using namespace std;
class strings
{
public:
char s[20];
void getstring( char str[])
{
strcpy(s,str);
}
void operator+(strings);
};
void strings::operator+(strings ob)
{
strcat(s,ob.s);
cout << "\nConcatnated String is:"<< s;
}
intmain()
{
strings ob 1, ob2;
char string 1 [10], string2[10];
cout << "\nEnter First String:";
cin>>string 1 ;
ob1.getstring(string 1);
cout << "\nEnter Second String:";
cin>>sting 2;
ob2.getstring(string2);
//Calling + operator to Join/Concatenate strings
obl +ob2;
return 0;
}
Output:
Enter First String:COMPUTER
Enter Second String:SCIENCE
Concatenated String is:COMPUTERSCIENCE
5.
//Complex number addition and subtraction
#include < iostream >
using namespace std;
class complex
{
int real, img;
public;
void readt)
{
cout << "\nEnter the REAL PART :";
cin >> real;
cout << "\nEnter the IMAGINARY PART :";
cin >> img;
}
complex operator +( complex c2)
{
complex c3;
c3.real=real-c2.real;
c3 .img=img-c2.img;
return c3;
}
void display()
{
cout << real << "+" << img << "i";
};
int maim)
{
complex c 1,c2,c3;
int choice, cout;
do
{
cout << "\t\tCOMPLEX NUMBERS\n\n1.
ADDITION\n\n2.SUBTRACTION\n\n";
cout << "\nEnter your choice:";
cin>>choice;
if(choice== 1llchoice=2)
{
cout << "\n\nEnter the First Complex Number";
c1.read();
cout << "\n\nEnter the Second Complex
Number";
c2.readO;
}
switch( choice)
{
case 1 :c3=c1 +c2; //binary + overloaded
cout << "\n\nSUM .= ";
c3.dispaly();
break;
case 2 :c3=cl-c2; //binary -overloaded
cout << "\n\nResult = ";
c3.display();
break;
default :cout << "\n\nUndefined Choice";
}
cout«"\n\nDo You Want to Continue?
(1-Y,0-N)";
cin>>cout;
}while(cout==1);
return 0;
}
11th Standard Syllabus & Materials
11th Standard
TN 11th Tamil பீடு பெற நில் - செய்யுள் - காவடிச்சிந்து Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil பீடு பெற நில் - உரைநடை - மலை இடப்பெயர்கள் : ஓர் ஆய்வு Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil மாமழை போற்றுதும் - துணைப்பாடம் - யானை டாக்டர் Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil மாமழை போற்றுதும் - செய்யுள் - ஐங்குறுநூறு Important Questions And Answers Study Material - QB365 Set A
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