Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Groups
Community ▾
A
A
Which is true about recursion and loops? | StemPy Lab
Quizzes
/
Which is true about recursion and loops?
Python Programming
Easy
High School (9–10)
High School (11–12)
Undergraduate
General
Python Essentials › Recursion
Created by
StemPy Lab
Which is true about recursion and loops?
Recursion needs no base case
Loops cannot do what recursion does
Recursion is always faster
Anything done with recursion can also be done with a loop
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← How many digits does count_digits(4729) find, if count_digits(n) is 1 when n < 10 and otherwise 1 + count_digits(n // 10)?
A student says that the simple recursive fibonacci(30) is as quick as fibonacci(5). What is the mistake? →
More on
Python Essentials › Recursion
Discussion (0)
Log in
to join the discussion.
Loading…
Problems on this topic
A staircase has n steps. You climb one step or two steps at a time.
Medium
Without running anything, say how many subsets there are for lists of 5, 10 and 20 items.
Medium
For each function, say whether a memory (a dictionary of answers) would help, and why.
Easy
Write a recursive function all_positive(items) that gives True if every item of the list is more…
Medium
All problems on this topic →