ISDS 505 Final Ch 13 Question and answers (latest update 2024)
In C#, events are _____________________________ . a. Boolean objects b. handled by catch blocks c. triggered by actions d. only used in GUI programs - Answer- c. triggered by actions A delegate is an object that contains a reference to a(n) _____________________________ . a. object b. method c. class d. Control - Answer- b. method C# delegates provide a way for a program to _____________________________ . a. take alternative courses that are not determined until runtime b. include multiple methods c. include methods from other classes d. include multiple Controls that use the same method - Answer- a. take alternative courses that are not determined until runtime Which of the following correctly declares a delegate type? a. void aDelegate(int num); b. delegate void aDelegate(num); c. delegate void aDelegate(int num); d. delegate aDelegate(int num); - Answer- c. delegate void aDelegate(int num); If you have declared a delegate instance, you can assign it a reference to a method as long as the method has the same _____________________________ as the delegate. a. return type b. identifier c. parameter list d. two of the above - Answer- d. two of the above
Written for
- Institution
- ISDS 505
- Course
- ISDS 505
Document information
- Uploaded on
- March 18, 2024
- Number of pages
- 6
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
isds 505 final ch 13 question and answers latest