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: 13/05/2022
QB365 provides detailed and simple solution for every book back questions in class 11 Computer Science subject.It will helps to get more idea about question pattern in every book back questions with solution.
latest Book back QuestionsDownload 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.
Explain the different methods of creating an object in C++.
2.
Write the output of the following
#include < iostream >
#include < stdio.h >
using namespace std;
class sub
{
int day, subno;
public :
sub(int,int); // prototype
void printsub()
{ cout << " subject number : " <<
cout << " Days : " << day;
};
sub::sub(int d=150,int sn=12)
{ cout << endl << "Constructing the object" << endl;
day=d;
sub no=sn;
}
class stud
{
int rno;
float marks;
public:
stud( )
{ cout << "Constructing the object of students" << endl;
rno=0;
marks=0.0;
}
void getval()
{
cout << "Enter the roll number and the marks secured ";
cin >> rno >> marks;
}
void printdet()
{ cout << "Roll no : " << rno << "Marks:" << marks << endl;
};
class addmission {
sub obj;
stud objone;
float fees;
public :
add mission ( )
{ cout<< "Constructing the object of admission " <<
fees=0.0;
}
void printdet ( )
{ objone.printdet ( );
obj.printsub( );
cout << "fees :" << endl;
};
int main ( )
{system("cls");
addmission adm;
cout << endl << "Back in main( )";
return 0; }
3.
Define a class RESORT with the following description in C++ :
Private members:
Rno // Data member to store room number
Name //Data member to store user name
Charges //Data member to store per day charge
Days //Data member to store the number of days
Compute ( ) /* A function to calculate total amount as Days * Charges and if the total amount exceeds 11000 then total amount is 1.02 * Days *Charges */
Public member:
GetInfo( ) /* Function to Read the information like name, room no, charges and days */
DispInfo ( ) /* Function to display all entered details and total amount calculated using COMPUTE function */
4.
Mention the differences between constructor and destructor.
5.
Explain nested class with example.
1.
Objects can be created in two methods:
i. Global object,
ii. Local object
(i) Global Object:
If an object is declared outside all the function bodies or by placing their names immediately after the closing brace of the class declaration then it is called as Global object. These objects can be used by any function in the program.
(ii) Local Object:
If an object is declared with in a function then it is called local object. It cannot be accessed from outside the function.
2.
Constructing the object
Constructing the object of students
Constructing the object of admission
Back in main ( )
3.
#include < iostream.h >
#include < conio.h >
#include < stdio.h >
class RESORT
{
Private
int Rno.;
char name [20];
float charges;
int days;
float compute();
Public:
void getinfo();
void dispinfo();
}
void RESORT:: getinfo()
{
cout <<"Enter Registration number:";
cin >> Rno.;
cout << "\n Enter name:";
gets(name);
cout << "\n Enter per day charges:";
cin >> charges;
cout << "\n Enter number of days:";
cin >> days;
}
void RESORT:: dispinfo()
{
cout<<"\n1. Registration number:" << Rno << "\n2. Name:";
puts(name);
cout << "\n3. charges per day:" << charges << "\n4. Number of days:" <<
}
long float;
float amount=charges * days;
if(amount> 11000)
amount= 1.02*days *charges;
return amount;
}
RESORT obj;
void main()
{
clrscr ( );
obj.getinfo ( );
obj.disprinfo ( );
getch; return 0;
}
4.
| Constructor | Destructor |
|---|---|
| The name of the constructor must be same as that of the class. | The destructor has the same name as that of the class prefixed by the tilde character '~'.. |
| No return type can be specified for constructor. | It has no return type. |
| A constructor can have parameter list. | The destructor cannot have arguments |
| The constructor function can be overloaded. | Destructors cannot be overloaded i.e., there can be only one destructor in a class. |
| They cannot be inherited but a derived class can call the base class constructor. | They cannot be inherited. |
| The compiler generates a constructor, in the absence of a user defined constructor. | In the absence of user defined destructor, it is generated by the compiler. |
5.
Nested class: When one class become the member of another class then it is called Nested class and the relationship is called containership.
Classes can be nested in two ways.
1. By defining a class within another class
2. By declaring an object of a class as a member to another class.
Defining a class with in another: When a class is declared with in another class, the inner class is called as Nested class (ie the inner class) and the outer class is known as Enclosing class. Nested class can be defined in private as well as in the public section of the Enclosing class.
C++ program to illustrate the nested class
#include < iostream >
using namespace std;
class enclose
{
private:
int x;
class nest
{
private:
int y;
public:
int z;
void prn ( )
{
y=3;z=2;
cout << "\n The product of'" << y << '*' << z << "=" << y*z << "\n";
}
}; //inner class definition over
nest n1;
public:
nest n2;
void square ( )
{
n2.prn ( ); //inner class member function is called by its object
x=2;
n2.z=4;
cout << "\n The product of " << n2.z << '*' << n2.
z << "=" << n2.z*n2.z << "\n";
cout << "\n The product of " << x << '*' << x << "=+ << x*x;
}
}; //outer class definition over
int main ( )
{
enclose e;
e.square ( ); // outer class member function is called
}
Output:
The product of 3*2=6
The product of 4*4=16
The product of 2*2=4
In the above program the inner class nest is defined inside the outer class enclose. nest is accessed by enclose by creating an objec of nest.
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