61.
What does preprocessor directive #if and #endif explains?

62.
Which string operation does the below-mentioned method define?
public static string Concat(string str0, string str1)

64.
Choose the class from which the namespace 'System.Type' is derived?

65.
What will be the output of the following C# code snippet?
class UnsafeCode
{
    struct MyStruct
    {
        public int a;
        public int b;
        public int Sum() 
       { 
           return a / b; 
       }
   }
   unsafe static void Main()
   {
       MyStruct o = new MyStruct();
       MyStruct* p; 
       p = &o;
       p->a = 60; 
       p->b = 15; 
       int c = 30;
       Console.WriteLine("Value is : " + p->Sum()*c);
       Console.ReadLine();
   }
}

66.
What does the following C# code set specify?
public static int Compare(string strA, int indexA, string strB, int indexB, int length, bool ignoreCase)

69.
What will be the output of the following C# code snippet?
static void Main(string[] args)
{
    string s1 = "olleH";
    string s2 = "olleh";
    if (s1 == s2)
    Console.WriteLine("Equal");
    else
    Console.WriteLine("Unequal");
    if (s1.Equals(s2))
    Console.WriteLine("Equal");
    else
    Console.WriteLine("Unequal");
    Console.ReadLine();
}

70.
What kind of exception is being thrown if Wait(), Pulse() or PulseAll() is called from code that is not within synchronized code?

Read More Section(Miscellaneous in C Sharp)

Each Section contains maximum 100 MCQs question on Miscellaneous in C Sharp. To get more questions visit other sections.