1.

Which of this method is used to make all elements of an equal to specified value?(a) add()(b) fill()(c) all()(d) set()

Answer» Right choice is (b) fill()

For explanation: fill() method assigns a value to all the elements in an array, in other words, it fills the array with specified value.


Discussion

No Comment Found

Related InterviewSolutions