Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

C# .NET OOPs Online Quiz Test

Topics Covered

  • Class
  • Method
  • Object
  • Encapsulation
  • Inheritance
  • Constructors

Useful for hiring

  • Dot NET Application Developers
  • C# Software Developers

Start hiring job-fit candidates using this assessment

GET A DEMO

"Our recruiters no longer rely only on the telephonic interviews. We shortlist candidates based on assessment reports. The detailed test reports provide skill wise analysis of each candidate. This has helped our clients reduce their time to hire by 60%."

Vipin Sharma, Mobile Programming,
General Manager HR & Recruitement
Question

Which statement will you add in the function fun() of class B, if it is to produce the output "Welcome to TechMocha!"?
namespace IMConsoleApplication
{
    class A
    {
        public void fun()
        {
            Console.Write("Welcome");
        }
    }
    class B: A
    {
        public void fun()
        {
            // [*** Add statement here ***]
            Console.WriteLine(" to TechMocha!");
        }
    }
    class MyProgram
    {
        static void Main (string[ ] args)
        {
            B b = new B();
            b.fun();
        }
    }
}

Answer
    • base.fun();

    • A::fun();

    • fun();

    • mybase.fun();

    • A.fun();

Question

Which of the following statements are correct about static functions?

Answer
    • Static functions are invoked using objects of a class.

    • Static functions can access static data as well as instance data.

    • Static functions are outside the class scope.

    • Static functions are invoked using class.

Question

In which of the following should the methods of a class differ if they are to be treated as overloaded methods?
 
1.Type of arguments
2.Return type of methods
3.Number of arguments
4.Names of methods
5.Order of arguments

Answer
    • 2, 4

    • 3, 5

    • 1, 3, 5

    • 3, 4, 5

Test details:

The OOPs online test enables employers and recruiters to identify potential hires by evaluating working skills and job readiness. For this reason, an emphasis is laid upon evaluating the knowledge of applied skills gained through real work experience, rather than theoretical knowledge.

The C#.NET OOPs Online Test may contain MCQ's (Multiple Choice Questions), MAQ's (Multiple Answer Questions), Fill in the Blank, Descriptive, Whiteboard Questions, Audio / Video Questions, True or False.

Test Duration: 20 minutes 

10 Application Oriented and Theory Questions.


The combination of application and theory questions helps to evaluate technical as well as practical skills of candidates

Test description:

C#.NET OOPs Online Test has been designed by our global Subject Matter Experts (SME)s to assess candidate’s knowledge of Object-Oriented Programming concepts used in C# - as per Industry Standards.

C# provides full support to OOPs concepts like inheritance, encapsulation, polymorphism, Abstraction, etc.  Object-Oriented Programming (OOPs) is a programming model used to organize the programs around objects and data rather than action and logic.

Thus, online OOPs test in C# .NET helps recruiters & hiring managers to analyze how effectively a candidate can use OOPs concepts in C# on the .NET framework before an interview.

C# .NET OOPs concepts online test contains questions on following Topics:
 

  • Class

  • Method

  • Object

  • Encapsulation

  • Inheritance

  • Constructors


Using powerful reporting, you can have a detailed analysis of the C# .NET OOPs quiz test results to help you make a better hiring decision and predict the candidate’s performance.

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at support@interviewmocha.com to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO