
AEM 249 Lecture 15

Quiz
•
Computers
•
University
•
Easy
Markeith Diamond
Used 7+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a recursive function?
A function that calls another function
A function that has no else statement
A function that has no base case
A function that calls itself
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the base case in a recursive function?
The else statement containing recursive function calls
The if statement referring to the end of the recursion
The statement where the function calls itself
The first statement in the function
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the depth of a function?
The number of if/else statements in a function
The number of recursive calls made to a function
The number of parameters in a function
The number of print statements in a function
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the else statement in a recursive function?
To contain the base case
To end the recursion
To print the final result
To contain recursive function calls
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the if statement in a recursive function?
To print the final result
To end the recursion
To contain the base case
To contain recursive function calls
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the count parameter in count_down function?
To determine the depth of the function
To determine the base case
To determine the number of recursive calls
To determine the output of the function
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the print statement in count_down function?
To determine the base case
To contain recursive function calls
To end the recursion
To print the final result
Similar Resources on Wayground
8 questions
J277 - 2.2 - Use of Arrays up to 2D

Quiz
•
10th Grade - University
10 questions
FOP - CHAPTER 3

Quiz
•
University
10 questions
cybercrime

Quiz
•
12th Grade - University
6 questions
SORTING

Quiz
•
University
10 questions
Mastering Microsoft 365 Applications

Quiz
•
12th Grade - University
5 questions
Application of Stack & Queue in Embedded Systems

Quiz
•
University
12 questions
C/C++ C Function

Quiz
•
University
11 questions
Time Complexity Review

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University