New ! Computer Applications MCQ Practise Tests



11th Standard English Medium Computer Applications Subject Control Structure in JavaScript Book Back 1 Mark Questions with Solution Part - II

11th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Applications

Time : 01:00:00 Hrs
Total Marks : 5

    1 Marks

    5 x 1 = 5
  1. What will be the output for the following snippet:
    For (var n=0; n < 10; n+1)
    {
    if (n==3)
    {
    break;
    }
    document write (n+"< br >");
    }

    (a)

    0 1 2

    (b)

    0 1 2 3

    (c)

    0 1 2 3 4

    (d)

    0, 1, 3

  2. In which loop the condition is evaluated, before executing a statement?

    (a)

    While

    (b)

    Do while

    (c)

    Break

    (d)

    Continue

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

    (a)

    While

    (b)

    Do while

    (c)

    Switch

    (d)

    If

  4. In the _____ loop, body of the loop always executed at least once before the condition can be executed.

    (a)

    For

    (b)

    While

    (c)

    If

    (d)

    Do while

  5. < script type = "text / javascript" >
    x = 6 + "3";
    document write (x);
    < script > what will be the output?

    (a)

    6

    (b)

    9

    (c)

    63

    (d)

    Error

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

Reviews & Comments about 11th Standard English Medium Computer Applications Subject Control Structure in JavaScript Book Back 1 Mark Questions with Solution Part - II

Write your Comment