C Programming - C Basic Concepts Questions and Answers

C Programming : C Basic Concepts

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
Loading...
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
Loading...
3. The const feature can be applied to?
[A] An identifier
[B] An array
[C] An array argument
[D] All of above
Loading...
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 *
Loading...
5. C language has been developed by ?
[A] . Dennis Ritchie
[B] Peter Norton
[C] Ken Thompson
[D] Martin Richards
Loading...
6. Smallest element of Array Index is called
[A] Lower Bond
[B] Upper Bond
[C] Extraction
[D] Rang
Loading...
7. Cons feature can be applied on
[A] identifier
[B] array
[C] Array Argument
[D] Function
Loading...
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.
Loading...
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
Loading...
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
Loading...

Are these questions helpful for you?



Comments: (Your feedback is valuable to us)

dip 2 months ago Reply

good topics


nayana 1 year ago Reply

it's a great of study in helpfully


arun 1 year ago Reply

super to score good marks

nayana 1 year ago

hi arun i am nayana which on class are you study.