Admin Dashboard
×

Result for: shivam dhananjay girme


Exam Name: Aug_Java

Download Result (PDF)

Total Marks: 15.0

Score: 10.0

Percentage: 66.67%


Question Answers

Sr. No. Question Selected Answer Correct Answer
1 Which of the following is NOT a feature of Java? Interpreted Language compiled
2 Which of these cannot be used for a variable name in Java? none of above keyword
3 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 32
4 . What will be the output of the following Java program? 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); } } all of above all of above
5 What is not the use of “this” keyword in Java? Passing itself to another method Passing itself to the method of the same class
6 What will be the error in the following Java code? byte b = 50; b = b * 50; b cannot contain value 50 * operator has converted b * 50 into int, which can not be converted to byte without casting
7 Which of these are selection statements in Java? if() if()
8 Which of these is an incorrect array declaration? int arr[] = int [5] new int arr[] = int [5] new
9 What will be the output of the following Java code? int arr[] = new int [5]; System.out.print(arr); Class name@ hashcode in hexadecimal form Class name@ hashcode in hexadecimal form
10 Which of these is necessary to specify at time of array initialization? Both Row and Column Row
11 What will be the output of the following Java code? 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; System.out.print(array_variable[i] + " "); i++; } } } 0 2 4 6 8 0 2 4 6 8
12 What will be the output of the following Java code? 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 i i i i i i i i i i i i i i i i i i i
13 Which of these cannot be declared static? object object
14 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)1000L; all above correct all above correct
15 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.5656
  Page 1  
Admin Dashboard