Control Structure in JavaScript Book Back Questions

11th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Applications

Time : 00:45:00 Hrs
Total Marks : 30
    5 x 1 = 5
  1. Which conditional statement is used to transfer control from current statement to another statement?

    (a)

    Branching

    (b)

    Sequencing

    (c)

    Looping

    (d)

    Interating

  2. Which of the following is not a looping statement?

    (a)

    Switch

    (b)

    While

    (c)

    Do-While

    (d)

    For

  3. Which part of the loop statement determines the number of times, the loop will be iterated?

    (a)

    First

    (b)

    Second

    (c)

    Third

    (d)

    Final

  4. Which of the following is not a branching statement?

    (a)

    Loop

    (b)

    If-else

    (c)

    Switch

    (d)

    For

  5. The _______ statement is especially useful when testing all the possible results of an expression.

    (a)

    While

    (b)

    Do while

    (c)

    Switch

    (d)

    If

  6. 3 x 2 = 6
  7. List out the various branching statements in JavaScript?

  8. Write the general syntax for switch statement

  9. Differentiate the break and continue statement

  10. 3 x 3 = 9
  11. Write the syntax for else-if statement.

  12. What is called a loop and what are its types?

  13. What message will be displayed, if the input for age is given as 20, for the following snippet.
    if (age > = 18 )

  14. 2 x 5 = 10
  15. Explain for loop with example.

  16. 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 >

*****************************************

TN 11th Standard Computer Applications free Online practice tests

Reviews & Comments about 11th Computer Applications - Control Structure in JavaScript Book Back Questions

Write your Comment