What is needed to access the elements of the structure ?
The instance of the structure
Structure name
Struct keyword
Structure tag
Which keyword is used for defining a structure ?
Structure
Struct
Str
Stru
Which of the following accesses a variable in structure *b ?
b->var;
b.var;
b-var;
b>var;
What is the alterantive name of data elements in structures ?
Objects
Members
Datas
None of the mentioned
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.
Which of the following can group data elements ?
Array
Array list
Class
Which operator is used to access a structure member ?
. (dot) operator
= (assignment) operator
, (comma) operator
:: (scope) operator
What is the syntax for accessing a structure member ?
Structvar::member name
Structvar.member name
Strvar;member name
Strvar::member name
What is the advantage of structure over arrays ?
Group variables of similar type.
Have lot of memory space.
Group variables of different type
Easy to access
What will be used when terminating a structure ?
:
}
;
;;