C Programming Fundarmentals Gk MCQ Questions SET-4 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. Break statement is used for

(i) Quit a program
(ii) Quit the current iteration
(iii) Both of above
(iv) None of above

(ii) Quit the current iteration

Q2. Find a Floating Point constant.

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

(iv) All of the above

Q3. The program execution starts from

(i) the function that is defined last.
(ii) the function which is defined first.
(iii) the main() function.
(iv) none of above

(iii) the main() function.

Q4. A “switch” statement is used to:

(i) Switch between user-defined functions in a program
(ii) Switch from one variable to another variable
(iii) Jump from one place to another in a program.
(iv) None of these.

(iv) None of these.

Q5. You can declare a string variable by using the ——— keyword in the C program.

(i) str
(ii) string
(iii) char
(iv) char having some size in the array

(iv) char having some size in the array

Q6. _ refers to the accuracy of the calculations.

(i) Integrity.
(ii) Clartiy.
(iii) Simplicity.
(iv) Modularity.

(i) Integrity.

Q7. Which of the following does not represent a valid storage class in c?

(i) static
(ii) union
(iii) extern
(iv) automatic

(ii) union

Q8. strcmp() function is used for:

(i) Copy two strings
(ii) Compare two strings.
(iii) Concatenation of two strings
(iv) None of these

(ii) Compare two strings.

Q9. Which format specifier is used for printing double value?

(i) %Lf
(ii) %L
(iii) %lf
(iv) None of the above

(iii) %lf

Q10. C Programs are used in .?

(i) Any Electronic device which works on some logic and Operating System.
(ii) Washing machine
(iii) Fridge, Microwave Ovens
(iv) All the above.

(iv) All the above.

Q11. We can insert pre written code in a C program by using

(i) #read
(ii) #get
(iii) #include
(iv) #put

(iii) #include

Q12. C Programs are used in

(i) Any Electronic device which works on some logic and Operating System.
(ii) Washing machine
(iii) Fridge, Microwave Ovens
(iv) All of the above

(iv) All of the above

Q13. Resolution refers to the

(i) number of pixels used on the screen
(ii) number of images that can be replaced at a given line
(iii) minimum size of image
(iv) all of above

(i) number of pixels used on the screen

Q14. The process of translating a source program into machine language is a function of:

(i) Compiler
(ii) Translator
(iii) Assembler
(iv) None of these.

(i) Compiler

Q15. What returns the modulus operator in the output?

(i) Dividend
(ii) Remainder
(iii) As per the user’s requirements
(iv) Firstly dividend, then the remainder.

(ii) Remainder

Q16. How many variables can be initialized at a time?

(i) one.
(ii) two.
(iii) Five.
(iv) any number of variables

(i) one.

Q17. C programming: The compiler will give an error if we attempt to get the address of a variable with _ storage class.

(i) register keyword
(ii) extern keyword
(iii) static keyword
(iv) auto keyword

(i) register keyword

Q18. int a[3]={4,5,6}; printf(“%u”,a); What is the output:

(i) Value of first element.
(ii) Address of first element
(iii) Both
(iv) None of these

(ii) Address of first element

Q19. The C compiler used for UNIX operating system is

(i) cc
(ii) gcc
(iii) vc++
(iv) Borland

(i) cc

Q20. What is length of an Identifier that is unique for Non Global Variables and Non Function Names.?

(i) 32
(ii) 63
(iii) 64
(iv) 68

(ii) 63

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