MCQs on Variable Initialisation
Q1. Global variable are available to all functions. Does there exist a mechanism by way of which it available to some and not to others.
Q2. Which of the following special symbol allowed in a variable name?
A. * (asterisk)
B. | (pipeline)
C. _ (underscore)
Q3. By default a real number is treated as a
C. long double
Q4. Is the following statement a declaration or definition?
extern int i;
Q5. A float is 4 bytes wide, whereas a double is 8 bytes wide.
Q6. Size of short integer and long integer can be verified using the sizeof() operator.
Q7. Which of the declaration is correct?
A. int length;
B. char int;
C. int long;
Q8. Which of the following correctly represents a long double constant?