Home / CSE MCQs / C#.Net MCQs :: Discussion

Discussion :: C#.Net MCQs

  1. What will be the output of given set of code?

    static void main(string[] args)
     {
         int i;
         int res = fun (out i);
         console.writeline(res);
         console.readline();
     }
     static int fun(out int i)
     {
         int s = 1;
         i = 7;
         for (int j = 1; j <= i; j++ )
         s = s * j;
         return s;
     }
  2. A.
    4490
    B.
    5040
    C.
    5400
    D.
    3500

    View Answer

    Workspace

    Answer : Option B

    Explanation :



Be The First To Comment