Contents

What is a structure in C language?
a) A structure is a collection of elements that can be of same datatype
b) A structure is a collection of elements that can be of different datatype
c) Elements of a structure are called members                                             
d) All of the these

d

What is the size of a C structure?
a) C structure is always 128 bytes
b) Size of C structure is the totatl bytes of all elements of structure
c) Size of C structure is the size of largest elements
d) None of the above

b

Explanation: Individually calculate the sizes of each member of a structure and make a total to get Full size of a structure.


Choose a correct statement about C structure elements?
a) Structure elements are stored on random free memory locations
b) structure elements are stored in register memory locations
c) structure elements are stored in contiguous memory locations
d) None of the above

c

A C structure or User defined datatype is also called……….
a) Derived data type
b) Secondary data type
c) Aggregate data type
d) All the above

d

What are the uses of C Structures?
a) structure is used to implement Linked Lists, Stack and Queue data structures
b) Structures are used in Operating System functionality like Display and Input taking
c) Structure are used to exchange information with peripherals of PC
d) All the above

d

Choose a correct statement about C structures.
a) A structure can contain same structure type member
b) A structure size is limited by only physical memory of that PC
c) You can define an unlimited number of members inside a structure
d) All the above

d