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.

M

Mr. Dubey • 51.17K Points
Coach

Q. 111) Only problems that are recursively defined can be solved using recursion.

(A) true
(B) false
(C) ---
(D) ---
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

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
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

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

(A) 13
(B) 7
(C) infinite loop
(D) 17
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

Q. 114) 5 RECURSION

(A) 011
(B) 110
(C) 3
(D) infinite loop
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

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
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

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
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

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
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

Q. 118) Recursion and iteration are the same programming approach.

(A) true
(B) false
(C) ---
(D) ---
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

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
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

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
View Answer Discuss Share

Explore Sets

Problem Solving and Python Programming MCQs Set 1

Problem Solving and Python Programming MCQs Set 2

Problem Solving and Python Programming MCQs Set 3

Problem Solving and Python Programming MCQs Set 4

Problem Solving and Python Programming MCQs Set 5

Problem Solving and Python Programming MCQs Set 6

Problem Solving and Python Programming MCQs Set 7

Problem Solving and Python Programming MCQs Set 8

Problem Solving and Python Programming MCQs Set 9

Problem Solving and Python Programming MCQs Set 10

Problem Solving and Python Programming MCQs Set 11

Problem Solving and Python Programming MCQs Set 12

Problem Solving and Python Programming MCQs Set 13

Problem Solving and Python Programming MCQs Set 14

Problem Solving and Python Programming MCQs Set 15

Problem Solving and Python Programming MCQs Set 16

Problem Solving and Python Programming MCQs Set 17

Problem Solving and Python Programming MCQs Set 18

Problem Solving and Python Programming MCQs Set 19

Problem Solving and Python Programming MCQs Set 20

Problem Solving and Python Programming MCQs Set 21

Problem Solving and Python Programming MCQs Set 22

Problem Solving and Python Programming MCQs Set 23

Problem Solving and Python Programming MCQs Set 24

Problem Solving and Python Programming MCQs Set 25

Problem Solving and Python Programming MCQs Set 26

Problem Solving and Python Programming MCQs Set 27

Problem Solving and Python Programming MCQs Set 28

Problem Solving and Python Programming MCQs Set 29

Problem Solving and Python Programming MCQs Set 30

Problem Solving and Python Programming MCQs Set 31

Problem Solving and Python Programming MCQs Set 32

Problem Solving and Python Programming MCQs Set 33

Problem Solving and Python Programming MCQs Set 34

Problem Solving and Python Programming MCQs Set 35

Problem Solving and Python Programming MCQs Set 36

Problem Solving and Python Programming MCQs Set 37

Problem Solving and Python Programming MCQs Set 38

Problem Solving and Python Programming MCQs Set 39

Problem Solving and Python Programming MCQs Set 40

Problem Solving and Python Programming MCQs Set 41

Problem Solving and Python Programming MCQs Set 42

Problem Solving and Python Programming MCQs Set 43