Home / Engineering / Problem Solving and Python Programming MCQs / Page 12

# Problem Solving and Python Programming MCQs | Page - 12

Dear candidates you will find MCQ questions of Problem Solving and Python Programming here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.

(A) true
(B) false
(C) ---
(D) ---

## `Q. 112) Which of these is false about recursion?`

(A) recursive function can be replaced by a non-recursive function
(B) recursive functions usually take more memory space than non-recursive function
(C) recursive functions run faster than non- recursive function
(D) recursion makes programs easier to understand

## `Q. 113) ,i+j) print(test(4,7))`

(A) 13
(B) 7
(C) infinite loop
(D) 17

## `Q. 114) 5 RECURSION`

(A) 011
(B) 110
(C) 3
(D) infinite loop

## `Q. 115) What is tail recursion?`

(A) a recursive function that has two base cases
(B) a function where the recursive functions leads to an infinite loop
(C) a recursive function where the function doesn’t return anything and just prints the values
(D) a function where the recursive call is the last thing executed by the function

## `Q. 116) , tot-2)`

(A) both a() and b() aren’t tail recursive
(B) both a() and b() are tail recursive
(C) b() is tail recursive but a() isn’t
(D) a() is tail recursive but b() isn’t

## `Q. 117) Which of the following statements is false about recursion?`

(A) every recursive function must have a base case
(B) infinite recursion can occur if the base case isn’t properly mentioned
(C) a recursive function makes the code easier to understand
(D) every recursive function must have a return value

(A) true
(B) false
(C) ---
(D) ---

## `Q. 119) What happens if the base condition isn’t defined in recursive programs?`

(A) program gets into an infinite loop
(B) program runs once
(C) program runs n number of times where n is the argument given to the function
(D) an exception is thrown

## `Q. 120) Which of these is not true about recursion?`

(A) making the code look clean
(B) a complex task can be broken into sub- problems
(C) recursive calls take up less memory
(D) sequence generation is easier than a nested iteration

Download our easy to use, user friendly Android App from Play Store. And learn MCQs with one click.