Suppose \(a[1], a[2], a[3], \ldots, a[m]\) is a one-dimensional array and
consider the following algorithm segment:
$$
\begin{aligned}
&\operatorname{sum}:=0 \\
&\text { for } k:=1 \text { to } m \\
&\text { sum }:=\text { sum }+a[k] \\
&\text { next } k
\end{aligned}
$$
Fill in the blanks below so that each algorithm segment performs the same job
as the one given above.
a. \(s u m:=0\)
for \(i:=0\) to ______________
\(\operatorname{sum}:=\) ______________
next \(i\)
b. \(s u m:=0\)
for \(j:=2\) to ______________
sum := ______________
next \(j\)