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
Móviles 2 - Sesión 01

Quiz
•
University
5 questions
Web Application Session 1

Quiz
•
University
15 questions
search engine quizz

Quiz
•
University
10 questions
Machine Learning and Python.

Quiz
•
University
10 questions
IOTA : Web Development Bootcamp Quiz 3

Quiz
•
University
10 questions
python boot camp

Quiz
•
University
8 questions
Java Exeption

Quiz
•
University
10 questions
Python Round 2

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University