11.
How to identify if a timezone is eligible for DayLight Saving?

14.
Which of these is necessary condition for automatic type conversion in Java?

15.
What will be the output of the following Java program?
class array_output 
{
    public static void main(String args[]) 
    {
        int array_variable [] = new int[10];
  for (int i = 0; i < 10; ++i) {
            array_variable[i] = i/2;
            array_variable[i]++;
            System.out.print(array_variable[i] + " ");
            i++;
        }

    } 
}

16.
What will be 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);
    } 
}

17.
What will be the output of the following Java code?
class average {
    public static void main(String args[])
    {
        double num[] = {5.5, 10.1, 11, 12.8, 56.9, 2.5};
        double result;
        result = 0;
        for (int i = 0; i < 6; ++i) 
            result = result + num[i];
  System.out.print(result/6);

    } 
}

18.
What will be the output of the following Java program?
class array_output {
    public static void main(String args[]) 
    {    
        char array_variable [] = new char[10];
  for (int i = 0; i < 10; ++i) {
            array_variable[i] = 'i';
            System.out.print(array_variable[i] + "" );
            i++;
        }
    } 
}

Read More Section(Data Types and Variables)

Each Section contains maximum 100 MCQs question on Data Types and Variables. To get more questions visit other sections.