Computer Science Recursion Quiz

Computer Science Recursion Quiz

12th Grade

29 Qs

quiz-placeholder

Similar activities

#100 Devs - LwL - class 15

#100 Devs - LwL - class 15

10th Grade - Professional Development

25 Qs

ONE 6th FORM Karnaugh Maps and Recursion

ONE 6th FORM Karnaugh Maps and Recursion

12th Grade

25 Qs

T8 - ÔN TẬP  CUỐI HK2 (22-23) (2)

T8 - ÔN TẬP CUỐI HK2 (22-23) (2)

9th - 12th Grade

25 Qs

Unit 7 APCSA

Unit 7 APCSA

9th - 12th Grade

25 Qs

SAD 1 Test Review 5

SAD 1 Test Review 5

9th - 12th Grade

35 Qs

Arrays and Strings in C

Arrays and Strings in C

12th Grade - University

32 Qs

JavaScript Arrays

JavaScript Arrays

10th - 12th Grade

30 Qs

Python Quiz

Python Quiz

12th Grade

30 Qs

Computer Science Recursion Quiz

Computer Science Recursion Quiz

Assessment

Passage

Computers

12th Grade

Easy

Created by

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

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?