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: 07/09/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.
What are the different ways to initialize the structure members?
2.
Why for passing a structure to a function call by reference is advisable to us?
3.
What is the syntax to declare two – dimensional array.
4.
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;
}
5.
What is called nested structure. Give example
6.
Define an Array? What are the types?
7.
Explain array of structures with example
8.
How will you pass two dimensional array to a function explain with example.
9.
10.
Structure definition is terminated by
}
;
::
(:)
11.
The data elements in the structure are also known as _________.
objects
members
data
records
12.
Array subscripts is always starts with which number?
-1
0
2
3
13.
Which of the following is the collection of variables of the same type that an referenced by a common name?
int
float
Array
class
1.
Values can be assigned to structure elements similar to assigning values to variables. Values can be assigned directly as similar to assigning values to Arrays.
2.
In this method of passing the structures to functions, the address of a structure variable /object is passed to the function using address of (&) operator. So any change made to the contents of structure variable inside the function are reflected back to the calling function.
3.
The declaration of a 2-D array is data-type array_name[row-size][col-size];
In the above declaration, data-type refers to any valid C++ data-type, array_name refers to the name of the 2-D array, row-size refers to the number of rows and col-size refers to the number of columns in the 2-D array.
4.
(a) output
1. 0.250.73
2. Named structure point is created
(b) 1. No output; Error
2. Anonymous structure point is created.
5.
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;
6.
"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
7.
An array of structures is declared in the same way as declaring and array with built-in data types like int or char. A class may contain many students. So, the definition of structure for one student can also be extended to all the students. If the class has 20 students, then 20 individual structures are required. For this purpose, an array of structures can be used
The following program read the details of 20 students and prints the same.
#include< iostream >
using namespace std;
struct Student
{
int age;
float height, weight;
char name[30];
};
void main()
{
Student std[20];
int i;
cout << "Enter the details for 20 students" << endl;
for(i=0;i<20;i++ )
cout << " Enter the details of student'' << i+ 1<< endl;
cout << " Enter the age:"<< endl;
cin >> std[i].age;
cout << "Enter the height:" << endl;
cin >> std[i].height;
cout << "Enter the weight" << endl;
cin >> std[i].weight;
}
cout << "The values entered for Age, height and weight are''<
cout << "Student'' << i+ 1<< "\t" << std[i].age << "\
cout << "std[i].height << "\t" << std[i].weight;
}
8.
In C++, arrays can be passed to a function as an argument. To pass an array to a function in C++, the function needs the array name as an arugment. Passing a two-dimensional array to a function a program to display marks of 5 students by passing one dimensional array to a function
# include< iostream >
using namespace std;
void display (in m[5]);
int main()
{
int marks [5]= {88, 76, 90, 61, 69};
display(marks);
return 0;
}
void display (int m[5])
{
cout << "\n Display Marksr:" << endl;
for(int i=0; i<5; i++)
{
cout << "Student'< }
}
Output:
Display Marks:
Student 1: 88
Student 2: 76
Student 3: 90
Student 4: 61
Student 5: 69
9.
(d)
10.
(b)
;
11.
(b)
members
12.
(b)
0
13.
(c)
Array
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