Popular Practice Tests

C# Oops Online Practice Tests for Free

No. of Questions : 15
Test Name: C# OOPS
Time Spent : 00:00:00

1.What will be the output of the C#.NET code snippet given below?

namespace WisdomJobsConsoleApplication
{
class SampleProgram
{
static void Main(string[ ] args)
{
object[] o = new object[] {"1", 4.0, "Wisdom", 'J'};
fun (o);
}
static void fun (params object[] obj)
{
for (int i = 0; i < obj.Length-1; i++)
Console.Write(obj[i] + " ");
}
}

NOTE :-

  • Each right answer carries 1 mark(s) & wrong answer carries - 0 mark(s).
  • Don't Refresh the page Once you start the exam.
  • No mark will be deducted for unanswered questions.
  • Though immense care has been taken while publishing this test, still if you face any subject/language/format/technical error, you are requested to notify us.Your small gesture will help us give more value to other users..

Please Report Us

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

C# OOPS Tutorial