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: 14/10/2019
Arrays and Structures
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 user defined function to return the structure after accepting value through keyboard. The structure definition is as follows
struct Item{int item no;float price;};
2.
What is called anonymous structure. Give an example
3.
For the following structure definition write the user defined function to
accept data through keyboard.
struct date{ int dd,mm,yy};
struct item { int item id;char name[10];float price;date date_manif;}
4.
How to access members of a structure? Give example.
5.
What is the difference among the following two programs?
(a) #include < iostream >
struct point { double x; double y; };
int main() {
struct point test;
test.x = .25; test.y = .75;
cout<
}
(b) #include < iostream >
struct { double x; double y; } Point;
int main(void) {
Point test={.25,.75};
return 0;
}
6.
Rewrite the following program after removing the syntactical error(s),if any.
Underline each correction.
struct movie
{
charm_name[10];
charm_lang[10];
float ticket cost = 50;};
Movie;
void main()
{
gets(m_name);
cin>>m_lang;
return 0;
}
7.
What is called nested structure. Give example
8.
How will you pass a structure to a function?
9.
Write a C++ program to accept and print your name?
10.
Define an Array? What are the types?
1.
Item readData (Item t)
{
cout << "Enter Item number'' << endl;
cin >> t.itemno,
cout << "Enter price'' << endl:
cin >> t.price;
return t;
}
2.
A structure without a name/tag is called anonymous structure.
struct
{
long rollno;
int age;
float weight;
} student;
The student can be referred as reference name to the above structure and the elements can be accessed like student.rollno, student.age and student.weight .
3.
readData( date d)
void
{
cout << "Enter day" << endl;
cin >> d.dd;
cout << "Enter month" << endl;
cin>>d.mm:
cout << "Enter year" << endl;
cin >> d.yy;
}
void readData(item t)
{
cout << "Enter item id'' << endl;
cin >> t.itemid;
cout << "Enter item name'' << endl:
cin >> t.name;
cout << "Ente item price'' << endl;
cin >> t.price;
cout << "Enter date of manufacuter'' << endl;
cin >> t.date;
}
4.
Once objects of a structure type are declared, their members can be accessed directly. The syntax for that is using a dot(.) between the object name and the member name.
Example: student.name;
if the members are a pointer type, then' is used to access the members.
Let name be a character pointer in student like char*name
It can be accessed student → name.
struct
{
long rolino;
int age,
float weight;
student;
}
The student can be referred as reference name to the above structure and the elements can be accessed like student.roll no, student.age, and student.weight.
5.
(a) output
1. 0.250.73
2. Named structure point is created
(b) 1. No output; Error
2. Anonymous structure point is created.
6.
struct movie
{
char m_name[10];
char m_lang[10];
float ticket_cost = 50;
} Movie; .
int main()
{
get(Movie _m_name);
cin>>Movie _m_lang;
return 0;
}
7.
The structure declared within another structure is called a nested structure
Example:
struct Student
{
int age;
float height, weight;
struct dob
{
int date;
char month[4];
int year;
};
}sl;
8.
(i) A structure variable can be passed to a function in a similar way of passing any argument that is of built-in data type.
(ii) if the structure itself is an argument, then it is called "call by value".
(iii) If the reference of the structure is passed as an argument then it is called, "call by reference".
9.
#include< iostream >
using namespace std;
int main()
{
char name[20];
cout << "Enter your name'' << endl;
cin.get(name,20);
cout << "Your name:" << name«endl;
return 0;
}
output:
Enter your name : xxxx xxxx
Your name: xxxx xxxx
10.
"An array is a collection of variables of the same type that are referenced by a common name".
An array is also a derived datatype in C++.
There are different types of arrays used in C++. They are:
1. One-dimensional arrays
2. Two-dimensional arrays
3. Multi-dimensional arrays
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