C Programming Questions & Answers: part8



Software Programming : C Programming QUESTIONS AND ANSWERS :: part8 : 6 to 10

Following Software Programming language Entrance Multiple choice objective type questions and answers will help you in Software Programming 2024 examinations :

6.What is the meaning of self-referential structure?

Array of structure
Single structure
Structure calling it�s parent structure
Structure calling another structure
List of structure.

7.Read the following statements carefully, and pick the correct answer. I. An external variable declaration must begin with storage class specifier extern. II. Scope of an automatic variable can be smaller than the entire function. III. An automatic variable keeps its final value even after its function is terminated.

(I), (II) are TRUE and (III) is False
(I), (III) are TRUE and (II) is False
(II), (III) are TRUE and (I) is False
All are TRUE
All are FALSE.

8.What is the output for the following statement, if the initial value of x is 20 Printf (�%d,%d,%d,%d,%d�, x++, x--, --x, ++x, x--);

20,21,19,20,20
20,21,19,20,21
18,19,19,20,20
19,19,19,20,20
19,18,19,20,19.

9.While declaring an array in C as : datatype arrayname[size]; the size can be

Any constant
An integer constant
Any variable
Any initialized integer variable
Both (opt2) and (opt4) above.

10.How is a variable accessed from another file?

The global variable is referenced via the extern specifier
The global variable is referenced via the auto specifier
The global variable is referenced via the global specifier
The global variable is referenced via the pointer specifier
The global variable is referenced via the ext specifier.

More C Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
Innovation distinguishes between a leader and a follower.-Steve Jobs