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
Geschreven voor
- Instelling
- ISDS 505
- Vak
- ISDS 505
Documentinformatie
- Geüpload op
- 18 maart 2024
- Aantal pagina's
- 6
- Geschreven in
- 2023/2024
- Type
- Tentamen (uitwerkingen)
- Bevat
- Vragen en antwoorden
Onderwerpen
-
isds 505 final ch 13 question and answers latest