Examlex

Solved

What Is the Output of the Following Code Fragment

question 18

Multiple Choice

What is the output of the following code fragment?
Int f1int n, int m)
{
Ifn < m)
Return 0;
Else ifn==m)
Return m+ f1n-1,m) ;
Else
Return n+ f1n-2,m-1) ;
}
Int main)
{
Cout << f15,4) ;
Return 0;
}


Definitions:

Open-Ended Question

A type of question that allows for a free-form response, encouraging a detailed, subjective answer.

Hypothetical Question

A question based on fictional scenarios, used to assess or illustrate a point rather than solicit factual responses.

Leading Question

A question that suggests or "leads" to a desired answer. Interviewers may use leading questions to elicit responses from witnesses who otherwise would not be forthcoming.

Leading Question

A type of question posed during a legal examination that suggests the answer or contains the information the examiner is looking to have confirmed.

Related Questions