UNIT – 9
STRUCTURES IN C
1) A _____ is a collection of different types of variables under a single name.
a) *Structure b)pointer c)Array d)None
2) A ____ is convenient way of grouping several pieces of related information together.
a) *Structure b)pointer c)Array d)None
3) A ____ define the name a new type, allowing its use throughout the program.
a) struct b)*typedef c)array d) None
4) The structure tag is used to declare variables of the type structure also called as _____.
a) * structure variable b)structure pointer c)structure array d) None
5) A _____ symbol is used to select a member from a structure.
a) *dot(.) b) comma(,) c) dollar ($) d) None
6) A _____ symbol is used to select a member from a structure pointer.
a) dot(.) b) comma(,) *c) d) None
7) Structure initializing the values like a array . (true / false)
a) *true b) false c) None
8) A _____ is a collection of variables of different types just like a structure.
a) pointer b) array c) *union d) None
9) Once a new value is assigned to a field in the union, the existing data is __ with the new data.
a) *wiped over b)adding c)editing d) None
10) The size of union is size of its _______.
a)all fields b)*large field c) small field d) None
11) In the original C (kernighan & Ritchie 1st edition ), it was not possible
to pass a structure. ( true / false) a)*true b)false c) None
12) Struct emp employees. Here employees is called ________-
a)structure tag b)*structure variable c) structure pointer d) None
13) Struct emp employees. Here emp is called ________-
a) *structure tag b)structure variable c)structure pointer d) None
14) Struct item
{ char itname[20];
int qty;
}
here , itname is called __________
a)structure element b)structure member c) *a & b d) None
15) _____ key word is used to declare the union .
a) struct b) *union c) extern d) None
UNIT – 9
STRUCTURES IN C
1 A 2 A 3 B 4 A 5 A
6 C 7 A 8 C 9 A 10 B
11 A 12 B 13 A 14 C 15 B