ExamVeda
Login
Home
61
What does preprocessor directive #if and #endif explains?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
62
Which string operation does the below-mentioned method define?
public static string Concat(string str0, string str1)
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
63
Among the given collections which one is I/O index based?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
64
Choose the class from which the namespace 'System.Type' is derived?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
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();
   }
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
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)
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
67
Which of these is used as default for a member of a class if no access specifier is used for it?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
68
What is the process by which we can control what parts of a program can access the members of a class?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
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();
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
70
What kind of exception is being thrown if Wait(), Pulse() or PulseAll() is called from code that is not within synchronized code?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board