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.
Answer the questions 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;
}
(i) Mention the objects which will have the scope till the end of the program.
(ii) Name the object which gets destroyed in between the program
(iii) Name the operator which is over loaded and write the statement that invokes it.
(iv) Write out the prototype of the overloaded member function
(v) What types of operands are used for the overloaded operator?
(vi) Which constructor will get executed? Write the output of the program.
2.
3.
Write the output of the following program
include < iostream >
using namespace std;
class Seminar
{
int Time;
public:
Seminar()
{
Time=30;cout << "Seminar starts now"<
void Lecture()
{
cout << "Lectures in the seminar on"<
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"<
};
int main()
{
Seminar s1,s2(2),s3(s2);
s1.Lecture();
return 0;
}
4.
Answer the question (i) to (v) after going through the following class.
classBook
{
intBookCode ; 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; }
{ cout<<"End of Book Object"<<endl; }
Book (intSC,char S[ ],float F) ; //Function 4
};
(i) In the above program, what are Function 1 and Function 4 combined together referred as?
(ii) Which concept is illustrated by Function3? When is this function called/ invoked?
(iii) What is the use of Function3?
(iv) Write the statements in main to invoke function1 and function2
(v) Write the definition for Function4.
5.
What are the rules for operator overloading?
1.
(i) Objects: ob and obl of main ()
(ii) object ob of void operator==(comp ob);
(iii) Overloaded operator: ===
Statement that invokes: ob == obl;
(iv) void operator==(comp ob):
(v) operands used are the objects of the class comp
(vi) The default constructor generated by the compiler will be executed.[comp();]
| Output 1 | Output 2 |
| Enter first string: hello Enter second string: hello String are equal |
Enter first string: hello Enter second string: fine String are not equal. |
2.
3.
Output
Seminar starts now
Welcome to seminar
Recap of previous seminar content
Lectures in the seminar on
Vote of thanks
Vote of thanks
Vote of thanks
4.
(i) Constructor overloading (function 1 and function 4 are constructors with different signatures in the class book)
(ii) Function 3 is destructor of the class. Function 3 is executed when the object of the class book goes out of scope.
(iii) Function 3 is destructor of the class.
1. Destructor (function3) will free resources if any that the object may have acquired during its lifetime
2. Destructor function removes the memory of an object which was allocated by the constructor at the time of creating an object. Thus frees the unused memory.
(iv) book b;
b.display (4.5);
(v) Book: :Book (int sc.char.s[], float, F) // Function 4
{
Book Code SC
strcpy (Book name, S);
fees-F;
}
5.
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.
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