1.
What is the output of the following Java code:
class asciicodes {
    public static void main(String args[]) {
        char var1 = 'A';
        char var2 = 'a';
        System.out.println((int) var1 + (int) var2);
    }
}
2.
In Java, the return type of the & operator is ____________________.
3.
What is the output of the following Java code:
class dynamic {
    public static void main(String args[]) {
        double a, b;
        a = 3.0;
        b = 4.0;
        double c = Math.sqrt(a * a + b * b);
        System.out.println(c);
    }
}
4.
What is the output of the following Java code:
class array {
    public static void main(String args[]) {
        int a[] = new int[10];
        for (int i = 0; i < 10; ++i) {
            a[i] = i / 2;
            a[i] ++;
            System.out.print(a[i] + " ");
            i++;
        }

    }
}
5.
What is the output of the following Java code:
class array {
    public static void main(String args[]) {
        int array_variable[][] = {
            {
                1, 2, 3
            }, {
                4, 5, 6
            }
        };
        int sum = 0;
        for (int i = 0; i < 2; ++i)
            for (int j = 0; j < 2; ++j)
                sum = sum + array_variable[i][j];
        System.out.print(sum / 5);
    }
}
6.
What is the output of the following Java code:
class bitwise {
    public static void main(String args[]) {
        int var1 = 2;
        int var2 = ~var1;
        System.out.print(var1 + " " + var2);
    }
}
7.
What is the output of the following Java code:
class bitwise {
    public static void main(String args[]) {
        {
            int a = 3;
            int b = 6;
            int c = a | b;
            int d = a & b;
            System.out.println(c + " " + d);
        }
    }
}
8.
What is the output of the following Java code:
class Demo {
    public static void main(String args[])

    {
        int x;
        x = 15;
        x = x >> 1;
        System.out.println(x);
    }
}
9.
Which of the following operators skips evaluating the right-hand operand in Java?
10.
What is the output of the following Java code:
class Sample {
    public static void main(String args[]) {
        int x, y = 1;
        x = 10;
        if (x != 10 && x / 0 == 0)
            System.out.println(y);
        else
            System.out.println(++y);
    }
}