Answer: yes and main purpose of folder can help in storing and organizing files and data in the computer.
Hope this helped!
In what language? Most languages have iterator functions like map in JavaScript that will loop through the elements, making this almost a one liner
sum = 0
arr.map( elem => sum += elem )
Not sure if your asking what certain application or the definition. But the definition: A security practice that blocks or restricts unauthorized applications from executing in ways that put data at risk.