ISDS 505 Final Ch 13 (All Answers Are Correct 100%)
In C#, events are _____________________________ . a. Boolean objects b. handled by catch blocks c. triggered by actions d. only used in GUI programs correct answers c. triggered by actions A delegate is an object that contains a reference to a(n) _____________________________ . a. object b. method c. class d. Control correct answers 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 correct answers 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); correct answers 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 correct answers d. two of the above You can combine two delegates to create a(n) _____________________________ delegate. a. assembled b. classified c. artificial d. composed correct answers d. composed To combine two delegates using the + operator, the delegate objects must have _____________________________ . a. the same parameter list b. the same return type c. both of these d. neither of these correct answers c. both of these In C#, a(n) _____________________________ is triggered when specific changes to an object occur. a. event
Información del documento
- Subido en
- 5 de abril de 2024
- Número de páginas
- 3
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas