Question: 1. Choose the correct answer: i) String in Java is a a. statements b. class c. variable d. character array ii) Which of these data

 1. Choose the correct answer: i) String in Java is a
a. statements b. class c. variable d. character array ii) Which of

1. Choose the correct answer: i) String in Java is a a. statements b. class c. variable d. character array ii) Which of these data structure is used by operating system to manage the Recursion in Java? a. Array b. Stack c. Queue d. Tree iii) Which of these will happen if recursive method does not have a base case? a. An infinite loop occurs b. System stops the program after some time c. The program will not d. None of the mentioned work is a special value that means "no object". iv) In Java, the keyword b. new a. null d. static v) In the UML class diagrams, The plus sign (+) identifies attributes and methods. a. private b. public c. protected d. default vi) Which exception is thrown when negative size of an array statement executes? a. NumberFormatException b. NullPointerException c. NegativeArraySizeException d. ZeroDivisionException vii) Which of these standard collection classes implements a dynamic array? a. AbstractList b. LinkedList c. AbstractSet d. Arraylist viii) Select the CORRECT statement to print the VALUE 3 from the following array: int[ ][]a={{2,4,6,8},{1,2,3,4}} a. System.out.ptintln( a[0][3]); b. System.out.ptintln( a[1][2]); c. System.out.ptintln( a[0][2]); d. System.out.ptintln( a[2][0]); ix) How many rows does the array " a " have if it is created as follows? int [][]a={{2,4,6,8},{1,2,3,4}}; a. 4 b. 3 c. 2 d. 1 x) Sequential Search algorithm is the only method that can be used to find a value in data. a. sorted b. unsorted c. ordered d. All of the mentioned xi) Which of these method of Array List class is used to obtain present size of an object? a. length () b. size0 c. index 0 d. get 0 xii) What will be the output of the following Java code? 1. elsss output public static void main (String argu (1) try int a=0,2 int b57 int c=b System,out.print ( Hel10"), catch (Excegtion e) Systes, out.print i-World"i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!