ExamVeda
Login
Home
61
Did method use to remove whitespace from the string?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
62
Which of these base class are accessible to the derived class members?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
63
What are the advantages of the named iterator?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
64
The wrong statements about a HashTable collection are?
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 A
{
    int i;
    int j;
    public A()
    {
        i = 1;
        j = 2;
    }
}
class Program
{
    static void Main(string[] args)
    {
       A obj1 = new A();
       Console.WriteLine(obj1.ToString());
       Console.ReadLine();
    }
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
66
What will be the output of the following C# code snippet?
class access
{
    public int x;
    private int y;
    public  void cal(int a, int b)
    {
        x = a + 1;
        y = b;
    }
    public  void print() 
   {
       Console.WriteLine(" " + y);     
   } 
}    
class Program
{
    static void Main(string[] args)
    {
        access obj = new access();   
        obj.cal(2, 3);
        Console.WriteLine(obj.x);
        obj.print();
        Console.ReadLine();
    }
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
67
What will be the output of the following C# code snippet?
static void Main(string[] args)
{
    string s = " i love you";
    Console.WriteLine(s.IndexOf('l') + "  " + s.lastIndexOf('o') + "  " + s.IndexOf('e'));
    Console.ReadLine();
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
68
What will be the output of the following C# code snippet?
class Program
{
    static void Main(string[] args)
    {
        String s1 = "CSHARP";
        String s2 = s1.Replace('H','L');
        Console.WriteLine(s2);
        Console.ReadLine();
    }
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
69
Which among the given classes provides types of rounding functions?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
70
What will be the output of the following C# code snippet?
class MyClass
{
    char[] chrs = { 'A', 'B', 'C', 'D' };
    public System.Collections.IEnumerator GetEnumerator()
    {
        foreach (char ch in chrs)
        yield return ch;
    }
}
class Program
{
    static void Main(string[] args)
    {
        MyClass mc = new MyClass();
        foreach (char ch in mc)
        Console.Write(ch + " ");
        Console.WriteLine();
        Console.ReadLine();
    }
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board