What is recursion?
19.2 Recursion Cambridge iA 9618

Quiz
•
Computers
•
12th Grade
•
Hard

Stephen Ling-Winston
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A function calling itself
A function that never returns
A function without parameters
A function that executes a loop
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the base case in recursion?
A condition that stops further recursive calls
A condition that ensures infinite recursion
The first function call in recursion
A case where the function calls itself multiple times
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure does recursion primarily use?
Stack
Queue
Heap
Array
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a key property of recursion?
Base case
Recursive case
Function calling itself
Function never terminating
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if the base case is missing in a recursive function?
The program crashes due to a stack overflow
The function stops executing immediately
The compiler automatically fixes the problem
The recursion converts to an iterative loop
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these problems is best solved using recursion?
Calculating Fibonacci numbers
Searching for an element in an unsorted array
Adding numbers in a list using a loop
Swapping two numbers in memory
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which sorting algorithm is often implemented using recursion?
Merge Sort
Bubble Sort
Selection Sort
Bucket Sort
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
002_Java Methods

Quiz
•
12th Grade - University
15 questions
C# Loops (All)

Quiz
•
9th - 12th Grade
20 questions
Subroutines - Procedures & Functions

Quiz
•
9th - 12th Grade
20 questions
Data and simulations

Quiz
•
12th Grade
23 questions
Python Functions

Quiz
•
12th Grade
15 questions
Recursion in Python Quiz

Quiz
•
12th Grade
20 questions
9618 Chp11 Programming Basics Quiz

Quiz
•
11th Grade - University
18 questions
Programming in C language

Quiz
•
12th Grade - University
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