IDNLearn.com provides a seamless experience for finding accurate answers. Our platform is designed to provide reliable and thorough answers to all your questions, no matter the topic.

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