Questions

  1. Delegates are ideal for ___ because of their ability to pass a method as a parameter.
    1. Multicast delegates
    2. Built-in delegates
    3. Callbacks
    4. Events
  1. What are the different ways to initiate delegates? Choose all that apply.
    1. Anonymous methods
    2. Lambda expressions
    3. Named methods
    4. All of the above
  2. Which method can have a derived return type than the one defined in the delegate.
    1. Anonymous method
    2. Covariance
    3. Anonymous function
    4. Lambda expression
  3. Which built-in delegate accepts zero or more parameters and returns void?
    1. Action
    2. Func
    3. event
    4. delegate
  4. Which of the following is used in the declaration of a C# event?
    1. event
    2. delegate
    3. EventHandler
    4. class
  5. A subscriber can notify the publisher about a change that happened to an object.
    1. True
    2. False

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.124.49