C Programming Fundarmentals Gk MCQ Questions SET-7 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. In a 32-bit compiler, which 2 types have same size?

(i) char and int
(ii) int and float
(iii) short and int
(iv) float and double

(ii) int and float

Q2. C is _ type of programming language.

(i) Object Oriented
(ii) Procedural
(iii) Bit level language
(iv) Functional

(ii) Procedural

Q3. The public files in a class library usually contain

(i) class declarations
(ii) variable definitions
(iii) member function definitions
(iv) constant definitions

(i) class declarations

Q4. Maximum number of elements in the array declaration int a[5][8] is

(i) 28
(ii) 32
(iii) 35
(iv) 40

(iv) 40

Q5. The word char is a_______.

(i) keyword.
(ii) password.
(iii) header file.
(iv) statement.

(i) keyword.

Q6. Which of the following cannot be checked in a switch-case statement?

(i) Character
(ii) Integer
(iii) Float
(iv) enum

(iii) Float

Q7. An array can be declared:

(i) Statically
(ii) Dynamically
(iii) Both
(iv) None of these

(i) Statically

Q8. Single line comment in C language begins with _

(i) :
(ii) //
(iii) / (iv) /

(ii) //

Q9. Each statement in a C program should end with.?

(i) Semicolon ;
(ii) Colon :
(iii) Period (dot symbol)
(iv) None of the above.

(i) Semicolon ;

Q10. Which of the following is true about C Programming?

(i) Platform Independent
(ii) High level language
(iii) Machine Independent
(iv) Assembly language

(iii) Machine Independent

Q11. Which of the datatypes have size that is variable?

(i) int
(ii) struct
(iii) float
(iv) double

(ii) struct

Q12. High level language is a

(i) Human readable like language.
(ii) language with small program size.
(iii) language with big program size.
(iv) language which is difficult to understand and not human readable.

(i) Human readable like language.

Q13. A multidimensional array can be expressed in terms of

(i) array of pointers rather than as pointers to a group of a contiguous array
(ii) array without the group of a contiguous array
(iii) data type arrays
(iv) None of these

(i) array of pointers rather than as pointers to a group of a contiguous array

Q14. A real number is treated as ——— in the c program?

(i) A float variable
(ii) A double variable
(iii) A long variable
(iv) None of them.

(i) A float variable

Q15. The declaration of C variable can be done________.

(i) anywhere in the program.
(ii) in declaration part.
(iii) in executable part.
(iv) at the end of the program.

(ii) in declaration part.

Q16. C programming : If you want to store dissimilar data together, then which type you will use?

(i) array
(ii) structure
(iii) stack
(iv) None of the above.

(ii) structure

Q17. A function which invokes itself repeatedly until some condition is satisfied is called a __ function.

(i) Recursive
(ii) System
(iii) Library
(iv) None of these

i) Recursive

Q18. Which of the following function can be used to read an entire array or a structure in a single call?

(i) readblock()
(ii) READ()
(iii) read()
(iv) fread()

(iv) fread()

Q19. What is the difference between structure and union in the C program?

(i) Structure store different type variables, while union stores the same type variables.
(ii) The structure uses different memory locations, while the union uses the same memory location for their elements.
(iii) The structure can pass by value to the function, while the union can’t pass by value to the function.
(iv) None of the above

(ii) The structure uses different memory locations, while the union uses the same memory location for their elements.

Q20. n C++, when a multidimensional array is accessed, each array index is

(i) surrounded by brackets and separated by commas
(ii) surrounded by brackets
(iii) separated by commas and surrounded by brackets
(iv) separated by commas

(ii) surrounded by brackets

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