What is the output of the following with 1-based indexing?
L ← [3, 1, 4, 1, 5]
sum ← 0
FOR i FROM 2 TO 4
sum ← sum + L[i]
END FOR
OUTPUT sum
Our free CSP practice questions act as a diagnostic tool to give you a clear snapshot of your Certified Safety Professional readiness. Discover which topics are your strengths and, more importantly, which critical topics require your immediate attention.
| Name | Certified Safety Professional |
| Code | CSP |
| Vendor | Construction and Industry |
| Certification | Board of Certified Safety Professionals (BCSP) |