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
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.
3. C provides a facility for user defined data type using
- pointer
- function
- structure
- array
4. The keyword used to represent a structure data type is
- structure
- struct
- struc
- structr
5. Structure declaration
- describes the prototype
- create structure variable
- defines the structure function
- is not necessary
6. Structure definition
- describes the prototype
- creates structure variable
- defines the structure function
- is not necessary
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;
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;
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.