C Programming-Structure and Union
C Programming-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 is 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. 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
- struc
- struct
- structr
5. Structure declaration
- describes the prototype
- creates structure variable
- defines the structure function
- is not necessary
6. In a structure defination
- initialization of structure members are possible
- initialization of array of structures are possible
- both options a and b
- initialization of array of structures are not possible
7. If one or more members of a structure are pointer to the same structure the structure is known as
- nested structure
- invalid structure
- self-referential structure
- structured structure
8. If one or more members of a structure are other structures, the structure is known as
- nested structure
- invalid structure
- self-referential structure
- unstructured structure
9. What type of structure is created by the following definition ?
struct first {.....struct second *s;};
struct second {.....;struct first *f ;};
struct first {.....struct second *s;};
struct second {.....;struct first *f ;};
- Nested structure
- Self-referential structure
- Invalid structure
- Structured strcture
10. The changes made in the members of structure are not available in the calling function if
- pointer to structure is passed as argument
- the members other than pointer type are passed as arguments
- Structure variable is passed as argument
- both options b and c