ExamVeda
Login
Home
1
Keyword used to define call by reference parameter in C# .NET?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
2
How is a string typically processed?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
3
What will be the output of the following C# code?
class Program
{
    static void Main(string[] args)
    { 
        String c = "i love Csharp";
        bool a;
        a = c.StartsWith("I");
        Console.WriteLine(a);
        Console.ReadLine();
    }
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
4
What will be the output of the following C# code?
class Program
{
    static void Main(string[] args)
    {
        int i = 5;
        int j;
        method1(ref i);
        method2(out j);
        Console.writeline(i + "  " + j);
    }
    static void method1(ref int x)
    { 
        x = x + x;
    }
    static void method2(out int x)
    {
        x = 6;
        x = x * x;
    }
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
5
Which is the correct way of defining and initializing an array of 3 integers?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
6
What is the advantage of using 2D jagged array over 2D rectangular array?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
7
Which of the following statements are correct?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
8
What will be the output of the following C# code?
static void main(string[] args)
{
    int n = 1;
    method(n);
    console.Writeline(n);
    method1(ref n);
    console.Writeline(n);
}
static void method(int num)
{
    num += 20;
    console.writeline(num);
}
static void method1(ref int num)
{
    num += 20;
    console.writeline(num);
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
9
What will be the output of the following C# code?
static void Main(string[] args)
{
    String c = "Hello";
    String a = c + "Bye";
    Console.WriteLine(a);
    Console.ReadLine();
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
10
What will be the output of the following C# code?
static void Main(string[] args)
{
    char A = 'K';
    char B = Convert.ToChar(76);
    A++;
    B++;
    Console.WriteLine(A+ "  " +B);
    Console.ReadLine();
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board