...

/

Quiz on Functions

Quiz on Functions

Test your knowledge of functions in C#.

We'll cover the following...
1

What is the result when the following program is executed?

class Test
{
    static int getSum(int y, int z)
    {
        int mysum = y + z;
        return mysum;
    }
    static void Main()
    {
        getSum(5, 6);
    }
}
A)

It gives no output.

B)

(5 + 6)

C)

11

D)

56

Question 1 of 40 attempted
...
Access this course and 1400+ top-rated courses and projects.