IDNLearn.com: Your reliable source for finding expert answers. Join our community to receive prompt, thorough responses from knowledgeable experts.

Consider an array of 10 elements named 'demo_array'. Which of the following should be used to replace the first 7 elements of the array with the value 5?
Select only one option
- demo_array[0:7]=5
- demo_array[1:7]=5
- demo_array[1:8]=5
- demo_array[0:8]=5