CS201 1st Quiz Spring 2013 Lectures 6 to 11

No Comments


QUIZ  no 1
  1. What is the correct syntax to declare an array of 15 elements of type float?
  2. From the following; which one is the range of Random number generator function rand()?
  3. When No. of repetition is known then we use the _______ structure to perform repetition tasks
  4. Loops are _______________ Structure
  5. When the break statement is encountered in a loop’s body, it transfers the control ________from the current loop.
  6. By default, the starting index of an array in C++ is _______
  7. A while loop may execute ________or more times.
  8. In C/C++, by default arguments are passed by _______ to a function

  1. What is the correct syntax to declare an array of 15 elements of type float?
  2. From the following; which one is the range of Random number generator function rand()?                (0 and 32767) Ans
  3. When No. of repetition is known then we use the _______ structure to perform repetition tasks                         (while loop) Ans
  4. Loops are _______________ Structure       (Repetition)Ans
  5.  When the break statement is encountered in a loop’s body, it transfers the control ________from the current loop.
     Ans:
(When a break statement is encountered in a loop, the loop terminates immediately. The control exits the inner most loop if there are nested loop)
6.
By default, the starting index of an array in C++ is _______ (zero)Ans (starting point is zero and ending point is less than one)

)



Next PostNewer Post Previous PostOlder Post Home

0 comments

Post a Comment