| 1)
|
Does C# support multiple-inheritance? |
|
|
| 2)
|
Who is a protected class-level variable available to? |
|
|
| 3)
|
Which accessibility modifier is available to classes that are within the same assembly and derived from the specified base class? |
|
|
| 4)
|
Are private class-level variables inherited? |
|
|
| 5)
|
What’s the top .NET class that everything is derived from? |
|
|
| 6)
|
What is the syntax to inherit from a class in C#? |
|
|
| 7)
|
Check all options that apply to abstract class. |
|
|
| 8)
|
Can you declare an override method to be static if the original method is not static? |
|
|
| 9)
|
Will the code provided below compile with out errors |
|
class Class1 {
public static virtual void Try() { }
} class Class2 : Class1 {
public static override void Try() { base.Try(); }
}
|
| 10)
|
Can we inherit multiple interfaces in C#? |
|
|
| 11)
|
In C# Function Overloading can be achieved in following ways - |
|
Choose all applicable |
| 12)
|
Can the accessiblity modifier of main function be "private"? |
|
|
| 13)
|
Which static member of System.Environment class is used to get version of .Net Framework running the application? |
|
|
| 14)
|
Can we create an object of reference type using const keyword? |
|
|
| 15)
|
Choose correct definition of each parameter modifier. |
|
Each column shows a single parameter modifier and rows provide the definition, you need to select the correct row for parameter modifier column. |
| 16)
|
What’s the difference between and XML documentation tag? |
|
Choose correct row option for each xml documentation tag provide in column. |
| 17)
|
Choose all code samples which will compile without any errors. |
|
|
| 18)
|
Check the code provided below and choose correct option. |
|
namespace ConsoleApplication1 { class Program { static void Main(string[] args) { Try(); } public static void Try() { SampleClass objTip = new SampleClass(); for (; objTip.merryGo < 100; DoWork(objTip)) { Console.WriteLine(objTip.merryGo.ToString()); } Console.ReadKey(); } public static void DoWork(SampleClass tip) { tip.merryGo++; } }
public class SampleClass { public int merryGo = 1; }
} |
| 19)
|
What is the output of following code? |
|
namespace ConsoleApplication1 { class Program { static void Main(string[] args) { Class1 t = new Class1(); t.sample(); } } class Class1 { public void sample() { lookalike: Console.WriteLine("What???"); goto lookalike; Console.WriteLine("Worked???"); } } } |
| 20)
|
What is the output of following code? |
|
int dumdum = 0; int jelda = 2; dumdum = ++jelda; Console.WriteLine(dumdum); dumdum = jelda++; Console.WriteLine(dumdum); |
| 21)
|
What is the name of the command used to compile a C# file in to component without a manifest? |
|
|