11th Standard EM - Computer Applications - T2 - Control Structure in JavaScript

Buy 11th Computer Applications MCQ Online Test Practice test pack

Question - 1

Which conditional statement is used to transfer control from current statement to another statement?

  • A Branching
  • B Sequencing
  • C Looping
  • D Interating

Question - 2

_________ statement can be used as alterative to if-else statement.

  • A While
  • B If
  • C Else-if
  • D Switch

Question - 3

Which statement in switch case is used to exit the statement once the appropriate choice is found?

  • A Exit
  • B Default
  • C Case
  • D Break

Question - 4

Which of the following is not a looping statement?

  • A Switch
  • B While
  • C Do-While
  • D For

Question - 5

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

  • A First
  • B Second
  • C Third
  • D Final

Question - 6

Which of the following is not a branching statement?

  • A Loop
  • B If-else
  • C Switch
  • D For

Question - 7

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

Question - 8

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

  • A While
  • B Do while
  • C Break
  • D Continue

Question - 9

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

  • A While
  • B Do while
  • C Switch
  • D If

Question - 10

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