Get expert insights and reliable answers to your questions on IDNLearn.com. Our experts are available to provide accurate, comprehensive answers to help you make informed decisions about any topic or issue you encounter.

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