C - Structure and Union

C - Structure and Union
1. Structure is a
  • scalar data type
  • derived data type
  • both options a and b
  • primitive data type
Show Answer
2. Structure is a data type in which
  • each element must have the same data type.
  • each element must have pointer type only.
  • each element may have different data type
  • no element is defined.
Show Answer
3. C provides a facility for user defined data type using
  • pointer
  • function
  • structure
  • array
Show Answer
4. The keyword used to represent a structure data type is
  • structure
  • struct
  • struc
  • structr
Show Answer
5. Structure declaration
  • describes the prototype
  • create structure variable
  • defines the structure function
  • is not necessary
Show Answer
6. Structure definition
  • describes the prototype
  • creates structure variable
  • defines the structure function
  • is not necessary
Show Answer
7. Identify the wrong syntax
  • typedef struct (member declaration;}
  • struct tag {member declaration; } V1, V2;
  • typedef struct {member declaration;} NAME; NAME V1, V2;
  • typedef struct tag {member declaration;} NAME; NAME V1, V2;
Show Answer
8. Identify the wrong syntax.
  • struct tag {member declaration; };
  • struct tag {member declaration; }V1, V2;
  • struct tag {member declaration;}
  • struct tag {member declaration;} V1, V2;
Show Answer
9. The operator used to access the structure member is
  • *
  • .
  • []
  • &
Show Answer
10. A structure
  • can be read as a single entity
  • cannot be read as a single entiry.
  • can be displayed as a single entity
  • has member variables that cannot be individually read.
Show Answer
Questions and Answers for Competitive Exams Various Entrance Test