Question: SECTION - A (151=15MARKS) Answer All Questions. Each question carries ONE Mark. 1. Choose the correct answer: i) String in Java is a a. statements
SECTION - A (151=15MARKS) Answer All Questions. Each question carries ONE Mark. 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 work d. None of the mentioned iv) In Java, the keyword is a special value that means "no object". a. null b. new c. void 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. Linkedl.ist c. AbstractSet d. ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
