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: 14/12/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.
Selection statement is also called ________.
empty
compound
continue
decision
2.
Which of the following statements do not after the flow of execution?
iteration
jumping
sequential
function calls
3.
Which of the statement(s) called as control flow?
branching
iteration
jumping
function calls
all of these
4.
A group of statements enclosed by { } is called ________.
body statement
iterative statement
compound statement
continue statement
5.
Which of the following used to enclose a group of statements?
{ }
( )
[ ]
< >
6.
Write a program to display numbers from 1 to 10 except 6 using continue statement.
7.
Rewrite the given program
C++ program to sum the numbers from 1 to 10 using for loop.
8.
What is nested if? Mention it's types.
9.
Write a program to check whether a person is eligible to vote using if statement.
10.
Write the general syntax of for loop.
11.
What is do-while loop? Write it's syntax.
12.
Write short notes on Test expression.
13.
Write the syntax of nested ·switch statement.
14.
What is goto statement? Explain
15.
Write a C++ program to find sum of any 5 numbers.
16.
Explain about parts of a loop.
17.
What are the part of a loop? Binary explain
18.
Write the syntax of Nested loop using. (i) for (ii) while (iii) do-while
19.
Explain switch-case with an example.
1.
(d)
decision
2.
(c)
sequential
3.
(e)
all of these
4.
(c)
compound statement
5.
(a)
{ }
6.
C++ program to display numbers from 1 to 10 except 6 using continue statement
#include < iostream >
using namespace std;
int main ( )
{
if(i==6)
continue;
else
cout< < i < < " ";
}
return 0;
}
Output
1 2 3 4 5 7 8 9 10
7.
#include < iostream >
using namespace std;
int main ( )
{
sum=0;
while (i < 10)
{
sum = sum + i;
1--
}
cout << "\n' The sum is ="<
}
C++ program to sum the numbers from 1 to 10 using for loop
#include < iostream >
using namespace std;
intmain 0
{
int i,sum=0;
for(i=1; i<=10;i++)
{
sum=sum+i;
}
cout << "The sum of 1 to 10 is" << sum;
return 0;
}
Output
The sum of 1 to 10 is 55.
8.
An if statement contains another if statement is called nested if. The nested can have one of the following three forms.
(i) If nested inside if part
(ii) If nested inside else part
(iii) If nested inside both if part and else part
9.
c++ program to check whether a person is eligible to vote using if statement
#include < iostream >
using namespace std;
int main ( )
{
int age;
cout < < "\n Enter your age:";
cin> >age;
if(age>= 18)
cout << "\n You are eligible for voting ,,,,";
cout < < "This statement is always executed.";
return 0;
}
Output
Enter your age: 23
You are eligible for voting ....
This statement is always executed.
10.
The general syntax is:
for (initialization(s); test-expression; update expression (s))
{
statement 1;
statement 2;
------------
}
Statement-x;
11.
The do-while loop is an exit-controlled loop. In do-while loop, the condition is evaluated at the bottom of the loop after executing the body of the loop. This means that the body of the loop is executed at least once, even when the condition evaluates false during the first iteration.
The do-while loop. syntax is:
do
{
Body of the loop;
} while (condition);
12.
The test expression is an expression or condition whose value decides whether the loop-body will be executed or not. If the expression evaluates to true (i.e.; 1), the body of the loop is executed, otherwise the loop is terminated.
In an entry-controlled loop, the test-expression is evaluated before the entering into a loop, whereas in an exit-controlled loop, the test-expression is evaluated before exit from the loop.
13.
The syntax of the nested switch statement is;
switch (expression)
{
case constant 1:
statement(s);
break;
switch( expression)
{
case constant 1:
statement (s);
break;
case constant 2:
statement(s);
break
.
.
.
default :
statement(s);
}
case constant 2:
statement(s);
break;
.
.
.
default:
statement( );
}
14.
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 ------------- |
15.
#include< iostream.h >
using namespace std;
int main ( )
{
int i=1,num,avg,sum=0;
while(i < =5)
{
cout << "Enter the number :";
cin>>num;
sum=sum+num;
i++;
}
avg=sum/5;
cout << "The sum is" << sum << endl;
}
Output
Enter the number: 1
Enter the number: 2
Enter the number: 3
Enter the number: 4
Enter the number: 5
The sum is 15
16.
Every loop has four elements that are used for different purposes. These elements are:
1. Initialization expression
2. Test expression
3. Update expression
4. The body of the loop
Initialization expression(s): The control variable(s) must be initialized before the control enters into the loop. The initialization of the control variable takes place under the initialization expressions. The initialization expression is executed only once in the beginning of the loop.
Test Expression: The test expression is an expression or condition whose value decides whether the loop-body will be executed or not. If the expression evaluates to true (i.e., 1), the body of the loop is executed, otherwise, the loop is terminated.
In an entry-controlled loop, the test expression is evaluated before entering into a loop whereas in an exit-controlled loop, the test expression is evaluated before exiting from the loop.
Update expression: It is used to change the value of the loop variable. This statement is executed at the end of the loop after the body of the loop is executed.
The body of the loop: A statement or set of statements forms a body of, the loop that is executed repetitively. In an entry-controlled loop, first, the test expression is evaluated and if it is nonzero, the body of the loop is executed otherwise the loop is terminated. In an exit controlled loop, the body of the loop is executed first then the test expression is evaluated. If the test expression is true the body of the loop is repeated otherwise loop is terminated.
17.
Every loop has four elements that are used for different purpose. These elements are
(i) Initialization expression
(ii) Test expression
(iii) Update expression
(iv) The body of the loop
(i) Initialization expression(s): The control variable(s) must be initialized before the control enters into loop. The initialization of the control variable takes place under the initialization expressions. The initialization expression is executed only once at the beginning of the loop.
(ii) Test Expression: The test expression is an expression or condition whose value decides whether the loop-body will be executed or not. If the expression evaluates to true(i.e., 1), the body of the loop executed, otherwise the loop is terminated. In an entry-controlled loop, the test-expression is evaluated before the entering into a loop whereas in an exit-controlled loop, the test-expression is evaluated before exit from the loop.
(iii) Update expression: It is used to change the value of the loop variable. This statement is executed at the end of the loop after the body of the loop is executed.
(iv) The body of the loop: A statement or set of statements forms a body of the loop that are executed repetitively. In an entry-controlled loop, first, the test-expression is evaluated and . if it is nonzero, the body of the loop is executed otherwise the loop is terminated. In an exit controlled loop, the body of the loop is executed first then the test-expression is evaluated. If the test expression is true the body of the loop is repeated otherwise loop is terminated.
18.
(i) For:
for (initialization(s); test-expression; update expression(s))
{
for (initialization( s); test-expression; update expression(s))
{
statement( s);
}
statement(s);
}
(ii) while: while( condition)
{
while( condition)
{
statement(s);
}
statement(s);
}
(iii) do while :
do
{
statement(s);
do
{
statement(s);
}while( condition);
} while( condition );
19.
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);
}
Example:
#include < iostream.h >
using namespace std;
int main( )
{
int num;
cout << "\n Enter week day number:";
cin >> num;
switch (num)
{
easel : cout << "\n Sunday";break;
case2 : cout << "\n Monday";break;
case3 : cout << "\n Tuesday";break;
case4 : cout << "\n Wednesday";break;
case5 : cout << "\n Thursday'xbreak;
case6 : cout << "\n Friday";break;
case7 : cout << "\n Saturday";break;
default: cout << "\n Wrong input.. ...";
}
}
Output:
Enter week day number: 6
Friday
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