in Education by
Which of this method is used to make all elements of an equal to specified value? (a) add() (b) fill() (c) all() (d) set() This question was posed to me in an international level competition. My doubt is from Java.util in portion java.util – The Collections Framework of Java Select the correct answer from above options JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
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.

Related questions

0 votes
0 votes
    Which of these methods can randomize all elements in a list? (a) rand() (b) randomize() (c) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which is a possible way of finding all the img elements in the document? (a) document(images) (b) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
0 votes
    Which of this method is used to avoid polling in Java? (a) wait() (b) notify() (c) notifyAll( ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    How can we make methods available on all objects? (a) Object.add(methods) (b) Object.methods(add) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    Which of the following elements are used to include audio? (a) audio (b) video (c) svg (d) aud ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    Which syntax is used to describe elements in CSS? (a) Protectors (b) Selectors (c) Both Protectors ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
0 votes
    Which of these method wakes up all the threads? (a) wakeAll() (b) notify() (c) start() (d ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
...