C - Programming - PART 5 « Previous Next » 1. Each 'C" preprocessor directive begins with: A. # B. include C. main() D. { [BU BHOPAL-2015] Answer: A - # 2.The << operator is used for: A. Right shifting B. Left shifting C. Bitwise shifting D. Bitwise complement [BU BHOPAL-2015] Answer: B - Left shifting 3. The statement which is used to terminate the control from the loop is: A. Break B. Continue C. Go to D. Exit [BU BHOPAL-2015] Answer: A Break 4. An Array of pointer in same as: A. Pointer to array B. Pointer to pointers C. Pointer to function D. Pointer to structure [BU BHOPAL-2015] Answer: A - Pointer to array 5. What is the output of the following program segement?main(){long i=65536;printf("%d\n",i);} A. 0 B. 65536 C. -1 D. 65 [BU BHOPAL-2015] Answer: B - 65536 6.The name of all function end with: A. Pair of parenthesis B. Semicolon C. Braces D. Colon [BU BHOPAL-2015] Answer: A - Pair of parenthesis 7. Scanf() can be used for reading: A. Double character B. Single character C. Multiple character D. No character [BU BHOPAL-2015] Answer: C - Multiple character 8. The expression X=4+2%-8 evaluate: A. -6 B. 6 C. 4 D. None [BU BHOPAL-2015] Answer: B - 6 9. Which among the following is not a keyword? A. External B. int C. float D. Double [BU BHOPAL-2015] Answer: A - External 10. To access a structure element using a Pointer ---- operator is used: A. dot(.) B. pointer(&) C. pointer(*) D. Arrow(->) [BU BHOPAL-2015] Answer: D - Arrow(->) « Previous Next »
No comments:
Post a Comment