Basic C Programming MCQ
Basic C Programming MCQ
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