Interview Questions Of C Programming
Hello Guys!!!! All of You wants a good job and every company puts some questions for you for selection in interview.So today I am going to tell about some interview questions of c programming which is given below....
1. 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.
Answer: Option C
2. What are the types of linkages?
A.Internal and External
B.External, Internal and None
C.External and None
D.Internal
Answer: Option B
3. Which of the following special symbol allowed in a variable name?
A.* (asterisk)
B.| (pipeline)
C.- (hyphen)
D._ (underscore)
Answer: Option D
4. 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
Answer: Option B
5. How would you round off a value from 1.66 to 2.0?
A.ceil(1.66)
B.floor(1.66)
C.roundup(1.66)
D.roundto(1.66)
Answer: Option A
You can download these questions by click on download link given below...
Download C Programming Qns.
I hope this post will help you.
Thanks !!
If still you have some query regarding to this then please post your comment after that i will 100% help you…:)








0 comments:
Post a Comment