MCQs
Total Questions : 45
| Page 1 of 5 pages
Answer: Option B. -> fill()
fill() method assigns a value to all the elements in an array, in other words it fills the array with specified value.
Answer: Option C. -> sort()
sort()
Answer: Option D. -> binaryserach()
binaryserach() method uses binary search to find a specified value. This method must be applied to sorted arrays.
Answer: Option A. -> Array
Array
Answer: Option C. -> redo()
An element in a LinkedList object can be changed by first using get() to obtain the index or location of that object and the passing that location to method set() along with its new value.
Answer: Option A. -> Bitset
Bitset class creates a special type of array that holds bit values. This array can increase in size as needed.
Answer: Option A. -> get()
get()
Answer: Option B. -> length()
length()
Answer: Option D. -> clear()
clear()
Answer: Option C. -> before()
before() returns true if the invoking Date object contains a date that is earlier than one specified by date, otherwise it returns false.