
Understanding Delegates and Events

Quiz
•
Information Technology (IT)
•
12th Grade
•
Hard
Daniel Velasco
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a delegate in .NET?
A class that encapsulates a method.
A type of variable.
A method that returns a value.
A collection of objects.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to declare a delegate?
delegate
method
function
class
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the new keyword when instantiating a delegate?
To create a new instance of the delegate.
To call the delegate.
To declare the delegate.
To remove the delegate.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a generic delegate?
A delegate that can reference methods of different types.
A delegate that can only reference one type.
A delegate that does not return a value.
A delegate that is static.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between delegates and interfaces?
Delegates are safe callbacks; interfaces can implement methods.
Delegates can implement methods multiple times; interfaces cannot.
Delegates are faster to execute; interfaces are slower.
There is no difference.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an event in C#.NET?
A member of a class that is fired when a specific action occurs.
A method that returns a value.
A type of delegate.
A collection of objects.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for declaring an event?
public event delegate_name event_name;
public delegate event_name;
event event_name;
delegate event_name;
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
QUIZ 2 (FINALS)

Quiz
•
12th Grade
20 questions
Web Design and Editing Software Quiz

Quiz
•
11th Grade - University
29 questions
Mod 2 Risk Adversity Trust

Quiz
•
9th - 12th Grade
25 questions
Understanding User Interfaces

Quiz
•
12th Grade
20 questions
Основи на JavaScript за 12-ти клас

Quiz
•
12th Grade
20 questions
Основи об'єктно-орієнтованого програмування2

Quiz
•
12th Grade
30 questions
Test11

Quiz
•
9th - 12th Grade
20 questions
Chapter 3: Project management and data analysis

Quiz
•
12th Grade
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 Information Technology (IT)
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
10 questions
Impact of 9/11 and the War on Terror

Interactive video
•
10th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
6 questions
Biography

Quiz
•
4th - 12th Grade
25 questions
ServSafe Foodhandler Part 3 Quiz

Quiz
•
9th - 12th Grade
10 questions
Fact Check Ice Breaker: Two truths and a lie

Quiz
•
5th - 12th Grade
20 questions
Macromolecules

Quiz
•
9th - 12th Grade