Delegates, what is it?
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
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 Quizizz
15 questions
Python revision

Quiz
•
10th Grade - University
10 questions
5-函数

Quiz
•
University
10 questions
Introduction to Deep Learning

Quiz
•
University
10 questions
На сколько ты знаешь C#

Quiz
•
University
10 questions
bài 28

Quiz
•
11th Grade - University
10 questions
Session 2 | U

Quiz
•
University
10 questions
Weekly Contest #10 - TechXNinjas

Quiz
•
University
10 questions
Python Dictionaries

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade