ExamVeda
Login
Home
51
Which of these operators can be used to concatenate two or more String objects?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
52
What does the yield return statement specify in the following C# code snippet?
public System.Collections.IEnumerator GetEnumerator()
{
    foreach (char ch in chrs)
    yield return ch;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
53
What will be the output of the following C# code snippet?
class Program
{
    static void Main(string[] args)
    {
        int y = (int)Math.Max(4,2);
        int z = (int)Math.Pow(y, 2);
        Console.WriteLine(z);
        Console.ReadLine();
    }
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
54
In which of the following collections is the I/O based on a key?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
55
What will be the output of the following C# code snippet?
class UnsafeCode
{
    unsafe static void Main()
    {
        int m = 10;
        int *mptr = &m;
        int **ptr = &mptr;
        int n = 20;
        int *nptr = &n;
        int **prt = &nptr;
        m = **prt + *nptr;
        n = *mptr* **prt;
        Console.WriteLine(n + " " + m);
        Console.ReadLine();
    }
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
56
What will be the output of the following C# code snippet?
class Program
{
    static void Main(string[] args)
    {
        double x = 3.14;  
        int y = (int) Math.Abs(x);
        Console.WriteLine(y);
    }
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
57
Which among the following is not a preprocessor directive?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
58
Which among the following is the correct way to find out the number of elements currently present in an ArrayListCollection called arr?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
59
Which of these method returns a smallest whole number greater than or equal to variable X?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
60
Which statement is correct in the following C#.NET code snippet?
Stack st = new Stack();
st.Push("Csharp");
st.Push(7.3);
st.Push(8);
st.Push('b');
st.Push(true);
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board