Sail E0 Webinar

MCQs

Total Questions : 16 | Page 2 of 2 pages
Question 11. Which looping process is best used when the number of iterations is known?
  1.    for
  2.    while
  3.    do-while
  4.    all looping processes require that the iterations be known
 Discuss Question
Answer: Option A. -> for


for


Question 12. How many sequence of statements are present in c++?
  1.    4
  2.    3
  3.    5
  4.    6
 Discuss Question
Answer: Option C. -> 5


There are five sequence of statements.They are Preprocessor directives, Comments, Declarations, Function Declarations, Executable statements.


Question 13. The destination statement for the goto label is identified by what label?
  1.    $
  2.    @
  3.    *
  4.    :
 Discuss Question
Answer: Option D. -> :


:


Question 14. The if..else statement can be replaced by which operator?
  1.    Bitwise operator
  2.    Conditional operator
  3.    Multiplicative operator
  4.    none of the mentioned
 Discuss Question
Answer: Option B. -> Conditional operator


In the conditional operator,it will predicate the output using the given condition.


Question 15. How many types of loops are there?
  1.    4
  2.    2
  3.    3
  4.    1
 Discuss Question
Answer: Option A. -> 4


There are four types of loop. They are while, do while, nested, for loop.


Question 16. The switch statement is also called as?
  1.    choosing structure
  2.    selective structure
  3.    certain structure
  4.    none of the mentioned
 Discuss Question
Answer: Option B. -> selective structure


The switch statement is used to choose the certain code to execute, So it is also called as selective structure.


Latest Videos

Latest Test Papers