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/10/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 do-while loop? Write it's syntax.
2.
Write short notes on Test expression.
3.
Write the syntax of nested ·switch statement.
4.
What is sequence statements?
5.
Differentiate break and continue statement.
6.
What is goto statement? Explain
7.
Write a C++ program to find sum of any 5 numbers.
8.
What do you know about switch statement?
9.
10.
Rewrite the following code so that it is functional:
v = 5;
do;
{
total += v;
cout << total;
while v <= 10
1.
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);
2.
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.
3.
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( );
}
4.
The sequential statement are the statements that are executed one after another only once from top to bottom. These statements do not alter the flow of execution. These statements are called as sequential flow statements. They always end with a semicolon (;).
5.
| Break | Continue |
|---|---|
| The break is used to terminate the execution of the loop | Continue is not used to terminate the execution of the loop. |
| It breaks the iteration | It skips the iteration |
| When this statement is executed, control will come out from the loop and execute the the statement immediately after the loop. |
When this statement is executed, it will not come out of the loop but moves/jumps to the next iteration of the loop. |
| The break is used with loops as well as switch cases. | Continue is only used in loops, it is not used in switch cases. |
6.
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 ------------- |
7.
#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
8.
There are some important things to know about the switch statement. They are
(1) A switch statement can only work for quality of comparisons.
(2) No two case labels in the same switch can have identical values
(3) If character constants are used in the switch statement; they are automatically converted to their equivalent ASCII codes.
(4) The switch statement is a more efficient choice than if in a situation that supports the nature of the switch operation.
9.
10.
| Given Code | Functional Code |
| v = 5; do; { total += v; cout << total; while v <= 10 |
int v = 5, total = 0; do { total + = v; cout << total; V++; } while (v<=10); |
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