Search Header Logo

Chapter - 4 Recursions Textbook MCQs

Authored by vihutuo paira

Computers

12th Grade

Used 1+ times

Chapter - 4 Recursions Textbook MCQs
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is/are needed for recursion?

Expressing a function in terms of itself

Specifying the base condition

Both

None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following are the types of recursion?

Direct Recursion

Indirect Recursion

Both

None of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if no base case is specified, in a recursive procedure?

Stack overflow

Underflow

Compile time error

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following can be implemented using recursion?

Factorial

Power

Fibonacci series

All of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following can be intuitively implemented using recursion?

Binary Search

Linear Search

Both

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A list is to be reversed using recursion. Which of the following represents the base case?

rev(L) = L, if len(L) = 1

rev(L) = rev(L[1:]), if len(L) = 1

rev(L) = rev(L[1:]), if len(L) = 0

None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The sum of elements of a list is to be evaluated using recursion. Which of the following represents the base case?

sum(L) = L[0], if len(L) = 1

sum(L) = 0 , if len(L) = 0

Both

All of the above

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?