Java Evolutions November 27, 2020December 21, 2020wefru quiz on Java Evolutions 0 Created on November 27, 2020 By wefru Java Evolutions TEST YOUR SKILLS BRODLY 1 / 10 Q.111 What is the range of short data type in Java? -128 to 127 -32768 to 32767 -2147483648 to 2147483647 -2147483648 to 21474836471255 2 / 10 Q.112 What is the range of byte data type in Java? -128 to 127 -32768 to 32767 -2147483648 to 2147483647 -2147483648 to 214748364745555 3 / 10 Q.113 Which of the following are legal lines of Java code? 1. int w = (int)888.8; 2. byte x = (byte)100L; 3. long y = (byte)100; 4. byte z = (byte)100L; 1 and 2 2 and 3 3 and 4 All statements are correct 4 / 10 Q.114 An expression involving byte, int, and literal numbers is promoted to which of these? int long byte float 5 / 10 Q.115 Which of these literals can be contained in float data type variable? -1.7e+308 -3.4e+038 +1.7e+308 -3.4e+050 6 / 10 Q.116 Which data type value is returned by all transcendental math functions? int float double long 7 / 10 Q.117What will be the output of the following Java code?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);}} 16.46666666666667 16.46666 16.4 16.466666666666674563 8 / 10 Q.118 What will be the output of the following Java statement?class output {public static void main(String args[]){double a, b,c;a = 3.0/0;b = 0/4.0;c=0/0.0;System.out.println(a);System.out.println(b);System.out.println(c);}} Infinity 0.0 NaN all of the mentioned 9 / 10 Q.119 What will be the output of the following Java code?class increment {public static void main(String args[]){int g = 3;System.out.print(++g * 8);}} 32 33 35 36 10 / 10 Q.120 What will be the output of the following Java code?class area {public static void main(String args[]){double r, pi, a;r = 9.8;pi = 3.14;a = pi * r * r;System.out.println(a);}} 301.5656 301.565655612 301.01 301.565656897412 Your score isThe average score is 0% LinkedIn Facebook Twitter VKontakte 0% Restart quiz