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: 06/09/2019
Flow of Control
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 is the output of the following code?
for (int i = 2; i < = 10 ; i + = 2)
cout << i;
2.
What is selection statement? write it's types?
3.
What is a null statement and compound statement?
4.
Write the syntax and purpose of switch statement.
5.
Write a C++ program to print multiplication table of a given number.
6.
Convert the following if-else to a single conditional statement:
if (x > = 10)
a = m + 5;
else
a = m;
7.
Write programs to find the sum of the following series:
(a) \(x-\frac { { x }^{ 2 } }{ 2! } +\frac { { x }^{ 3 } }{ 3! } -\frac { { x }^{ 4 } }{ 4! } +\frac { { x }^{ 5 } }{ 5! } -\frac { { x }^{ 6 } }{ 6! } \)
(b) \(x+\frac { { x }^{ 2 } }{ 2 } +\frac { { x }^{ 3 } }{ 3 } +...+\frac { { x }^{ n } }{ n } \)
8.
Write a program to find the LCM and GDC of two numbers.
9.
A loop that contains another loop inside its body:
Nested loop
Inner loop
Inline loop
Nesting of loop
10.
Which of the following is called entry control loop?
do-while
for
while
if-else
11.
Which of the following is the exit control loop?
for
while
do ... while
if ... else
12.
How many times the following loop with execute? for (int i=0; i<10; i++).
0
10
9
11
13.
What is the alternate name of null statement?
No statement
Empty statement
Void statement
Zero statement
1.
Output:
2 4 6 8 10.
2.
The selection statement means the statements are executed depends upon a condition. If a condition is true, a true block (a set of statements) is executed, otherwise a false block is executed. This statement is also called decision statement or selection statement because it helps in making decision about which set of statements are to be executed.
Types: (i) Two way branching, (ii) Multiway branching.
3.
Null statement
The "null or empty statement" is a statement containing only a semi colon. It takes the following
form:
;// it is a null statement.
Null statement are commonly used as place holders in iteration statements or as statements on which to place labels at the end of compound statements or functions.
Compound statement
C++ allows a group of statements enclosed by pair of braces (). This group of statements is called as a compound statement or a block.
The general format of compound statement is:
{
statement 1;
statement 2;
statement 3;
}
for example:
{
int a,b;
a-8;
b=a+8;
}
4.
The switch statement is a multi-way branch statement. It provides an easy way to dispatch execution to different parts of code based on the value of the expression. The switch statement replaces multiple if-else sequence.
The syntax of the switch statement is;
switch(expression)
{
case constant 1:
statement(s);
break;
case constant 2:
statement(s);
break;
.
.
.
.
default:
statement(s);
}
5.
The syntax of if-else ladder:
#include <iostream>
using namespace std;
int main()
(
int num:
cout<<"Enter Number to find its multiplication table";
cin >> num;
for (int a = 1; a<= 10; a++)
{
cout << num << "*" << a << "=" << num*a << endl;
}
return 0;
}
6.
a=(x>=10)? m + 5:m;
7.
(a) #include <iostream>
using namespace std;
#include <math.h>
#factorial function.
long int fact(int n)
{
long int f= 1;
for (int i = 1;i<n; i++)
f* = i;
return f
}
// main function
int main()
{
int x, y = 1;
float sum = 0;
cout<<"Enter the value for x:";
cin>>x;
for (int i=1;i<-6; i++)
{
sum = sum + y*((pow(x, 1))/fact(i));
y*=-1;
}
cout<<"Sum=" <<Sum<<endl;
cin.get():
return();
}
(b) #include <iostream>
using namespace std;
#include <math.h>
int main()
{
int M, L;
float sum = 0;
cout<<"Enter the value for M:";
cin>>M;
cout<<"Enter the number of terms";
cin>> L;
for (int i=1;i<=m; i++)
sum Sum + Pow(m,i)/i;
cout<<"Sum="<< Sum<<endl;
cin.get():
return 0;
}
8.
#include <iostream>
using namespace std;
int main()
{
int a1, b1 lem, ged-1, p;
cout << "\n Enter 1st no:";
cin>>a1;
cout << "\n Enter 2nd no:";
cin >> b1;
p=a1*b1;
for (int i = al; i<-p; i++)
if (i%al == 0) && (i%b1 == 0)
{
1cm=i;
break;
}
cin.get():
cout << "L.C.M. =" <<lcm<<endl;
gcd=p/LCM;
cout<<"G.C.D="<< ged;
cin.get():
return 0;
}
9.
(a)
Nested loop
10.
(a)
do-while
11.
(c)
do ... while
12.
(b)
10
13.
(b)
Empty statement
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