MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the C#.NET code snippet given below? namespace McqsMentorConsoleApplication { class Sample { static Sample() { Console.Write("Sample class "); } public static void Bits1() { Console.Write("Bits1 method "); } } class MyProgram { static void Main(string[ ] args) { Sample.Bits1(); } } } |
| A. | Sample class Bits1 method |
| B. | Bits1 method |
| C. | Sample class |
| D. | Bits1 method Sample class |
| Answer» B. Bits1 method | |