Understanding Delegates and Events

Understanding Delegates and Events

12th Grade

25 Qs

quiz-placeholder

Similar activities

E-Tech

E-Tech

11th Grade - University

20 Qs

Time Management Skills Assessment

Time Management Skills Assessment

8th Grade - University

20 Qs

MIL-LONG QUIZ

MIL-LONG QUIZ

12th Grade

20 Qs

Lớp 7 chủ đề 1 p2

Lớp 7 chủ đề 1 p2

7th Grade - University

25 Qs

Team Game Tournament

Team Game Tournament

8th Grade - University

30 Qs

Artificial Intelligence and Its Implications Quiz Балча Кирубел

Artificial Intelligence and Its Implications Quiz Балча Кирубел

12th Grade

20 Qs

Advanced Python Assessment

Advanced Python Assessment

9th - 12th Grade

30 Qs

Lower Elementary Quiz: Introduction to Computers

Lower Elementary Quiz: Introduction to Computers

2nd Grade - University

20 Qs

Understanding Delegates and Events

Understanding Delegates and Events

Assessment

Quiz

Information Technology (IT)

12th Grade

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?