UNIT – II
CONSTRAINTS, DATA TPES AND VARIABLE TYPES
1) Octal constants are written with a leading _____.
a)*zeros b)0x c)trailing L d)None
2) Hexa decimal constants are written with a leading ____.
a)zeros b)*0x c)trailing L d)None
3) Long constants are written with a trailing _____.
a)zeros b)0x c)*trailing L d)None
4) Single character constants are usually just the character enclosed within in _ quotes.
a)*Single b)double c)brackets d) None
5) ______ is used to get the new line .
a)*\n b)\t c)\\ d) None
6) ______ is used to get the tab space.
a)\n b)*\t c)\\ d) None
7) ______ is used to get the null.
a)\n b)\t c)*\0 d) None
8) A string constants is surrounded by ______ quotes.
a)Single b)*double c) brackets d) None
9) In , C language , a variable must be declared _____ it can be used.
a)*before b)after c) both d) None
10) Most _______ variables are created when the function is called and are destroyed on return from that function.
a)*local b)static c) global d) None
11) Variables can be initialized by using _____ symbol.
a)= = *b)= c)[] d) None
12) Char data type occupy ____ number of bytes.
a)*one b)two c)four d) None
13) Int data type occupy ____ number of bytes.
a)one b)*two c)four d) None
14) float data type occupy ____ number of bytes.
a)one b)two c)*four d) None
15) _ allows a user to define an identifier that would represent an existing data type .
a)*typedef b) struct c) union d) None
16) Every variable must be starting with _______
a)*letter b)Number c)both d) None
17) _ variables are declared within the body of function , and only be used within function.
a)*local b)global c)static d) None
18) A global variables must be declared outside of ____ function.
a)scanf() b)printf() c)*main() d)None
19) The external variables must be declared by using _____ word.
a)external b)*extern c)global d)None
20) The variables is not destroyed on exit from the function .
a)local b)*static c)global d)None
21) The static variables must be declared by using ___ word.
a)local b)*static c)global d)None
22) An _____is a collection of variables of the same data types.
a)structure b)*Array c)union d)None
23) An array having one variable name and using only one subscript value is called _.
a) *single dimension array b) double dimension array
c) multiple dimension array d) None
24) In array , subscript value starting from ____ value .
a)one b)*zero c)any number d)None
25) Subscript value should be mention with in ____ brackets.
a){} b)() c)*[ ] d) None
UNIT – II
CONSTRAINTS, DATA TPES AND VARIABLE TYPES
1 A 2 B 3 C 4 A 5 A
6 B 7 C 8 B 9 A 10 A
11 B 12 A 13 B 14 C 15 A
16 A 17 A 18 C 19 B 20 B
21 B 22 B 23 A 24 B 25 C