Anonymous methods Quiz

0%

There is no difference between Anonymous methods and Lambda expressions

Correct! Wrong!

What is correct statement above Anonymous methods?

Correct! Wrong!

Output of below program?

Correct! Wrong!

Anonymous methods cannot access ref or out parameters of an outer scope.

Anonymous methods can only access variable define inside the Anonymous methods scope

Correct! Wrong!

In anonymous methods, if we define any parameters inside the Anonymous Methods then those can be accessed only within the anonymous method block but the anonymous methods can access the variables which we define in outer functions scope.

Can we call anonymous methods recursively?

Correct! Wrong!

Programmatically yes, the anonymous method can call itself below is the But I would recommend avoiding anonymous delegates. Just create a method and have it call itself recursively. Anonymous methods are meant to be anonymous – you shouldn’t be calling them by name (non-anonymously).

Anonymous methods cannot access ref or out parameters of an outer scope.

Correct! Wrong!

Anonymous methods cannot access ref or out parameters of an outer scope.

Anonymous method cannot be used as event handlers?

Correct! Wrong!

What is output of below program?

Correct! Wrong!

Why below program throw error?

Correct! Wrong!

Anonymous methods cannot be used with unsafe code.

Anonymous methods are not allowed on the left side of is operator.

Correct! Wrong!

Anonymous methods Quiz
Result
Beginner
You need to work hard
Here is a tutorial about anonymous methods
Result
Intermediate
You are good bu there is work to be done
Here is a tutorial about anonymous methods
Result
Pro
You are Excellent
Here is a tutorial foranonymous methods to learn more.

Leave a Reply

Your email address will not be published. Required fields are marked *