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: 09/09/2019
Control Structure in JavaScript
Download Tamil Nadu 11th Standard Computer Applications 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 Applications Test

1.
The _______ statement is especially useful when testing all the possible results of an expression.
While
Do while
Switch
If
2.
Which of the following is not a branching statement?
Loop
If-else
Switch
For
3.
Which part of the loop statement determines the number of times, the loop will be iterated?
First
Second
Third
Final
4.
Which of the following is not a looping statement?
Switch
While
Do-While
For
5.
Which conditional statement is used to transfer control from current statement to another statement?
Branching
Sequencing
Looping
Interating
6.
Differentiate the break and continue statement.
7.
Write the general syntax for switch statement
8.
List out the various branching statements in JavaScript?
9.
10.
11.
Write the syntax for else-if statement.
12.
Write the output for the following program.
< Html >
< Head >
< Title > for statement< /title >
< Head >
< Body >
< script language= "java Script" type = "text / JavaScript")
var nol= prompt ("please enter table you want:", "0" );
document write ("< h2 > multiplication for your need < /h2 > ")
for (Var no2= 0; no2< =10; no2++)
{
document write (no1+ "x" + no2+ "=" + no1+no2+ "< br > );
}
< /script >
< /body >
< /Html >
13.
Explain for loop with example.
1.
(c)
Switch
2.
(a)
Loop
3.
(b)
Second
4.
(a)
Switch
5.
(a)
Branching
6.
| Break Statement | Continue Statement |
| The break statement will terminate the loop irrespective of the condition. | The continue statement will skip back to the loop condition check. |
| The break statement is executed and the loop is terminated. | When the continue statement is executed, the current iteration of the enclosing loop is terminated, and the next iteration begins. |
7.
switch (expression)
{
case label 1:
statements 1;
break;
case label 2;
statements2;
break;
case labeln;
statements - N;
break;
default:
statements;
}
8.
There are different branching statements. They are :
1. if statement
2. if... else statement
3. else if statement
4. switch statement
9.
10.
11.
if (expression)
{
// Execute code block #1
}
else if (expression)
{
// Execute code block #2
}
else if (expression)
{
// Execute code block #3
}
else
{
// if all else fails, execute block #4
}
12.
Output :

13.
The for loop is a very rigid structure that loops for a pre-set number of times. In JavaScript for structure is very flexible and is very commonly used. The syntax of the for loop looks like the following:
for(initialization; condition; increment/decrement)
{
Body of the loop;
}
The for structure consist of parts each separated by semicolon. They are,
1. The first part of the loop initialize a variable which is also called as control variable. In most case the control variable is declared as well as initialized.
2. The second part is the conditional statement that determines how many times the loop will be iterated.
3. The third and final part determines how the value of control variable is changed (Incremented/ Decremented)
Using for loop:
< Html >
< Head >
< Title > Program - To test for statement in JavaScript < /Title >
< /Head >
< Body >
< script language="javascript" type="text/javascript" >
var nol = prompt("Please enter Table You want: ", "0");
document.write ("< h2 > Multiplication Table< /h2 > ");
for(var no2=0;no2< =10;no2++)
{
document.write(nol+"x"+no2+"="+nol*no2+"< br > ");
}
< /script >
< /body >
< /Html >
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