Tamil Nadu Board 11th Standard Computer science - Chapter 12: Book Back Answers and Solutions
This post covers the book back answers and solutions for Chapter 12 – Computer science from the Tamil Nadu State Board 11th Standard Computer science textbook. These detailed answers have been carefully prepared by our expert teachers at KalviTips.com.
We have explained each answer in a simple, easy-to-understand format, highlighting important points step by step under the relevant subtopics. Students are advised to read and memorize these subtopics thoroughly. Once you understand the main concepts, you’ll be able to connect other related points with real-life examples and confidently present them in your tests and exams.
By going through this material, you’ll gain a strong understanding of Computer science Chapter 12 along with the corresponding book back questions and answers (PDF format).
Question Types Covered:
- 1 Mark Questions: Choose the correct answer, Fill in the blanks, Identify the correct statement, Match the following
- 2 Mark Questions: Answer briefly
- 3, 4, and 5 Mark Questions: Answer in detail
All answers are presented in a clear and student-friendly manner, focusing on key points to help you score full marks.
All the best, Class 11 students! Prepare well and aim for top scores. Thank you!
இயல் 12 :அணிகள் மற்றும் கட்டுருக்கள்
I.சரியான விடையைத் தேர்ந்துதேடுத்து எழுதுக
அ) int
ஆ) float
இ) Array
ஈ) class
விடைகுறிப்பு :
இ) Array
2. int age[]={6,90,20,18,2}; இந்த அணியில் எத்தனை உறுப்புகள் உள்ளன?
அ) 2
ஆ) 5
இ) 6
ஈ) 4
விடைகுறிப்பு :
3. cin>>n[3]; இந்த கூற்று எந்த உறுப்பில் மதிப்பை உள்ளீடும்?
அ) 2
ஆ) 3
இ) 4
ஈ) 5
விடைகுறிப்பு :
4. சரங்கள் தானமைவாக இவற்றுள் எந்த குறியுருவுடன் முடிவடையும்?
அ) \0
ஆ) \t
இ) \n
ஈ) \b
விடைகுறிப்பு :
5. கட்டுரு வரையறை எந்த செயற்குறியுடன் முடிவடைதல் வேண்டும்?
அ) :
ஆ) }
இ) ;
ஈ) ::
விடைகுறிப்பு :
6. கட்டுருக்களை அறிவிக்கும் போது என்ன ஏற்படும்?
(அ) அது எந்த நினைவகத்தையும் ஒதுக்காது
(ஆ) அது நினைவகத்தை ஒதுக்கும்
(இ) அது அறிவிக்கும் மற்றும் தொடங்கும்
(ஈ) அது அறிவிக்க மட்டும் செய்யும்
விடைகுறிப்பு :
7. ஒரு கட்டுரு அறிவிப்பு கீழ்கண்டவாறு கொடுக்கப்பட்டுள்ளது
struct Time
{
int hours;
int minutes;
int seconds;
}t;
மேலே உள்ள அறிவிப்பில் seconds என்ற கட்டுரு மாறியை பின் வருவனவற்றுள் எது குறிக்கிறது?
அ) Time.seconds
ஆ) Time::seconds.
இ)seconds
ஈ) t. seconds
விடைகுறிப்பு :
8.கீழ்கண்டவற்றுள் எவை சரியான கட்டுரு வரையறை?
அ) struct (int num;)
ஆ) struct sum {int num;)
இ) struct sum int sum;
ஈ) struct sum {int num;};
II. குறு வினாக்கள்:
- அணியில உள்ளே ஒவ்வொரு உறுப்பையும் ஒரு முறையாவது அணுகும் செயல்முறையே "பயணித்தல்" எனப்படும்.
- அணியில் உள்ளே அனைத்து உறுப்புகளின் மதிப்புகளை வெளியிடுவதே பயணித்தலுக்கு ஒரு எடுத்துக்காட்டா கும்.
2. சரங்கள் என்றால் என்ன?
- குறியுருக்களின் வரிசையை சரம் என்கின்றோம், இதில் குறியுரு என்பது ஒரு எழுத்து எண் அல்லது குறியீடாக இருக்கலாம்.
- ஒவ்வொரு சரமும் அதன் முடிவை குறிக்கும் வெற்றுக் குறியுருவைக்('\0') கொண்டு முற்று பெற்றிருக்க வேண்டும்.
- ஒவ்வொரு குறியுருவும் நினைவகத்தில் ஒரு பைட் அளவு இடம் எடுத்துக்கொள்ளும்.
3. இரு பரிமாண அணியை அறிவிக்கும் தொடரியலை எழுதுக.
- இரு பரிமாண அணியை அறிவிப்பதற்கான தொடரியல்:
- data-type array- name [row size] [col-size];
4. வரையறு-கட்டுரு. அதன் பயன் என்ன?
- வெவ்வேறு வகையான தரவு இனங்களை கொண்ட பயனர் வரையறுக்கும் தரவினம் கட்டுரு எனப்படும்.
- கட்டுரு பல்வேறு வகையான தரவு இனங்களுடன் கூடிய மாறிகளை ஒரே தொகுதிக்குள் ஒன்றிணைத்து, அவைகளுக்கு நினைவகத்தில் அருகருகே இடம் ஒதுக்க உதவுகிறது.
- struct என்பது சிறப்பு சொல் கட்டுருவை அறிவிக்க பயன்படுகிறது.
5. பின்வரும் கட்டுரு வரையறையில் பிழை என்ன?
struct employee{ inteno; charename [20]; char dept;}
Employee e1,e2;
பிழை:
- கட்டுரு அரைப்புள்ளியுடன் (;) முற்று பெறவில்லை.
- தரவினத்துக்கும் மாறிக்கும் இடைவெளி இல்லை.
- structure tag ன் முதல் எழுத்து பெரிய எழுத்தில் இருக்க வேண்டும்.
struct Employee
{
int eno;
char ename[20];
char dept;
}
Employee el,e2;
III.சிறு வினாக்கள்:
- "அணி என்பது ஒரே தரவினத்தைச் சார்ந்த மாறிகளின் திரட்டு ஆகும். அணியின் உறுப்புகளை ஒரு பொதுப் பெயரால் குறிப்பிடலாம்".
- அணிகளின் வகைகள்:
- ஒரு பரிமாண அணிகள் (One_dimensional arrays)
- இரு பரிமாண அணிகள் (Two_dimensional arrays
- பல பரிமான அணிகள் (Multi_dimensional arrays)
2. சரங்களின் அணியைப் பற்றி சிறுகுறிப்பு எழுதுக.
- சரங்களின் அணி என்பது ஒரு இரு பரிமாண குறியுரு அணியாகும்.
- அணி வரையறுப்பில் உள்ள முதல் சுட்டெண் (வரிசை) சரங்களின் எண்ணிக்கையைக் குறிக்கும்.
- இரண்டாவது சுட்டெண் (நெடுவரிசை) சரங்களின் உச்ச அளவு நீளத்தை குறிக்கும்.
- பொதுவாக,சரங்களின் அணியை அறிவிக்கும் போதே ஒவ்வொரு சரத்தின் இறுதியிலும் வெற்றுக் குறியுருவை இணைப்பதற்கு இடமளிக்க வேண்டும்.
- எடுத்துக்காட்டாக:
- char Name[6] [10];
3. பின்வரும் குறிமுறையானது S என்ற எழுத்தில் தொடங்கும் பெயரைக்கொண்ட அனைத்து மாணவர்களின் மொத்த மதிப்பெண்களின் கூட்டு தொகையை கணக்கிட்டு திரையில் காட்டுகிறது. இதற்கு தேவையான விடுபட்டகூற்றுகளை நிரப்பவும்.
struct student (intexamno, lang, eng,phy, che, mat, csc, total; char name [15];};
int main()
{
student s[20];
for(int i=0;i<20;i++)
{
//accept student details
}
for(int i=0;i<20;i++)
{
// "S" என்ற எழுத்துடன் தொடங்கும் பெயரை சரிபார்க்கவும்
}
// சரிபார்த்த பெயரை திரையில் காட்டவும்.
}
return 0;
சரியான நிரல்:
struct student (int exam no,lang,eng,phy,che,mat,csc,total; char name[15];};
int main()
{
student s[20];
for(int i=0;i<20;i++)
{
Cout<<"Enter the students name one by one:";
Cin>>name[i];
}
for(int i=0;i<20;i++)
{
if(name[0]='s')
Cout<<name[i];
}
return 0;
}
4. ஒரு கட்டுருவின் உறுப்புகளை எவ்வாறு அணுக முடியும்? எடுத்துக்காட்டு தருக.
- கட்டுரு உறுப்புகளை நேரடியாக அணுகலாம்.
- பொருளின் பெயர் மற்றும் உறுப்பினரின் பெயருக்கு இடையில் ஒரு புள்ளி (.) (Dot Operator) பயன்படுத்தி கட்டுருவின் உறுப்புகளை அணுக வேண்டும்.
- எடுத்துக்காட்டு:
- balu.rollno
- balu.age
- balu.weight
5. பெயரற்ற கட்டுரு என்றால் என்ன? எடுத்துக்காட்டு தருக.
- பெயர்(அ) குறிப்பு சொல் இல்லாத ஒரு கட்டுரு பெயரற்ற கட்டுரு எனப்படும்
struct
{
long rollno;
int age;
float weight;
} student;
IV. நெடு வினாக்கள்:
நிரல்:
#include<iostream>
using namespace std;
int main()
{
int arr1[3][3], arr2[3][3], arr3[3][3], sub, i, j;
cout<<"Enter 3*3 Array 1 Elements: \n";
for(i=0; i<3; i++)
{
for(j=0; j<3; j++)
{
cin>>arr1[i][j];
}
}
cout<<"Enter 3*3 Array 2 Elements: \n";
for(i=0; i<3; i++)
{
for(j=0; j<3; j++)
{
cin>>arr2[i][j];
}
}
cout<<"Difference between two matrix... \n";
for(i=0; i<3; i++)
{
for(j=0; j<3; j++)
{
arr3[i][j]=arr1[i][j]-arr2[i][j];
}
}
for(i=0; i<3; i++)
{
for(j=0; j<3; j++)
{
cout<<arr3[i][j]<<" ";
}
cout<<"\n";
}
return 0;
}
வெளியீடு:
Enter 3*3 Array 1 Elements:
5
6
7
8
9
4
3
2
1
Enter 3*3 Array 2 Elements:
1
2
3
4
5
0
-1
-2
-3
Difference between two matrix…
4 4 4
4 4 4
4 4 4
Process exited after 48.03 seconds with return value 0
Press any key to continue
2. பின்வரும் கட்டுரு வரையறையை பயன்படுத்தி இரண்டு தூரங்களை (distance) கூட்டுவதற்கான c++ நிரலை எழுதுக.
struct Distance{
int feet;
float inch;
}d1, d2, sum;
நிரல்:
#include <iostream>
using namespace std;
struct Distance{
int feet;
float inch;
}d1, d2, sum;
int main()
{
cout << "Enter first distance" << end1;
cout << “Enter feet: “;
cin >> d1.feet;
cout << “Enter inch: “;
cin >> d1.inch;
cout << “\nEnter information for second distance”<< end1;
cout << “Enter feet: “;
cin >> d2.feet;
cout << “Enter inch: “;
cin >> d2.inch;
sum.feet=d1.feet+d2.feet;
sum.inch=d1.inch+d2.inch;
if(sum.inch>12)
{
++ sum.feet;
sum.inch-=12;
}
cout << end1 << “Sum of distances = “ << sum.feet << “ feet “ << sum.inch << “ inches”;
return 0;
}
வெளியீடு:
Enter first distance
Enter feet:6
Enter inch:3.4
Enter Information for second distance
Enter feet: 5
Enter inch: 10.2
Sum of distances=12 feet 1.6 inches
Process exited after 16.35 seconds with return value 0
Press any key to continue...
3. பின்வரும் c++ நிரலின் வெளியீட்டை எழுதுக.
#include<iostream>
#include<stdio>
#include <string>
#include<conio>
using namespace std;
struct books {
char name[20], author[20];
} a[50];
int main()
{
clrscr();
cout<< "Details of Book No " << 1 << "\n";
cout<<"--\n";
cout << "Book Name:"<<strcpy(a[0].name, "Programming ")<<endl;
cout << "Book Author:"<<strcpy(a[0].author, "Dromy")<<endl;
cout<<"\nDetails of Book No " << 2 << "\n";
cout<<"--\n";
cout<< "Book Name:"<<strcpy(a[1].name, "C++programming")<<endl;
cout<< "Book Author:"<<strcpy(a[1].author, "Bjarne Stroustrup ")<<endl;
cout<<"\n\n";
cout<<"--\n";
cout<<" S.No\t| Book Name\t|author\n";
cout<<"--\n";
for (int i = 0; i < 2; i++) {
cout<<"\n" << i+1 << "\t" << a[i].name << "\t" << a[i].author;
}
cout<<"--\n";
return 0;
}
வெளியீடு:
Details of Book No 1
Book Name: Programming
Book Author: Dromy
Details of Book No 2
Book Name: C++programming
Book Author: Bjarne Stroustrup
S.No
Book Name
author
1
2
Programming
Dromy
| |C++programming
Bjarne Stroustrup
Process exited after 0.0436 seconds with return value 0
Press any key to continue
4. பின்வரும் c++ நிரலின் வெளியீட்டைஎழுதுக.
#include <iostream>
#include <string>
using namespace std;
struct student
{
introll_no;
char name [10];
longphone_number;
};
int main(){
student p1 = {1,"Brown", 123443);
student p2, p3;
p2.roll_no = 2;
strcpy(p2.name, "Sam");
p2.phone_number = 1234567822;
p3.roll_no = 3;
strcpy(p3.name, "Addy");
p3.phone_number = 1234567844;
cout<< "First Student" <<endl;
cout<< "roll no: " << p1.roll_no <<endl;
cout<< "name: " << p1.name <<endl;
cout<< "phone no: " << p1.phone_number <<endl;
cout<< "Second Student" <<endl;
cout<< "roll no: " << p2.roll_no <<endl;
cout<< "name: " << p2.name <<endl;
cout<< "phone no: " << p2.phone_number <<endl;
cout<< "Third Student" <<endl;
cout<< "roll no: " << p3.roll_no <<endl;
cout<<"name: " << p3.name <<endl;
cout<< "phone no: " << p3.phone_number <<endl;
return 0;
}
வெளியீடு:
First Student
roll no: 1
name: Brown
phone no: 123443
Second Student
roll no: 2
name: Sam
phone no: 1234567822
Third Student
roll no: 3
name: Addy
phone no: 1234567844
5. பின்வரும் நிரலில் உள்ள பிழைகளை திருத்துக.
#include <istream.h>
struct PersonRec
{
charlastName[10];
chaefirstName[10];
int age;
}
PersonRec People Array Type[10];
void main()
{
PersonRecord people;
for ( i =0 ; i<10; i++)
}
cout<<people.firstName<<' '<<people.lastName
<<people.age;
}
for (int i = 0; i<10; i++)
{
cout<<"Enter first name: "; cin<<peop[i].firstName;
cout<< "Enter last name: "; cin>>peop[i].lastName;
cout<<"Enter age: "; cin>> people[i].age;}
}
சரியான நிரல்:
#include <iostream>
using namespace std;
struct PersonRec
{
string firstName[10];
string lastName[10];
int age[10];
};
int main()
{
PersonRec people;
for (int i = 0 i < 10 i++)
{
cout<< "Enter first name: ";
cin>>people.firstName[i];
cout<<"Enter last name: ";
cin>>people.lastName[i];
cout<< "Enter age: ";
cin>>people.age[i];
}
for (int i = 0; i<10; i++)
{
cout<<people.firstName[i]<< '\t' <<people.lastName[i]<<
'\t' <<people.age[i]<< '\n';
}
return 0;
}







0 Comments:
Post a Comment