Which keyword is used for defining a structure ?
Structure
Struct
Str
Stru
Which of the following can group data elements ?
Array
Array list
Class
Why structures are defined globally ?
You save many lines of code by not rewriting an identical structure definition in each function that uses it.
You will never change its definition.
It is required in C++.
All of the above.
What is the syntax for accessing a structure member ?
Structvar::member name
Structvar.member name
Strvar;member name
Strvar::member name
Which operator is used to access a structure member ?
. (dot) operator
= (assignment) operator
, (comma) operator
:: (scope) operator
What is nested structure ?
Structure within a structure
Looped structure
Structure lader
Iterative structure
Which is the most efficient method of dealing with structure variable ?
Define the structure globally.
Define the structure locally.
Define the structure externally.
None of the above
Which of the following can be a definition for structure ?
Literal
User defined variable
Pre defined variable
User defined data type
What is the use of structure definition ?
It create structure variables.
It create structure tag.
It create structure definition.
It create structure member.
What is the use of structures in C++ ?
Provides a way to bind data and function together.
Provides a way to group data elements.
Provides a way to break the data elements into functions.
Provides a way to allocate data elements.