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: 09/06/2021
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.
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 the output of the following C++ program code :
#include
using namespace std;
class Calci
{
char Grade;
int Bonus;
public:
Calci() {Grade='E'; Bonus=0;} //ascii value of A=65
void Down(int G)
{
Grade-=G;
}
void Up(int G)
{
Grade+=G;
Bonus++;
}
void Show()
{
cout<< Grade << "#" << Bonus << endl;
};
int main()
{
Calci c;
c.Down(3);
c.Show();
c.Up(7);
c.Show();
c.Down(2);
c.Show( );
return 0;
}
2.
Given the following C++ code, answer the questions (i) & (ii).
class TestMeOut
{
public:
~TestMeOut() //Function 1
{cout<<“Leaving the exam hall”<<endl;}
TestMeOut() //Function 2
{cout<<“Appearing for exam”<<endl;}
void MyWork() //Function 3
{cout<<“Answering”<<endl;} };
(i) In Object Oriented Programming, what is Function 1 referred as and when doesit get invoked / called ?
(ii) In Object Oriented Programming, what is Function 2 referred as and when doesit get invoked / called ?
3.
What are advantages of declaring constructors and destructor under public accessability?
4.
Write with example how will you dynamically initialize objects?
5.
Rewrite the following program after removing the syntax errors if any and underline the errors:
#include
$include
class mystud
{ int studid =1001;
char name[20];
public
mystud( ) { }
void register ( )
{cin>>stdid; gets(name); }
void display ( )
{cout<<studid<<”: “<<name<<endl;}
}
int main( )
{ mystud MS;
register.MS( );
MS.display( );
}
1.
B # 0
I # 1
G # 1
2.
(i) Function 1 is the 'destructor'.
It is executed automatically when an object of the class TestMeOut goes out of scope.
(ii) Function 2 is called default 'constructor'.
It is executed automatically when instance of the class TestMeOut comes into scope or when objects of the class TestMeOut are created.
3.
When constructor and destructor are declared under public:
1. we can initialize the object while declaring it.
2. we can explicitly call the constructor.
3. we can overload constructors and therefore use multiple constructors to initialize objects automatically.
4. we can destroy the objects at the end of the class scope automatically (free unused memory).
However, some C++ compilers and Dev C++ do not allow to declare constructor and destructors under private section. So it is better to declare constructor and destructor under public section only.
4.
When the initial values are provided during runtime then it is called dynamic initialization.
Example to illustrate dynamic initialization
#include < iostream >
using namespace std;
class X
{
int n;
float avg;
public;
X(int p,float q)
{
n=p;
avg=q;
}
void disp( )
{
cout << "\n Roll number:-"<< n;
}
};
int main( )
{
int a; float b;
cout<< "\nEnter the Roll number";
cin >> a;
cout << "\nEnter the Average";
cin >> b;
X x(a,b);\\dynamic initialization
x.disp( );
return 0;
}
Output:
Enter the Roll Number 1201
Enter the Average 98.6
Roll number:- 1201
Average:- 98.6
5.
| Given Program | Corrected Program | Corrections |
| #include $include class mystud { int studid =1001; char name[20]; public m ystud( ) { } void register ( ) {cin>>stdid; gets(name); } void display ( ) {cout< int main( ) { mystud MS; register.MS( ); MS.display( ); } |
#include #include using namespace std: class mystud {int studid; public: void register () {cin>>studid;get(name); } {cout< int main() } {mystud MS; MS.register1(); MS.display(); } |
missing line space between class and class name space between int and studid, studid cannot be initialized here : (colon) is missing // register is a keyword-cannot be used as function name // data member is should be studid // wrong syntax & method name |
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