C Programming - C Basic Concepts Questions and Answers

C Programming Basic concept Multiple Choice Questions with Answers and PDF Download.
1. The value of automatic variable that is declared but not initialized will be?
[A] 0
[B] 1
[C] Unpredictable
[D] None of above
2. Choose the correct statement
[A] An identifier may start with an underscore
[B] An identifier may end with an underscore
[C] IF is a valid identifier
[D] All of above
3. The const feature can be applied to?
[A] An identifier
[B] An array
[C] An array argument
[D] All of above
4. The expression 5-2-3*5-2 will evaluate to 18 if ?
[A] - is left associative and * has precedence over -
[B] - is right associative and * has precedence over -
[C] - is right associative and - has precedence over *
[D] - if left associative and - has precedence over *
5. C language has been developed by ?
[A] . Dennis Ritchie
[B] Peter Norton
[C] Ken Thompson
[D] Martin Richards
6. Smallest element of Array Index is called
[A] Lower Bond
[B] Upper Bond
[C] Extraction
[D] Rang
7. Cons feature can be applied on
[A] identifier
[B] array
[C] Array Argument
[D] Function
8. Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?
[A] rem = 3.14 % 2.1
[B] rem = modf(3.14, 2.1);
[C] rem = fmod(3.14, 2.1);
[D] Remainder cannot be obtain in floating point division.
External Linkage-> means global, non-static variables and functions. Internal Linkage-> means static variables and functions with file scope. None Linkage-> means Local variables.
9. What are the types of linkages?
[A] Internal and External
[B] External and None
[C] External, Internal and None
[D] Internal
10. Is there any difference between following declarations?
1 : extern int fun();
2 : int fun();
[A] Both are identical
[B] No difference, except extern int fun(); is probably in another file
[C] int fun(); is overrided with extern int fun();
[D] None of these
Are these questions helpful for you?

Comments: (Your feedback is valuable to us)

nayana 6 years ago Reply

it's a great of study in helpfully