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: 26/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.
Write the syntax of while loop.
2.
What are the three forms of nested if.
3.
Define iteration.
4.
What is body of the loop?
5.
Define control flow.
6.
Compare an if and a?: operator.
7.
Write a for loop that displays the number from 21 to 30.
8.
What is the output of the following code?
for (int i = 2; i < = 10 ; i + = 2)
cout << i;
9.
What is selection statement? write it's types?
10.
What is goto statement? Explain
11.
Write the syntax and purpose of switch statement.
12.
Convert the following if-else to a single conditional statement:
if (x > = 10)
a = m + 5;
else
a = m;
13.
Write a program to find sum of the series
S = 1 + x + x2 +..... + xn
14.
Write a program to find the LCM and GDC of two numbers.
15.
Explain control statement with suitable example.
16.
In C++, which of the following is treated as true?
non zero
negative numbers
zero
both a and b
17.
Which of the following statement are executed depends upon a condition?
Empty
Selection
Compound
Null
18.
A group of statements enclosed by { } is called ________.
body statement
iterative statement
compound statement
continue statement
19.
Which of the following statement commonly used as placeholders in iteration statements?
loop
Assignment
Empty
switch
20.
A loop that contains another loop inside its body:
Nested loop
Inner loop
Inline loop
Nesting of loop
21.
Which of the following is the exit control loop?
for
while
do ... while
if ... else
22.
The set of statements that are executed again and again in iteration is called as:
condition
loop
statement
body of loop
23.
What is the alternate name of null statement?
No statement
Empty statement
Void statement
Zero statement
1.
while ( Tese expression)
{
Body of the loop;
}
Statement-x;
2.
An if statement contains another if statement is called nested if. The nested can have one of the following three forms.
1. If nested inside if part
2. If nested inside else part
3. If nested inside both if part and else part.
3.
An iteration (or looping) is a sequence of one or more statements that are repeatedly executed until a condition is satisfied. These statements are also called as control flow statements.
4.
The set of statements that are executed again and again is called the body of the loop.
5.
The flow of control jumps from one part of the code to another segment of code. Program statements that cause such jumps are called as "Control flow"
6.
|
if |
?: |
|---|---|
| 'if' is a c++ statement Syntax: if (expression) true-block; statement-x; |
'?:' is a c++ operator. Syntax: Expression 1? Expression 2: Exp 3: |
7.
#include <iostream>
using namespace std;
int main()
{
for (int -21; i <31; i++)
cout << "value of i:"<<<i<<< endl;
return 0;
}
Output
Value of i: 21
Value of i: 22
Value of i: 23
Value of i: 24
Value of i: 25
Value of i: 26
Value of i: 27
Value of i: 28
Value of i: 29
Value of i: 30
8.
Output:
2 4 6 8 10.
9.
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.
10.
The goto statement is a control statement which is used to transfer the control from one place to another place without any condition in a program.
The syntax of the goto statement is;
|
Syntax 1 label; |
Syntax 2 ------------- |
11.
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);
}
12.
a=(x>=10)? m + 5:m;
13.
#include <iostream>
using namespace std;
#include <math.h>
int main()
{
int x, n;
float sum= 0;
cout<<"Enter the value for x:";
cin>>x;
cout<<"Enter the number of terms";
cin>>n;
for (int i=0; i<n; i++)
sum = sum + Pow(x,i);
cout<<"Sum="<< Sum<<endl;
cin.get();
return 0;
}
14.
#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;
}
15.
Control statements are statements that alter the sequence of flow of instructions.
Types of control statements:
1. Selection statement
The selection statement means the statement (s) 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.
2. Iteration (or looping) statement
An iteration (or loop) is a sequence of one or more statements that are repeatedly executed until a condition is satisfied. These statements are also called as control flow statements. It is used to reduce the length of code to reduce the time to execute program and takes less memory space.
16.
(d)
both a and b
17.
(b)
Selection
18.
(c)
compound statement
19.
(c)
Empty
20.
(a)
Nested loop
21.
(c)
do ... while
22.
(d)
body of loop
23.
(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