C Programming Fundarmentals Gk MCQ Questions SET-3 with Answers free PDF

We have provide here is the list of C Programming Fundarmentals GK MCQs for the preparation competitive exams. Each question has four options followed by the right answer.

MCQ Questions for C Programming Fundarmentals with Answers

Q1. Exit() is same as return

(i) TRUE
(ii) FALSE
(iii) Both
(iv) None of the above

(ii) FALSE

Q2. What is the output Filename of C Program build process?

(i) filename.ex
(ii) filename.bak
(iii) filename.exe
(iv) filename.asm

(iii) filename.exe

Q3. What is the file extension for driver files?

((i) font
(ii) chr
(iii) bgi
(iv) txt

(iii) bgi

Q4. What is used as a terminator in C?

(i) ?
(ii) ;
(iii) :
(iv) _

(ii) ;

Q5. To get the remainder value in the division of two float values, we use ——– in the C program?

((i) %, i.e., rem = 25.23 % 3.24
(ii) modf, i.e., rem = modf(25.23, 3.24)
(iii) fmod, i.e., rem = fmod(25.23, 3.24)
(iv) Not possible to obtain the remainder value in the division of float values

(iii) fmod, i.e., rem = fmod(25.23, 3.24)

Q6. The & operator displays________.

(i) address of the variable.
(ii) value of the variable.
(iii) result of the variable
(iv) both (i) & (ii).

(i) address of the variable.

Q7. The C language is.

(i) A context sensitive language
(ii) A regular language
(iii) A context free language
(iv) None of the above.

(iii) A context free language

Q8. Which function is not related to file handling:

((i) fopen();
(ii) fclose();
(iii) fprintf();
(iv) printf();

(iv) printf();

Q9. The statement used for printing \n on the screen is:

((i) printf(“”);
(ii) printf(‘\n’);
(iii) printf(“\n”);
(iv) printf(“n\”);

(iii) printf(“\n”);

Q10. Number of Keywords present in C Language are .?

(i) 32
(ii) 34
(iii) 62
(iv) 64

(i) 32

Q11. Due to variable scope in c

(i) Variables created in a function cannot be used another function
(ii) Variables created in a function can be used in another function
(iii) Variables created in a function can only be used in the main function
(iv) None of above

(i) Variables created in a function cannot be used another function

Q12. A Variable of a particular type can hold only a constant of the same type. Choose right answer.

(i) TRUE
(ii) FALSE
(iii) It depends on the place the variable is declared.
(iv) None of the above.

(i) TRUE

Q13. Minimum number of times the do while loop will be executed?

((i) 0
(ii) 1
(iii) Cannot be predicted
(iv) None of above

(ii) 1

Q14. C is a __ level programming language?

(i) Low
(ii) High
(iii) Middle
(iv) None of these.

(iii) Middle

Q15. Which type of iterators is used to iterate a vector in the C program?

((i) Forward iterator
(ii) Random access iterator
(iii) Bi-directional iterator
(iv) All of the above

(iv) All of the above

Q16. What is the value of sizeof(char)?

(i) 1.
(ii) 0.
(iii) -1.
(iv) -2.

(i) 1.

Q17. C programming:The given expression P– = Q+1 is same as

(i) P=P – Q – 1
(ii) P=P – Q + 1
(iii) P= –P + Q + 1
(iv) None of the above.

(i) P=P – Q – 1

Q18. Which is the incorrect function prototype:

((i) int add(int,int);
(ii) int add(float, int);
(iii) float add(int,int);
(iv) float add(float,int);

(ii) int add(float, int);

Q19. In a library of C programming language, which of the following header file is used for performing mathematical operations?

((i) conio.h
(ii) dos.h
(iii) math.h
(iv) stdio.h

(iii) math.h

Q20. Find a Floating Point constant.

(i) 12.3E5
(ii) 12e34
(iii) 125.34857
(iv) All the above.

(iv) All the above.

We hope the given General Knowladge MCQ Questions for C Programming Fundarmentals GK with Answers PDF Free Download will help you. If you have any queries regarding Computer Introduction MCQs Multiple Choice Questions with Answers, drop a comment below and we will get back to you soons.

Leave a Comment