1.
What is the output of the following C# code:
using System;

class Test {
    unsafe static void Main() {
        int z1 = 5;
        int z2 = 5;
        int y1 = 5;
        int * [] ptr = new int * [3];
        ptr[0] = & z1;
        ptr[1] = & z2;
        ptr[2] = & y1;
        for (z1 = 0; z1 < 3; z1++) {
            y1 += * ptr[z1];
            Console.Write(y1 + " ");
        }
    }
}
2.
What is the output of the following .NET code:

using System;

class Test {
    unsafe static void Main() {
        string z1 = "this is a dummy";

        fixed(char * q = z1) {
            for (int j = z1.Length - 1; q[j] != 0; j--)
                Console.Write(q[j]);
        }
    }
}
3.
What is the output of the following .NET code:
using System;

class Test {
    unsafe static void Main() {
        int * q;
        int b = 13 * 5;

        q = & (b);
        Console.WriteLine(Convert.ToChar( * q));

        if ( * q == 'A')
            Console.WriteLine(Convert.ToBoolean(1));
        else
            Console.WriteLine(Convert.ToBoolean(0));
    }
}
4.
What is the output of the following .NET code:

using System;

class Test {
    unsafe static void Main() {
        int z1 = 2;
        int z2 = 4;
        int * a1 = & z1;
        int * b1 = & z2;
        Console.WriteLine( * a1 + * b1);
    }
}
5.
What is the output of the following .NET code:

using System;

class Program {
    unsafe static void Main() {
        int * z1;
        int x1 = 10;
        int y1;
        y1 = * & x1;
        z1 = & y1;
        Console.WriteLine( * z1);
    }
}
6.
What is the output of the following .NET code:

using System;

class Program {
    unsafe static void Main() {
        int n = 10;
        int * y = & n;
        int * * p1 = & y;
        int * * * p2 = & p1;
        Console.WriteLine( * y * * * p1 * * * * p2);
    }
}
7.
What is the output of the following .NET code:
< %
Response.Write(System.Environment.WorkingSet.ToString())
% >
8.
What is the output of the following .NET code:
< form method=post action=”test.aspx” >
9.
What is the output of the following Asp.Net code:
class Hello {
    static void Main(string[] args) {
        String r1 = "one";
        String r2 = string.Concat(r1 + " " + "two");
        Console.WriteLine(r2);
        Console.ReadLine();
    }
}
10.
What is the output of the following .NET code:

class Program {
    static void Main(string[] args) {
        String s1 = "AVANGER";
        String s2 = s1.Replace('A', 'C');
        Console.WriteLine(s2);
        Console.ReadLine();
    }
}