1) The following delegate: delegate string Foo(int bar1, int bar2) Which of the following is equivalent to the Foo delegate? a) Func b) Func c) Action d) Action 2) Which of the following statements...


1) The following delegate:



delegate string Foo(int bar1, int bar2)


Which of the following is equivalent to the Foo delegate?





a) Func



b) Func



c) Action



d) Action


2) Which of the following statements are syntactically correct?  (There are multiple correct answers. Please select all of them.)




a) Func foo = x => x * x;



b) Func foo = Square(int x) { return x * x; };



c) Func foo = (int x) => { return x * x; };



d) Func foo = delegate(int x) { return x * x; };



e) Func foo = (int x) => return x * x;



f) Func foo = (int x) => x * x;



g) Func foo = (int x) { return x * x; };







Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here