Structure & Union Questions and Answers

Practice Mode
Showing 10 of 95 questions
Q91
A bit field is
  • A A pointer variable in a structure
  • B One bit or a set of adjacent bits within a word.
  • C A pointer variable in a union.
  • D None of these
Answer: Option B
Q92
The restriction with union is:
  • A The last member can only be initialized
  • B the first member can only be initialized.
  • C Any member can be initialized.
  • D Union can't be initialized.
Answer: Option B
Q93
Which of the following statement is correct ?
  • A Union can be member of structure.
  • B Structure can be members of union.
  • C Both a and B
  • D None of these
Answer: Option C
Q94
Union differs from structure in which way
  • A All members are used at a time.
  • B Only one member can be used at a time.
  • C Union initialized all members as structure.
  • D None of these
Answer: Option B
Q95
A bit field can be of
  • A int
  • B float
  • C double
  • D All of these
Answer: Option A
Questions and Answers for Competitive Exams Various Entrance Test