Function MCQs

223 questionsC-ProgramPage 3 of 25

Practice free Function multiple-choice questions with instant answer feedback and step-by-step solutions. Click an option to check yourself, reveal the full explanation, and work through all 223 questions — no login required.

Question 19easy
In C, what is a function's prototype?
Question 20easy
What is the result of the expression floor(5.7) in C, assuming proper inclusion of the math library?
Question 21easy
In C, what is the purpose of the 'inline' keyword when used with a function?
Advertisement
Question 22easy
What is a function parameter in C?
Question 23easy
What is the result of the expression ceil(3.2) in C, assuming proper inclusion of the math library?
Question 24easy
In C, what is the purpose of the 'const' keyword when used with a function parameter?
Advertisement
Question 25easy
How can you declare a function in C that takes a variable number of arguments?
Question 26easy
In C, what is the purpose of the 'recursion' in a function?
Question 27easy
What is the result of the expression pow(2, 3) in C, assuming proper inclusion of the math library?