Basic C Programming MCQ Questions and Answers
Basic C Programming MCQ questions with answers help candidates master the fundamentals of C language — one of the most popular programming languages for beginners and interview aspirants. These programming questions and answers focus on syntax, operators, loops, functions, and data handling. Practicing C programming MCQs strengthens logic and helps students perform better in technical assessments by TCS, Infosys, HCL, and other top recruiters. Each question is designed to test conceptual understanding and problem-solving skills, making it ideal for both practice and revision before coding interviews or placement exams.
Basic C Programming MCQ
Showing 10 of
198 questions
151. How many bits are absolutely necessary to store an ASCII character ?
- 7
- 8
- 16
- 15
152. If 7 bits are used to store a character, the percentage refuction of needed storage will be
- 22.5
- 2.5
- 8
- 12.5
153. Bit field
- is a field having many sub-fields
- is a structure declaring the sizes of the members in terms of bits
- is a member of a structure whose size is specified in terms of bits
- none of the above
154. Choose the correct comments. in a bit-field
- a field can be un-named
- a field can be of width 0
- if a field is un-named, its width must not be zero
- a field must have a name
155. The declaration int x : 4; means
- x is a four digit integer
- x cannot be greater than a four digit integer
- x is a four-bit ionteger
- none of the above
156. Bit-fields will be accommodated in a word
- from left to right
- from right to left
- in a way that depends on the implementation
- none of the above
157. In the previous question, information about d will be in the
- first word
- second word
- in both words
- none of the above
158. If the declaration unsigned c:5; is replaced by unsigned:6; then
- it results in a syntax error
- it is meaningless
- the compiler will give a new name for the field, which can be used in the program
- none of the above
159. The above declaration is
- syntactically correct
- semantically correct
- a misuse of bit-fields
- none of the above
160. Which of the following is not a low-level feature of C?
- Register storage class
- Bit-fields
- takes care of include files
- acts before compilation