C Functions Questions and Answers

Practice Mode
Showing 10 of 151 questions
Q11
the parameters in a function call are
  • A actual parameters
  • B formal parameters
  • C dummy parameters
  • D optional
Answer: Option A
Q12
The parameters in a function definition are
  • A actual parameters
  • B formal parameters
  • C dummy parameters
  • D optional
Answer: Option B
Q13
the parameters passing mechanism used in C is
  • A call by reference
  • B call by name
  • C call be value
  • D options a and b
Answer: Option C
Q14
the storage class that can percede return data type in function declaration is
  • A extern
  • B static
  • C options a and b
  • D register
Answer: Option C
Q15
Recursive call results when
  • A a function calls itself
  • B a function1 calls another function, which in turn calls the function1
  • C options a and b
  • D a function calls another function
Answer: Option C
Q16
The main ( ) function calls in a C program
  • A allows recursive call
  • B does not allow recursive call
  • C is optional
  • D is a built - in function
Answer: Option A
Q17
the function main ( ) is
  • A a built- in function
  • B a user-defined function
  • C optional
  • D all the above
Answer: Option B
Q18
The storage class allowed for parameters is
  • A auto
  • B static
  • C extern
  • D register
Answer: Option D
Q19
Functions are assigned by default
  • A auto storage class
  • B static storage class
  • C extern storage class
  • D register storage class
Answer: Option C
Q20
Functions have
  • A file scope
  • B local scope
  • C block scope
  • D function scope
Answer: Option A
Questions and Answers for Competitive Exams Various Entrance Test