iGET

C Programming - MCQ Practice Questions

Practice free C Programming multiple-choice questions with detailed answers and explanations. Perfect for competitive exam preparation.

978 questions | 100% Free

Q.81Easy

Which keyword is used to pass arguments by reference in C?

Q.82Medium

Which of the following correctly demonstrates function recursion termination?

Q.83Medium

What does the const qualifier do when applied to function parameters?

Q.84Medium

Which statement about extern functions is correct?

Q.85Medium

What is the primary purpose of function pointers in C?

Q.86Hard

How are function arguments evaluated in C?

Q.87Easy

What is the difference between declaring a function and defining a function?

Q.88Hard

In the context of function pointers, what does the restrict keyword do?

Q.89Medium

Which of the following is a valid way to return multiple values from a function in C?

Q.90Medium

What happens if a function is declared but never defined in C?

Q.91Medium

Consider a function that modifies an array passed as a parameter. Which statement is true?

Q.92Medium

What is the purpose of function inlining in modern C compilers?

Q.93Hard

Which of the following about variadic functions is true?

Q.94Hard

What is a callback function in C?

Q.95Hard

In C, what is the relationship between array parameters and pointers in functions?

Q.96Medium

Which of the following demonstrates proper use of the return statement in error handling?

Q.97Medium

A function in C is declared as: int calculate(int *arr, int size). When this function modifies the array elements, what happens to the original array passed from the calling function?

Q.98Easy

Consider the function declaration: void func(int x); and later in the code: int result = func(5);. What will be the compilation result?

Q.99Hard

In a recursive function implementing factorial calculation, the base case is missing. What is the most likely consequence during execution?