Enumeration and Recursion

Quiz
•
Computers
•
11th Grade - University
•
Medium
Carol Luce
Used 21+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why do you need to use a base case?
So that the code loops forever
So that the code does not loop forever
To exit the recursive function
To call another function
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the best definition of a recursive method?
A method that iterates itself exactly 5 times.
A method that invokes itself by name within the method.
A method that will never iterate infinitely.
A method that cannot be called more than once.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A 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 MAY 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 SELECT QUESTION
30 sec • 1 pt
Which of the following algorithms use recursion?
Linear Search
Binary Search
Merge sort
Insertion sort
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Iteration

Quiz
•
9th - 12th Grade
14 questions
DC and DP Quiz

Quiz
•
University
10 questions
Recursion

Quiz
•
12th Grade
10 questions
Agile Development

Quiz
•
University
17 questions
Python Loops

Quiz
•
University
15 questions
Technical Quiz R2

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

Quiz
•
9th - 12th Grade
15 questions
KUC DSA 02c Recursion Quiz

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade