C LANGUAGE QUIZ 4

Results

#1. typedef’s have the advantage that they obey scope rules, that is they can be declared local to a function or a block whereas #define’s always have a global effect.

#2. Choose the correct conditional operators in C – a) :, b) ~, c) ?, d) ++

#3. Which of the following statements should be used to obtain a remainder after dividing 4.14 by 3.1 ?

#4. Which of the following correctly shows the hierarchy of arithmetic operations in C?

#5. A function cannot be defined inside another function

#6. What is (void*)0?

#7. Can static procedures access instance data?

#8. What is the similarity between a structure, union and enumeration?

#9. Which of the following is not a valid relational operator?

#10. Maximum value of an unsigned integer is

finish