
Events and Delegates

Quiz
•
Computers
•
University
•
Medium
Lock Huynh
Used 7+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following statements are TRUE?
Delegate is a reference type
Delegate is a value type
Delegate does not define the method signature
Delegate is pointer type
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to define a delegate which points to the following methods
public delegate void ToString(int value);
public string delegate ToString(int value);
public delegate string ToString(int value);
public string ToString(int value)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to pass a function as a parameter in C#?
Cannot pass a function as a parameter in C#
Using pointer
Using dynamic parameter type
Using delegate
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following program ?
Number: 100000.00
Money: Rs. 1,00,000.00
Number: 1,00,000
Money: $1,00,000.00
Compile-time error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statement is TRUE?
An event is an encapsulated delegate
An event is a callback method
A event is a static method
None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you declare an event for the following delegate?
public delegate void ClickHandler();
public ClickHandler OnClick;
public event ClickHandler OnClick;
public event void OnClick;
public ClickHandler event OnClick;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the built -in delegate function for handling events in .NET?
public delegate void Action();
public delegate void Predicate(object sender);
public delegate void EventHandler(object sender, EventArgs e);
None of the above
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Linked List and Arrays in JAVA

Quiz
•
University
11 questions
SAINS KOMPUTER 1.3

Quiz
•
University
15 questions
Round 4 - Harvest

Quiz
•
University
6 questions
Java Method Overloading

Quiz
•
University
16 questions
Google Calendar Boss Challenge

Quiz
•
9th Grade - University
10 questions
Programming Quiz

Quiz
•
University
10 questions
eCommerce ReCap

Quiz
•
8th Grade - University
10 questions
Flutter Test 1

Quiz
•
University
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 Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University