Multiple choice technology programming languages

Which statement is/are correct ?

  1. In C#, we can define one and only one main( ) method .

  2. If there is more than one main( ) method defined in your programme ,the compiler will return compile time error.

  3. If there is more than one main( ) method defined you can explicitely tell the compiler which main( ) method is to be used as the entry point.

  4. All the statements are wrong

Reveal answer Fill a bubble to check yourself
B,C Correct answer
Explanation

C# allows multiple Main() methods in different classes, but you must specify which one is the entry point using compiler options. The compiler returns an error if multiple Main() methods exist without an explicit entry point specification. Option A is wrong because you CAN define multiple Main() methods.