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...

Which of the following utilities use route tracing to identify a path from the sender to the target host?

A. gateway B. Traceroute C. firewalking D. auto-recovery

Computer Science & Information Technology

What is the operation on a linked structure called that visits each node without deleting it?

A. probe B. insertion C. removal D. traversal

Computer Science & Information Technology

When you declare or access an array, you can use any expression to represent the size, as long as the expression isĀ  _____.

A. a variable B. enclosed in brackets C. an integer D. a list

Computer Science & Information Technology

You can choose a border style from the four choices in the Border Style list: none, solid, dashed, or _______.

A. flashing B. bold C. dotted D. transparent

Computer Science & Information Technology