Recursive Functions in Python

Recursive Functions in Python

12th Grade

10 Qs

quiz-placeholder

Similar activities

Practice for 10th AP Java quiz (old)

Practice for 10th AP Java quiz (old)

10th - 12th Grade

11 Qs

AP CSA Recursion

AP CSA Recursion

9th - 12th Grade

10 Qs

icpcNU_ Loops and Arrays

icpcNU_ Loops and Arrays

12th Grade

15 Qs

7. PYTHON FUNCTIONS - 3

7. PYTHON FUNCTIONS - 3

12th Grade

10 Qs

Y7 - CY2 - Knowledge Test

Y7 - CY2 - Knowledge Test

9th - 12th Grade

10 Qs

KS3 - Selection, Iteration or Sequence

KS3 - Selection, Iteration or Sequence

KG - 12th Grade

9 Qs

XII_CS_FUNCTIONS

XII_CS_FUNCTIONS

12th Grade

15 Qs

Recursion Practice, Recursion Practice, Recursion Practice...

Recursion Practice, Recursion Practice, Recursion Practice...

10th Grade - University

10 Qs

Recursive Functions in Python

Recursive Functions in Python

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Shikha Gupta

Used 151+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A recursive function is

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

Media Image

What is the returned value of recmethod(5)?

68

70

75

82

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?