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
coding

Quiz
•
KG - Professional Dev...
14 questions
Google Prof Cloud Archi - pt 11

Quiz
•
University
10 questions
Excel If function WSC 4.2.3

Quiz
•
7th Grade - University
15 questions
Exception handling -oracle plsql

Quiz
•
University
10 questions
Scheme Programming Quiz

Quiz
•
University
13 questions
Digital Technology Office 365 - 29May2020

Quiz
•
University - Professi...
15 questions
Python Quiz Day-4

Quiz
•
University
13 questions
Review

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University