1.

If a function fun() is to receive an int, a Single & a double and it is to return a decimal then which of the following is the correct way of defining this function?

A. <pre><code class="csharp">decimal static fun(int i, Single j, double k) { ... }</code></pre>
B. <pre><code class="csharp">decimal fun(int i, Single j, double k) { ... }</code></pre>
C. <pre><code class="csharp">static decimal fun(int i, Single j, double k) { ... }</code></pre>
D. <pre><code class="csharp">static decimal fun(int i, Single j, double k) decimal { ... }</code></pre>
E. <pre><code class="csharp">static fun(int i, Single j, double k) { ... return decimal; }</code></pre>
Answer» D. <pre><code class="csharp">static decimal fun(int i, Single j, double k) decimal { ... }</code></pre>


Discussion

No Comment Found

Related MCQs