Tuesday 7 May 2013

CS201 Quiz No. 01 Spring 2013

Quizz


  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)
)

--
Need Your Comments.....!

-- 

For University of Pakistan Study Material Sharing, Discussion, etc, Come and join us at http://4e542a34.linkbucks.com
You received this message because you are subscribed to the Google
Groups "Study" group.
To post to this group, send email to http://ca13054d.tinylinks.co
For more options, visit this group at
http://004bbb67.any.gs

No comments:

Post a Comment

Note: only a member of this blog may post a comment.