Search Header Logo

Lesson 28 - Recursive and anonymous function

Authored by NotchUp .co

Professional Development, Education

5th - 8th Grade

Used 27+ times

Lesson 28 - Recursive and anonymous function
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 keyword is used to define an anonymous function ?

function

lambda

anonymous

none

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Anonymous function is which type of function ?

single line function

multi line function

both

none

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

recursive function is which type of function ?

function calling other function

function calling itself

anonymous function

none

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code ?

Print((lambda a,b:a+b)(10,20))

10

20

30

none

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code ?

321

345

123

none

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of function is known as single line expression ?

anonymous function

recursive function

both

none

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Recursive functions must have ?

recursive name

single line expression

termination condition

none

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?