--:--









Quiz for Return values and arguments

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



Logo

Q1: Which keyword is used to return a value from a function in C?

Logo

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

Logo

Q3: How many values can a C function return directly?

Logo

Q4: Which of the following passes a copy of the argument to a function?

Logo

Q5: When passing by reference, changes made to the parameter:

Logo

Q6: Which of the following is not a valid return type in C?

Logo

Q7: If a function has return type int but no return statement, it returns:

Logo

Q8: Which function type allows returning a pointer?

Logo

Q9: Which argument passing method is default in C?

Logo

Q10: A return statement without expression is valid in:

Logo

Q11: Which of these can be used to return multiple values from a function?

Logo

Q12: Returning a local variable's address from a function is:

Logo

Q13: What will be the return type of main() in standard C?

Logo

Q14: A function call inside another function's return statement is called:

Logo

Q15: What happens if return type and returned value type mismatch?

Logo

Q16: Which of these returns control to the calling function?

Logo

Q17: Arguments inside a function header are called:

Logo

Q18: Values passed in the function call are called:

Logo

Q19: Which keyword ends the execution of a function immediately?

Logo

Q20: To return a character from a function, use return type:

Are you ready to start test? Set your time limit