Examlex
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;
}
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.
Q2: How do you ensure that your function
Q3: Which of the following is a valid
Q5: Which type of exception is thrown if
Q11: For a vector, inserting or deleting invalidates
Q23: A constructor of the base class is
Q27: Mold-lactic fermentation results in a unique fermented
Q30: Give a base class with at least
Q41: We have a file that has a
Q51: If class A is derived from class
Q53: Given the following class and array declaration,