What would be the value of numS if the following pseudocode was coded and run?

```
Declare String prose = "she sells seashells at the seashore"
Declare Integer counter
Declare Integer numS = 0
For counter = 0 to length(prose)
If substring(prose, counter, counter) == "s" Then
Set numS = numS + 1
End If
End For

```

a. 6
b. 8
c. 30
d. 35

a. 6

Computer Science & Information Technology

You might also like to view...

When you deselect an option in a dialog box, you put a check in the appropriate check box

Indicate whether the statement is true or false

Computer Science & Information Technology

Right-clicking a column heading, then selecting Insert, will add a new column to the left of the current column

Indicate whether the statement is true or false

Computer Science & Information Technology