Hello students welcome to CSE Study247, Today I am provide you MCQs on Function in C.
This page provide 20 Multiple choice question with Answer that is very useful of Computer science students like preparation of many exam Like ( ISRO,DRDO ,Semester, Interview, TCS , Railway & another Government Sector)
❤️ TOP 500+ C Programming Question and Answer
C programming is the basic language of programming that help to learn another language. So this MCQ is very useful for you.

C is a general purpose ,high level language that originally developed by Dennis Ritchie to develop the UNIX operating system at Bell labs.
Q.1 What is the default return type of a function in C if it is not explicitly specified in the definition?
int
void
float
None
Explanation
In the C89/C90 standard, if a return type is not provided, the compiler defaults it to ‘int’. However, modern C standards recommend always specifying the return type.
Q.2 What is the default parameter passing mechanism used in the C programming language?
Call by value
Call by reference
Both A & B
None
Explanation
By default, C uses ‘Call by Value,’ meaning the function receives a copy of the actual arguments, and changes made to the parameters inside the function do not affect the original variables.
Q.3 Is it possible for a function in C to return an entire structure to the calling function?
TRUE
FALSE
May Be
None
Explanation
Yes, C allows functions to return structures. When a structure is returned, the entire set of data members is copied back to the caller.
Q.4 What are the two primary types of functions available in the C Language?
Library Functions
User Defined Functions
Both A & B
None
Explanation
Functions are categorized into Library Functions (built-in functions like printf) and User Defined Functions (custom functions created by the programmer).
Q.5 Which of the following is a requirement for matching function arguments between the call and the definition?
Number of arguments should be the same
Type of each argument should match
Order of arguments should be the same
All the above
Explanation
For a function to execute correctly, the arguments passed in the function call must match the function definition in count, data type, and sequence.
Q.6 Which of the following is an example of a function created by the programmer (User Defined)?
sum()
sqrt()
pow()
None
Explanation
Functions like sqrt() and pow() are part of the standard C math library, while sum() is a common example of a name used for a user-defined function.
Q.7 Which of the following is considered a primary advantage of using functions in programming?
It reduces the size of the program
Reduces complexity
Easier to understand and debug
All of these
Explanation
Functions promote modularity, which helps in code reusability, reduces redundancy, and makes the program logic much easier to manage and troubleshoot.
Q.8 Which characters are legally allowed to be used in a C function name identifier?
Alphabets, Numbers, %, $, _
Alphabets, Numbers, Underscore ( _ )
Alphabets, Numbers, %
None
Explanation
C naming rules state that identifiers can only consist of letters, digits, and the underscore character. They cannot contain special symbols or start with a digit.
Q.9 What is the maximum limit on the number of functions a single C program can contain?
1
50
100
No Limit
Explanation
There is no theoretical limit to the number of functions in a C program; it is only limited by the system’s available memory and resources.
Q.10 What do we call a function that contains a statement within its body to call itself?
Self Function
Recursive Function
Static Function
None
Explanation
A recursive function is a function that calls itself directly or indirectly, often used to solve mathematical problems like factorials or Fibonacci sequences.
Q.11 What are the functions that are already provided by the C compiler in various header files called?
User defined function
Predefined Function
Static Function
None
Explanation
Predefined functions, also known as Library functions, are built-in functions like scanf() and printf() that are ready to use upon including their respective header files.
Q.12 Which of the following are benefits associated with modular programming using functions?
Reusability of code
Better readability
Both A & B
None
Explanation
Modular programming allows developers to write code once and use it multiple times (reusability) while making the overall structure cleaner and easier to follow.
Q.13 Can a programmer create custom functions to perform specific tasks unique to their program's requirements?
True
False
Can't be said
None
Explanation
True. One of the core features of C is the ability for users to define their own functions to handle specific logic.
Q.14 What is the formal term used for the statement that declares a function's name, return type, and parameters?
Function definition
Function prototype
Function call
None
Explanation
A function prototype serves as a declaration that tells the compiler about the function’s interface before it is actually defined or used.
Q.15 In the context of function parameters, which type of variable is declared in the function's header to receive values from the caller?
Actual parameters
Formal parameters
Global variables
None
Explanation
Formal parameters are the variables defined in the function signature that act as placeholders for the values (actual parameters) passed during the function call.
| 1. Official Telegram | Click Here |
| 2. Telegram For CSE MCQs | Click Here |
| 3. You Tube | Click Here |