104-P-01: Delegates and lambdas

104-P-01: Delegates and lambdas

University

10 Qs

quiz-placeholder

Similar activities

Data Validation

Data Validation

KG - Professional Development

11 Qs

Computer Network

Computer Network

University

10 Qs

itAppB MT Q1

itAppB MT Q1

University

10 Qs

have fun with econometrics

have fun with econometrics

University

15 Qs

PSSI Chp 1 dan 2

PSSI Chp 1 dan 2

University

12 Qs

Recording Software Button Identification Quiz

Recording Software Button Identification Quiz

8th Grade - University

10 Qs

Round 2 for Preplacement Bootcamp

Round 2 for Preplacement Bootcamp

University

15 Qs

HTML

HTML

University

13 Qs

104-P-01: Delegates and lambdas

104-P-01: Delegates and lambdas

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Grégoire Lefaure

Used 22+ 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.

WORD CLOUD QUESTION

3 mins • Ungraded

Delegates, what is it?

2.

WORD CLOUD QUESTION

3 mins • Ungraded

Lambdas, what is it?

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

What types of delegates are pre-defined in C#?

Actions

Predicates

Comparisons

Functions

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

How to create a lambda that takes 2 arguments?

(x, y) -> x + y

(x, y) => x + y

(x, y) => { x + y; }

(x, y) => { return x + y; }

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Select the correct information about this `Func` delegate

It returns a char

It returns an int

It returns nothing

It returns a tuple (int, double, string, char)

Answer explanation

It returns a char, because it is the last type specified.

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Select the correct information about this `Func` delegate

It takes 3 parameters

It takes 4 parameters

It takes 0 parameter

It takes only a tuple as parameter

Answer explanation

It returns a char, because it is the last type specified.

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Are ACDC greater, lower or equal to YAKA?

Greater

Lower

Equal

Answer explanation

The result of the substraction will be 2. Therefore, the first argument is "greater" than the second using this comparison.

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?