
Computer Science Recursion Quiz

Passage
•
Computers
•
12th Grade
•
Easy
CRYSTAL DEMOURA
Used 2+ times
FREE Resource
29 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is recursion in computer science?
A) A method of simplifying a complex problem by breaking it into sub-problems
B) A powerful concept that involves a function calling itself until a specific condition is met
C) A data structure used to store elements in a contiguous memory location
D) A type of algorithm that prevents infinite loops in programming
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure is most commonly used for recursion to keep track of function calls?
A) Queue
B) Array
C) Stack
D) Map
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What principle do stacks operate on?
A) "First In, First Out" (FIFO)
B) "Last In, First Out" (LIFO)
C) "First Come, First Served" (FCFS)
D) "First In, Last Out" (FILO)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What makes linked lists suitable for dynamic insertion and deletion of elements?
A) They store elements in a contiguous memory location
B) Each node contains a value and a pointer to the previous node
C) They follow the "First In, First Out" (FIFO) principle
D) Each node contains a value and a pointer to the next node
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Queues follow which principle?
A) "First In, Last Out" (FILO)
B) "Last In, First Out" (LIFO)
C) "First In, First Out" (FIFO)
D) "Last Come, First Served" (LCFS)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the base condition in the recursive summation function provided in the learning material?
if n == 1
if n < 1
if n == 0
if n > 0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the recursive factorial function return when the base condition is met?
0
n
1
n - 1
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
3.3: Algorithmau Trefnu

Quiz
•
12th Grade
30 questions
REMIDI PBO

Quiz
•
12th Grade
30 questions
SOAL JAVASCRIPT

Quiz
•
12th Grade
28 questions
2.3 - Sorting Algorithms

Quiz
•
11th - 12th Grade
25 questions
Quiz di Programmazione

Quiz
•
2nd Grade - University
25 questions
JavaScript Certification Quiz

Quiz
•
12th Grade
29 questions
JavaScript

Quiz
•
9th - 12th Grade
31 questions
Unit #3 JavaScript

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