C - Structure and Union Questions and Answers

Practice Mode
Showing 10 of 51 questions
Q11
A structure can have
  • A pointers as its members
  • B scalar data type as its members
  • C structure as its members
  • D al the above
Answer: Option D
Q12
The structure declaration struct person {char name [20]; the int age; struct person woman;};
  • A is a valid nested structure
  • B is not a valid nested structure
  • C uses an invalid data type
  • D is a self-referential structure
Answer: Option B
Q13
A structure
  • A allows arrray of structure
  • B does not allow array of structures
  • C does not use array as its members
  • D is a scalar data type
Answer: Option A
Q14
In a structure definition,
  • A initialization of structure members are possible
  • B initialization of array of structures are possible
  • C both options a and b
  • D initialization of array of structures are not possible
Answer: Option C
Q15
The operator exclusively used with pointer to structure is
  • A .
  • B _>
  • C []
  • D *
Answer: Option B
Q16
If one or more members of a structure are pointers to the same structute, the structute is known as
  • A nested structure
  • B invalid structure
  • C self-referential structure
  • D structured structure
Answer: Option C
Q17
If one or more members of a structure are other structures, the structure is known as
  • A nested structure
  • B invalid structure
  • C self-referential structure
  • D unstructured structure
Answer: Option A
Q18
What type of structure is created by the folowing definition ? struct first {... ; struct second *s;}; struct second {... ; struct first *f;};
  • A Nested structure
  • B Self-referential structure
  • C invalid structure
  • D Structured structure
Answer: Option B
Q19
The changes made in the members of a structure are not available in the calling function if
  • A pointer to structure is passed as argument
  • B the members other than pointer type are passed as arguments
  • C structure variable is passed as argument
  • D both options b and c
Answer: Option D
Q20
The changes made in the members of a structure ae available in the calling function if
  • A pointer to structure is passed as argument
  • B structure variable is passed
  • C the members other than pointer type are passed as arguments
  • D both options a and c
Answer: Option A
Questions and Answers for Competitive Exams Various Entrance Test