Exception Handling

Java Exception Handling quiz

3
Created on By 52fd849a905aedf0249df9e69d61b55a?s=32&d=mm&r=gwefru

Exception Handling

TEST YOUR SKILLS BRODLY

1 / 10

Q.121 What is the numerical range of a char data type in Java?

2 / 10

Q.122 Which of these coding types is used for data type characters in Java?

3 / 10

Q.123 Which of these values can a boolean variable contain?

4 / 10

Q.124 Which of these occupy first 0 to 127 in Unicode character set used for characters in Java?

5 / 10

Q.125 Which one is a valid declaration of a boolean?

6 / 10

Q.126 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++;
}
}
}

7 / 10

Q.127 What will be the output of the following Java program?

class mainclass {
public static void main(String args[])
{
char a = 'A';
a++;
System.out.print((int)a);
}
}

8 / 10

Q.128  What will be the output of the following Java program?

class mainclass {
public static void main(String args[])
{
boolean var1 = true;
boolean var2 = false;
if (var1)
System.out.println(var1);
else
System.out.println(var2);
}
}

9 / 10

Q.129 What will be the output of the following Java code?

class booloperators {
public static void main(String args[])
{
boolean var1 = true;
boolean var2 = false;
System.out.println((var1 & var2));
}
}

10 / 10

Q.130 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);
}
}

Your score is

The average score is 40%

0%

One thought on “Exception Handling

Leave a Reply

Your email address will not be published. Required fields are marked *