A function that is called by itself, either directly or indirectly is called a

Recursion Function Usage

Quiz
•
Mathematics, Computers
•
University
•
Hard
Yomna Elkholy
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Super function
Recursive function
Main function
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following problems can’t be solved using recursion?
Factorial of a number
Nth Fibonacci number
Length of a string
Problems without base case
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In recursion, the condition for which the function will stop calling itself is ___________
Best case
Worst case
Base case
There is no such condition
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen when the following code is executed?
The code will be executed successfully and no output will be generated
The code will be executed successfully and random output will be generated
The code will show a compile time error
The code will run for some time and stop when the stack overflows
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
10
1
10 9 8 … 1 0
10 9 8 … 1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the base case of the program?
return
printf(“%d “, n)
if(n == 0)
my_recursive_function(n-1)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is true?
Recursion is always better than iteration
Recursion uses more memory compared to iteration
Recursion uses less memory compared to iteration
Iteration is always better and simpler than recursion
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
DRAINER CS : Data Structures Final Review

Quiz
•
University
15 questions
SECOND PERIODICAL QUIZ - BLENDED - ITE 260

Quiz
•
University
15 questions
002_Java Methods

Quiz
•
12th Grade - University
14 questions
python functions

Quiz
•
University
10 questions
Weekly Contest #10 - TechXNinjas

Quiz
•
University
10 questions
Logical Programming Paradigm Quiz

Quiz
•
University
15 questions
C programming

Quiz
•
University
15 questions
SDLC

Quiz
•
7th Grade - University
Popular Resources on Quizizz
20 questions
math review

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
10 questions
Human Body Systems and Functions

Interactive video
•
6th - 8th Grade
19 questions
Math Review

Quiz
•
3rd Grade
45 questions
7th Grade Math EOG Review

Quiz
•
7th Grade