CS17302 OOP Class Test Unit I Q
CS17302 OOP Class Test Unit I Q
CS17302 OOP Class Test Unit I Q
14. Which of the following is not one of the sizes of the floating point
types?
a) short float b) float c) long double d) double
16. It is guaranteed that a _____ has at least 8 bits and a _____ has at
least 16 bits.
a) int, float b) char, int c) bool, char d) char, short
28. Which of the following data type will throw an error on modulus
operation (%)?
a) char b) short c) int d) float
43. Which looping process is best used when the number of iterations is
known?
a) for b) while c) do-while d) all looping processes
45. Which loop is most suitable to first perform the operation and then
test the condition?
a) for loop b) while loop c) do-while loop d) none
47. Which keyword is used to come out of a loop only for that iteration?
a) break b) continue c) return d) none of the mentioned