ONE 6th FORM Recursion basics

ONE 6th FORM Recursion basics

11th Grade

19 Qs

quiz-placeholder

Similar activities

GCSE Computer Science - Python Programming Concepts

GCSE Computer Science - Python Programming Concepts

9th - 11th Grade

17 Qs

Subroutines

Subroutines

9th - 11th Grade

16 Qs

2.2.1 Programming techniques

2.2.1 Programming techniques

11th Grade

20 Qs

General Python year 10

General Python year 10

9th Grade - University

20 Qs

8525 GCSE CS 3.2.10 Structured programming and subroutines

8525 GCSE CS 3.2.10 Structured programming and subroutines

10th - 11th Grade

19 Qs

CS J277 Unit 7 Programming

CS J277 Unit 7 Programming

11th Grade

20 Qs

09-Subroutines-GCSE-Python

09-Subroutines-GCSE-Python

11th Grade

15 Qs

ACP Theory 1.1

ACP Theory 1.1

KG - University

20 Qs

ONE 6th FORM Recursion basics

ONE 6th FORM Recursion basics

Assessment

Quiz

Computers

11th Grade

Easy

Created by

Lorna Jarrett

Used 6+ times

FREE Resource

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Recursion is:

is a computer programming technique involving the use of a procedure, subroutine, function, or algorithm that calls itself in a step having a termination condition.

is a computer programming technique involving the use of a procedure, subroutine, function, or algorithm that calls other function in a step.

is a computer programming technique involving the use of a procedure, subroutine, function, or algorithm that calls itself in a step having no termination condition.

None of the above

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the definition of recursion?

Recursion is a programming technique you can use to allow a method to have numerous fields in its argument.

Recursion is programming technique you can use in which a method calls itself to solve a problem.

Recursion is a programming language model organized around objects rather than "actions" and data rather than logic

Recursion is a program that translates a source program written in some high-level programming language into machine code.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Name the condition at which the recursive method will stop calling itself.

Base case

Worst Case

Best Case

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The program may run out of memory in a

non-recursive function call

recursive function call

condition when too many variables are declared

none of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following condition is true?

Recursion is always better than iteration.

Recursion uses more memory as compared to iteration.

Recursion uses less memory as compared to iteration.

Iteration is always better and simpler than recursion.

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following problems can be solved using recursion?

finding Nth number of the Fibonacci sequence

finding the factorial of a number

finding the length of a string

all of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Recursion is similar to which of the following?

if-else

switch-case

loops

none of the above

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?