C - Programming - PART 3 « Previous Next » 1. '#' is called: A. Preprocessor directive B. Hash sign C. Productive directive D. Predefined sign [BU BHOPAL-2014] Answer: A - Preprocessor directive 2.Header files have extension: A. .hh B. .h C. .hd D. .hhd [BU BHOPAL-2014] Answer: B - .h 3. The conditional operator is: A. :? B. ?: C. =?: D. =:? [BU BHOPAL-2014] Answer: B - ?: 4. Switch statement must have: A. break B. default C. Case D. All [BU BHOPAL-2014] Answer: D - All 5. Which of the following is not a logical operator: A. & B. && C. || D. ! [BU BHOPAL-2014] Answer: A - & 6.Which bit-wise operator is suitable for turning off a particular bit in a number? A. && operator B. & operator C. || operator D. | operator [BU BHOPAL-2014] Answer: B - & operator 7. Pointer is _______: A. A keyword used to create variables B. A variable that stores address of instruction C. A variable that stores address of other variable D. All the above [BU BHOPAL-2014] Answer: C - A variable that stores address of other variable 8. Which of the following corectly shows the hierarchy of arithmetic operators: A. /+*- B. *-/+ C. +-/* D. /*+- [BU BHOPAL-2014] Answer: D - /*+- 9. An infinite loop can be terminated by: A. break B. exit(0) C. abort() D. All the above [BU BHOPAL-2014] Answer: A - break 10. Which keyword can be used for coming out of recursion: A. Break B. Return C. Exit D. All [BU BHOPAL-2014] Answer: B - Return « Previous Next »
No comments:
Post a Comment