--:--









Quiz for Function declaration, definition, and calling

Course: C Language | Subject: Unit 4 | Topic: Functions in C



Logo

Q1: Which of the following correctly declares a function in C?

Logo

Q2: What is another term for a function declaration in C?

Logo

Q3: Which keyword is used to define a function in C?

Logo

Q4: Which part of a function specifies the actual body of execution?

Logo

Q5: How many times can a function be defined in a C program?

Logo

Q6: Which of the following correctly calls a function named display with no parameters?

Logo

Q7: What will happen if you call a function without declaring it first in C?

Logo

Q8: Which of the following is NOT part of a function declaration?

Logo

Q9: When a function is called, the control of the program

Logo

Q10: A function declaration must end with:

Logo

Q11: Which function in C is always executed first?

Logo

Q12: What is the return type of a function that does not return a value?

Logo

Q13: Which is the correct syntax for defining a function with no parameters and returning an integer?

Logo

Q14: A function can call:

Logo

Q15: Which is true about function overloading in C?

Logo

Q16: Which of the following is NOT a valid return type in C?

Logo

Q17: What is it called when a function calls itself?

Logo

Q18: If a function is declared but not defined, what happens?

Logo

Q19: Which of the following is an example of a parameter in a function?

Logo

Q20: What happens if a function does not have a return statement in C?

Are you ready to start test? Set your time limit