Constructors

Q1:
What will be the output of the C#.NET code snippet given below?
namespace AptitudeCrackConsoleApplication
{ 
    class Sample
    { 
        static Sample()
        { 
            Console.Write('Sample class ');
        }
        public static void Aptitude1()
        { 
            Console.Write('Aptitude1 method ');
        } 
    } 
    class MyProgram
    { 
        static void Main(string[ ] args)
        { 
            Sample.Aptitude1();
        } 
    } 
}

A Sample class Aptitude1 method

B Aptitude1 method

C Sample class

D Aptitude1 method Sample class

E Sample class Sample class

ANS:A - Sample class Aptitude1 method

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.