Recursive Algorithms

Recursive Algorithms

12th Grade

15 Qs

quiz-placeholder

Similar activities

ZOOM QUIZ

ZOOM QUIZ

1st - 12th Grade

10 Qs

loop while/do while

loop while/do while

7th - 12th Grade

10 Qs

ICT WEBINAR QUIZ

ICT WEBINAR QUIZ

KG - Professional Development

20 Qs

Tin học 10 _ Bài 16 _Định dạng văn bản

Tin học 10 _ Bài 16 _Định dạng văn bản

10th - 12th Grade

10 Qs

EMPTECH L4 Q3

EMPTECH L4 Q3

12th Grade

10 Qs

Microcontroller

Microcontroller

11th Grade - University

10 Qs

Input, output and storage de

Input, output and storage de

8th Grade - Professional Development

14 Qs

IT (data, viruses and more)

IT (data, viruses and more)

8th Grade - Professional Development

20 Qs

Recursive Algorithms

Recursive Algorithms

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

R Woodruff

Used 72+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not essential in a recursive algorithm?

Base Case

Recursive Case

Contains a stack

Stop after a finite number of calls

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The sub routine calls itself within the algorithm

Base Case

Recursive Case

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The sub routine has a stopping condition that causes it to unwind

Base Case

Recursive Case

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A recursive algorithm must always contain a base case

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

RuntimeError: maximum recursion depth exceeded

: what does this mean

The program has crashed because it is taking too long

The program has crashed because it has run out of memory

The program has crashed because the user entered the wrong value

The program has crashed because a variable had the wrong variable name

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the base case?

n

n - 1

n = n + calcSum (n-1)

if n > 0

7.

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 calls itself by name within the method.

A method that will never iterate infinitely.

A method that cannot be called more than once.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?