PDF Google Drive Downloader v1.1


Report a problem

Content text 200-multiple-choice-questions-in-C-programming-MCQs.pdf

Ans: 1 Computer Programming “C language” 1. Which of the following language is predecessor to C Programming Language? a) A b) B c) BCPL d) C++ Ans: c 2. C programming language was developed by a) Dennis Ritchie b) Ken Thompson c) Bill Gates d) Peter Norton Ans: a 3. C was developed in the year ___ a) 1970 b) 1972 c) 1976 d) 1980 Ans: b 4. C is a ___ language a) High Level b) Low Level c) Middle Level d) Machine Level Ans: c 5. C language is available for which of the following Operating Systems? a) DOS b) Windows c) Unix d) All of these Ans: d 6. Which of the following symbol is used to denote a pre-processor statement? a) ! b) # c) ~ d) ; Ans: b 7. Which of the following is a Scalar Data type a) Float b) Union c) Array d) Pointer
Ans: 2 Ans: a 8. Which of the following are tokens in C? a) Keywords b) Variables c) Constants d) All of the above d 9. What is the valid range of numbers for int type of data? a) 0 to 256 b) -32768 to +32767 c) -65536 to +65536 d) No specific range Ans: b 10. Which symbol is used as a statement terminator in C? a) ! b) # c) ~ d) ; Ans: d 11. Which escape character can be used to begin a new line in C? a) \a b) \b c) \m d) \n Ans: d 12. Which escape character can be used to beep from speaker in C? a) \a b) \b c) \m d) \n Ans: a 13. Character constants should be enclosed between ___ a) Single quotes b) Double quotes c) Both a and b d) None of these Ans: a 14. String constants should be enclosed between ___ a) Single quotes b) Double quotes c) Both a and b d) None of these Ans: b
Ans: b 3 15. Which of the following is invalid? a) ‘’ b) ““ c) ‘a’ d) ‘abc’ Ans: d 16. The maximum length of a variable in C is ___ a) 8 b) 16 c) 32 d) 64 a 17. What will be the maximum size of a float variable? a) 1 byte b) 2 bytes c) 4 bytes d) 8 bytes Ans: c 18. What will be the maximum size of a double variable? a) 1 byte b) 4 bytes c) 8 bytes d) 16 bytes Ans: c 19. A declaration float a,b; occupies ___ of memory a) 1 byte b) 4 bytes c) 8 bytes d) 16 bytes Ans: c 20. The size of a String variable is a) 1 byte b) 8 bytes c) 16 bytes d) None of these Ans: d 21. Which of the following is an example of compounded assignment statement? a) a=5 b) a+=5 c) a=b=c d) a=b Ans: b 22. The operator && is an example for ___ operator. a) Assignment b) Increment c) Logical
Ans: 4 d) Rational Ans: c 23. The operator & is used for a) Bitwise AND b) Bitwise OR c) Logical AND d) Logical OR Ans: a 24. The operator / can be applied to a) integer values b) float values c) double values d) All of these 25. The equality operator is represented by a) := b) .EQ. c) = d) == Ans: d 26. Operators have hierarchy. It is useful to know which operator a) is most important b) is used first c) is faster d) operates on large numbers Ans: b 27. The bitwise AND operator is used for a) Masking b) Comparison c) Division d) Shifting bits Ans: a 28. The bitwise OR operator is used to a) set the desired bits to 1 b) set the desired bits to 0 c) divide numbers d) multiply numbers Ans: a 29. Which of the following operator has the highest precedence? a) * b) == c) =>

Related document

x
Report download errors
Report content



Download file quality is faulty:
Full name:
Email:
Comment
If you encounter an error, problem, .. or have any questions during the download process, please leave a comment below. Thank you.