104-P-01: Delegates and lambdas

Quiz
•
Computers
•
University
•
Medium
Grégoire Lefaure
Used 22+ times
FREE Resource
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
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
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
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
Similar Resources on Wayground
15 questions
C++ Quiz-1

Quiz
•
University
8 questions
COMP130_Functions

Quiz
•
University
7 questions
KA JS Functions

Quiz
•
KG - University
13 questions
JavaScript

Quiz
•
University
12 questions
Swift Fundamentals

Quiz
•
University
10 questions
TIU Quiz-14

Quiz
•
University
10 questions
Review (2) Office 365

Quiz
•
University
10 questions
LUA Test

Quiz
•
9th Grade - University
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade