nerdexam
Microsoft

MB6-890 · Question #92

MB6-890 Question #92: Real Exam Question with Answer & Explanation

Sign in or unlock MB6-890 to reveal the answer and full explanation for question #92. The question stem and answer options stay visible for context.

Question

You are writing a function "SumOflnt(n)" that returns the sum of numbers from 0 to n as shown in the following exhibit: SumOflnt(l) = 0 + 1 = 1 SumOflnt(2) = 0+1 + 2 = 3 SumOflnt(n) = 0 + 1 + ... (n-1) + n The function prototype is the following: public static int SumOflnUint n) { } Which two functions return the correct answer? Each correct answer presents a complete solution.

Options

  • Apublic static int SumOflnt(int n)
  • Bpublic static int SumOfInt(int n)
  • Cpublic static int SumOflnt(int n)
  • Dpublic static int SumOflnt(int n)

Unlock MB6-890 to see the answer

You've previewed enough free MB6-890 questions. Unlock MB6-890 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full MB6-890 Practice