Programming in C - Functions and Recursions

1. In the following 'C' code, in which order the functions would be called?
a = ( f1(23,14 ) * f2 (12/14)) + f3 ();

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


2. What error would the following function give on compilation?
f(int a,int b)
{
int a;
a = 20;
return a;
}

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


3. It is necessary to declare the type of a function in the calling program if the function

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


4. What will be the value returned by the following function, when it is called with a value 11?
recur(int num)
if ( ( num/2) !=0 )
return ( recur(num/2 ) * 10+num%2 );
else return 1;

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


5. The function that actually created from a call to a template function is called

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


  • Recursion Programming Questions can be used to give quizzes by any candidate who is preparing for UGC NET Computer Science
  • This Recursion Programming Questions section will help you test your analytical skills in a tricky method, thereby giving you an edge over other students
  • Any student who wants to prepare for DOEACC A Level, DOEACC B Level, and DOEACC C level can also use these Objective Type Questions Answer.
  • All candidates who have to appear for the Kendriya Vidyalaya Entrance exam can also refer to this mcq section.
  • You can also get access to the Recursion Programming MCQ ebook.
  • Recursion Programming Questions can be used in the preparation of JRF, CSIR, and various other exams.
  • You can also download pdf for these Recursion Programming multiple-choice questions Answers.
  • This Recursion Programming Multiple Choice Questions Answers section can also be used for the preparation of various competitive exams like UGC NET, GATE, PSU, IES, and many more.
  • Recursion Programming Questions can be used to gain a credit score in various undergraduate and postgraduate courses like BSc, MSc and MCA
  • Recursion Programming Questions for UGC NET Computer Science

    Recursion Programming MCQ

    Recursion Programming Multiple choice questions