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: 29/06/2021
QB365 provides detailed and simple solution for every Creative Questions in class 11 Computer Science Subject. It will helps to get more idea about question pattern in every Creative 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.
Explain memory representation of 2-D array.
2.
Write C++ program to find transpose of a matrix.
3.
Write a C++ program to display the contents of the following structure definition.
4.
Write a C++ program to find whether a given string is a palindrome or not.
5.
Write a C++ profram to input 10 values in an array and count the number of odd and even numbers.
1.
Normally, the two-dimensional array can be viewed as a matrix. The conceptual view of a 2-D array is shown below:
int A[4][3];
| A[0][0] | A[0][1] | A[0][2] |
| A[1][0] | A[1][1] | A[1][2] |
| A[2][0] | A[2][1] | A[2][2] |
| A[3][0] | A[3][1] | A[3][2] |
In the above example, the 2-D array name A has 4 rows and 3 columns.
Like one-dimensional, the 2-D array elements are stored in continuous memory.
There are two types of 2-D array memory representations. They are:
1. Row-Major order
2. Column-Major order
For example
int A[4)[3]={
{ 8,6,5},
{ 2,1,9},
{3,6,4},
{4,3,2},
2.
C++ Program to find transpose of a matrix
#include< iostream >
using namespace std;
int main( )
{
int a[10][10], trans[10][10], r, c, i,j;
cout < < "Enter rows and columns of matrix:";
cin > > r > > c;
cout < < endl < < "Enter elements of matrix:" < < endl;
for (i = 0; i < r; ++i)
for (j = 0; j < c; ++j)
{
cout < < "Enter elements a" < < i + 1 < < j + 1 < < ":";
cin > > a[i][j];
}
cout« endl « "Entered matrix:"< < endl;
for (i = 0; i < r; ++i) .
for (j = 0;j < c; ++j)
}
cout-c " " < < a[i][j];
if (j = = c - 1)
cout < < endl < < endl;
}
for (i = 0; i < r; ++i)
for (j = 0;j < c; ++j)
{
trans[j][i] = a[i][j];
}
cout < < endl < < "Transpose of matrix:" < < endl;
for (i = 0; i < c; ++i)
for (j = 0; j < r; ++j)
{
cout-: " "< < trans[i][j];
if (j = = r-1)
cout < < endl < < endl;
}
return 0;
}
Output:
Enter rows and columns of matrix:
2 3
Enter elements of matrix
Enter elements of a11 = 1
Enter elements of a12 = 2
Enter elements of a13 = 9
Enter elements of a21 = 0
Enter elements of a22 = 4
Enter elements of a23 = 7
Entered matrix:
1 2 9
0 4 7
Transpose of matrix:
1 0
2 4
9 7
3.
Struct Employee { char name[50]; int age; float salary};
#include < iostream >
using namespace std;
struct Employee
{
char name[50];
int age;
float salary;
};
int maim)
{
Employee e1;
cout' << "Enter Full name: ";
cin >> e1.name;
cout << ccend1 << x'Bnter age: ";
cin >> e1.age;
cout << ccend1' << "Enter salary: ";
cin >> e1.salary;
cout << "\nDisplaying Information." .
<< end1;
,cout << "Name: n << e1.name << end1;
cout << "Age: " << e1.age << end1:
cout << "Salary: " << e1.salary;
return 0;
}
Output:
Enter Full name: Ezhil
Enter age: 27
Enter salary: 40000.00
Displaying Iriformation.
Name: Ezhil
Age: 27
Salary: 40000.00
4.
#include < iostream >
using namespace std;
int main()
{
int i, j len, flag = 1;
char a [20];
cout << "Enter a string:";
cin >> a;
for(len=O;a[len] !='\O';++len)
for(!=OJ=len -I ;i < len/2;++i,--j)
{
if(a[j]!=a[i])
flag=O;
}
iflflag 1)
cout << "\n The String is palmdrome";
else
cout << "\n The String is not palindrome";
return 0;
}
Output:
Enter a string: madam
The String is a palindrome.
5.
#include < iostream >
using namespace std;
int main()
{
int num[10], even=0, odd=0;
for(int i=0; i < 10; i++)
{
cout << "\nEnter Mark' < xi+ I << "=";
cin >> marks[i];
if (num[i] % 2 =0
++even;
else
++odd;
}
cout << "\n There are" << even << "Even Numbers";
cout << "\n There are" << odd << "Odd Numbers";
}
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