A recursive function is
Recursive Functions in Python

Quiz
•
Computers
•
12th Grade
•
Medium
Shikha Gupta
Used 151+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A function that calls other functions in a recursive way.
Any function that calls itself is called recursive
A function that has a base case or termination condition
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Name the condition at which the recursive method will stop calling itself.
Base case
Worst Case
Best Case
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The program may run out of memory in a
non-recursive function call
recursive function call
condition when too many variables are declared
none of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following condition is true?
Recursion is always better than iteration.
Recursion uses more memory as compared to iteration.
Recursion uses less memory as compared to iteration.
Iteration is always better and simpler than recursion.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following problems can be solved using recursion?
finding Nth number of the Fibonacci sequence
finding the factorial of a number
finding the length of a string
all of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Recursion is similar to which of the following?
if-else
switch-case
loops
none of the above
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the returned value of recmethod(5)?
68
70
75
82
Create a free account and access millions of resources
Similar Resources on Quizizz
13 questions
Stepwise Refinement

Quiz
•
11th - 12th Grade
10 questions
IT English Essentials: Unit 13 - Quiz 1

Quiz
•
12th Grade
15 questions
Recursion in Java

Quiz
•
11th - 12th Grade
12 questions
Enumeration and Recursion

Quiz
•
11th Grade - University
15 questions
Technical Quiz R2

Quiz
•
12th Grade
10 questions
Recursion in Java (AP Computer Science A)

Quiz
•
9th - 12th Grade
10 questions
APCS 2023-2024 Lesson 0.2 Course Overview

Quiz
•
9th - 12th Grade
15 questions
Code.org - Unit 6 Review

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University