Recursion Practice, Recursion Practice, Recursion Practice...

Recursion Practice, Recursion Practice, Recursion Practice...

10th Grade - University

10 Qs

quiz-placeholder

Similar activities

7. PYTHON FUNCTIONS -2

7. PYTHON FUNCTIONS -2

12th Grade

10 Qs

Diagnostic Test - Computer Software

Diagnostic Test - Computer Software

10th Grade

12 Qs

Paper 2 Revision - IGCSE Computer Science

Paper 2 Revision - IGCSE Computer Science

9th - 12th Grade

12 Qs

Java Quiz 1

Java Quiz 1

University

10 Qs

Java String class methods

Java String class methods

10th - 12th Grade

10 Qs

Java Quiz 3

Java Quiz 3

University

15 Qs

ICT Quiz

ICT Quiz

University

15 Qs

Office 365 Essentials Quick Reference Guide Review By Mr. B

Office 365 Essentials Quick Reference Guide Review By Mr. B

12th Grade

15 Qs

Recursion Practice, Recursion Practice, Recursion Practice...

Recursion Practice, Recursion Practice, Recursion Practice...

Assessment

Quiz

Computers

10th Grade - University

Practice Problem

Medium

Used 347+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

What is returned as a result of the call mystery(4,6)?

2
3
4
1

2.

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 invokes itself by name within the method.
A method that will never iterate infinitely.
A method that cannot be called more than once.

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

What is the returned value of recMethod(5)?

68
70
75
82

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

What is printed as a result of the call stringMaker("COMPSCI")?

COMPSCI
COMPSC
COMPS
COMP
COM
CO
C
COMPSCI
OMPSCI
MPSCI
PSCI
SCI
CI
I
CO
COM
COMP
COMPS
COMPSC
COMPSCI
C
CO
COM
COMP
COMPS
COMPSC
COMPSCI

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Will recursion(5) iterate infinitely? 

Yes
No

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

What value is returned as a result of the call mysterious(x)?

x * (x+1)
2x
2(x-1)
x+1

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

What is the returned value of digits(-24684)?

20
18
24
23

Create a free account and access millions of resources

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?