Basic C Programming MCQ

Basic C Programming MCQ
151. How many bits are absolutely necessary to store an ASCII character ?
  • 7
  • 8
  • 16
  • 15
Show Answer
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
Show Answer
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
Show Answer
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
Show Answer
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
Show Answer
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
Show Answer
157. In the previous question, information about d will be in the
  • first word
  • second word
  • in both words
  • none of the above
Show Answer
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
Show Answer
159. The above declaration is
  • syntactically correct
  • semantically correct
  • a misuse of bit-fields
  • none of the above
Show Answer
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
Show Answer
Questions and Answers for Competitive Exams Various Entrance Test