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
10 questions
5-函数

Quiz
•
University
7 questions
KA JS Functions

Quiz
•
KG - University
10 questions
bài 28

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

Quiz
•
University
15 questions
Python Basics

Quiz
•
University
10 questions
J277 - 2.2 - Functions in Python

Quiz
•
10th Grade - University
9 questions
String Methods

Quiz
•
12th Grade - University
15 questions
Python revision

Quiz
•
10th Grade - University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade