MABS Institution
11th Computer Applications Monthly Test -1 ( Control Structure in Javascript )-Aug 2020
-
-
-
-
-
Which of the following statement is true!
(i) The else if statement to specify a new condition if the first condition is false
(ii) The if else statement processing must follow one of two pathsonly (i)
only (ii)
both (i) and (ii)
both are wrong
-
How many forms of if statement in Javascript?
3
2
4
7
-
The ________ statement executes the next iteration of the loop.
break
continue
for
do..while
-
How many types of control statements in JavaScript?
3
2
4
7
-
How many types of branching statements are there in Javascript?
3
4
5
7
-
Why default and break statement used in switch statement?
-
What is the output of the following html code?
-
How the switch statement evaluates the case structure?
-
Write the syntax of while loop
-
What is meant by conditional statements in JavaScript?
-
Write the syntax of do-while loop
-
Write the general syntax for switch statement
-
Differentiate the break and continue statement
-
Write the syntax of if-else statement?
-
What is branching statement?
-
Write script for the following criteria.
-
What are the functions of the for loop parts?
-
What is called a loop and what are its types?
-
What message will be displayed, if the input for age is given as 20, for the following snippet.
if (age > = 18 ){
alert ("you are eligible to get Driving licence"}
}
else
alert ("you are not eligible to get driving licence");
}
-
Differentiate between while and do while statements
-
What if if statement and write its types.
-
Write the syntax for else-if statement.
-
Write a Javascript to find whether the given number is even or odd?
-
Explain the execution of while loop with an example?
-
Explain for loop with example.
-
Explain while loop with suitable example.
-
Write a Javascript to find whether the given number is positive or negative?
-
Write the output for the following program.
< Html >
< Head >
< Title > for statement
< Head >
< Body >
< script language= "java Script" type = "text / JavaScript")
var nol= prompt ("p'ease enter table you want:", "0");
document write '< h2 > multiplication for your need < /h2 >")
for (Var no2= 0; n02< = 10; no2++)
{
document write (nol+ "x"+no2+"=i'+ nol +
no2 + "< br >);
< /scrlpt >:
< /body >
< /Html > -
Write a Javascript to display the given number is words using switch-case (Number between only 1 and 5)
-
Explain switch case statement with example
-
Explain with an example the use of break and continue statement in loops?
-
Explain the working of do while loop in Javascript with an example?