GATE CSE C Programming Practice Test – Recursion | Set 1

Questions 76-80 of 100

Your score 0/100 0 answered
Correct 0 Incorrect 0 Unanswered 100 Accuracy 0%

Question 76

MSQ · Multiple Correct 2 mark

Which of the following algorithms use recursive backtracking?

Answers for question 76

Question 77

MSQ · Multiple Correct 2 mark
CODE
Consider the following recursive function:
int f(int n) {
    if (n <= 1) return 1;
    return f(n - 1) + f(n - 2);
}
Which of the following statements are TRUE?
Answers for question 77

Question 78

MSQ · Multiple Correct 2 mark

Which of the following properties are true for function call stacks in C recursion?

Answers for question 78

Question 79

MSQ · Multiple Correct 2 mark

Which of the following function definitions are tail-recursive?

Answers for question 79

Question 80

MSQ · Multiple Correct 2 mark

Which of the following represent valid base cases for recursively traversing a singly linked list?

Answers for question 80
Scroll to Top