19.2 Recursion Cambridge iA 9618

19.2 Recursion Cambridge iA 9618

12th Grade

20 Qs

quiz-placeholder

Similar activities

A Level Computing 1.2.4a Programming Paradigms

A Level Computing 1.2.4a Programming Paradigms

12th Grade

15 Qs

Python Functions

Python Functions

12th Grade

23 Qs

Computer Science Holiday Assignment

Computer Science Holiday Assignment

12th Grade

20 Qs

Recursion

Recursion

12th Grade

20 Qs

Recusion

Recusion

12th Grade

19 Qs

Java Recursion

Java Recursion

12th Grade

20 Qs

Python Functions

Python Functions

12th Grade

15 Qs

XII_CS_FUNCTIONS

XII_CS_FUNCTIONS

12th Grade

15 Qs

19.2 Recursion Cambridge iA 9618

19.2 Recursion Cambridge iA 9618

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Stephen Ling-Winston

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is recursion?

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?