
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
25 questions
Quiz Pemrograman Python

Quiz
•
10th Grade - University
28 questions
Year 8 Kodu Assessment

Quiz
•
7th Grade - University
30 questions
Test8

Quiz
•
9th - 12th Grade
20 questions
1stQ Quiz 1 E-Tech

Quiz
•
12th Grade
20 questions
Activity - Task Completion and Safety

Quiz
•
9th Grade - University
20 questions
ETECH 2ND QUARTER QUIZ

Quiz
•
9th - 12th Grade
20 questions
Video Game Programming and Design Questions

Quiz
•
9th - 12th Grade
30 questions
Test7

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade