to Object-Oriented Programming,
8th Edition by Joyce Farrell
Complete Chapter Solutions Manual
are included (Ch 1 to 13)
** Immediate Download
** Swift Response
** All Chapters included
** Date Solutions files included
,Table of Contents are given below
Chapter 1. A First Program Using C#
Chapter 2. Using Data
Chapter 3. Using GUI Objects and the
Visual Studio IDE
Chapter 4. Making Decisions
Chapter 5. Looping
Chapter 6. Using Arrays
Chapter 7. Using Methods
Chapter 8. Advanced Method Concepts
Chapter 9. Using Classes and Objects
Chapter 10. Introduction to Inheritance
Chapter 11. Exception Handling
Chapter 12. Using Controls
Chapter 13. Handling Events
,Solutions Manual organized in reverse order, with the last chapter displayed first, to ensure
that all chapters are included in this document. (Complete Chapters included Ch13-1)
Solution and Answer Guide
Farrell, Microsoft Visual C#, 8e CY26, 9798214001906, Chapter 13
Review Questions Answers
1. In C#, events are _____________________. (13.1)
a. Boolean objects
b. handled by catch blocks
c. triggered by actions
d. only used in GUI programs
Answer: c
Feedback:
a. Events are not Boolean objects.
b. Events are not handled by catch blocks; exceptions are handled by catch blocks.
c. Events are triggered by actions.
d. Events are used in GUI programs, but they can also be used in non-GUI programs.
2. A delegate is an object that contains a reference to a(n) _____________________.
(13.2)
a. object
b. method
c. class
d. Control
Answer: b
Feedback:
a. A delegate does not contain a reference to an object.
b. A delegate contains a reference to a method.
c. A delegate does not contain a reference to a class.
d. A delegate does not contain a reference to a Control.
3. C# delegates provide a way for a program to _____________________. (13.2)
a. take alternative courses that are not determined until runtime
b. include multiple methods
c. include methods from other classes
d. include multiple Controls
Answer: a
Feedback:
, a. C# delegates provide a way for a program to take alternative courses that are not
determined until runtime.
b. A program can have multiple methods without delegates.
c. A program can include methods from other classes without delegates.
d. A program can include multiple Controls without delegates.
4. Which of the following correctly declares a delegate type? (13.2)
a. void aDelegate(int num);
b. delegate void aDelegate(num);
c. delegate void aDelegate(int num);
d. delegate aDelegate(int num);
Answer: c
Feedback:
a. This declaration needs the keyword delegate.
b. This declaration needs a data type in its argument.
c. This declaration declares a delegate.
d. This declaration needs a return type.
5. 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. (13.2)
a. function
b. identifier and parameter list
c. identifier and return type
d. return type and parameter list
Answer: d
Feedback:
a. A method does not need to have the same function as a delegate.
b. A method does not need to have the same identifier as a delegate.
c. A method does not need to have the same identifier as a delegate.
d. A method must have the same return type and parameter list as a delegate.
6. You can combine two delegates to create a(n) _____________________ delegate. (13.2)
a. assembled
b. classified
c. artificial
d. composed