If the following pseudocode was coded and executed, what would display?
```
Declare String str = "a1b2c3d4"
Declare Integer index
Declare Integer num = 0
For index = 0 To length(str) - 1
If isDigit(str[index]) Then
Set num = num + index
End If
End For
Display num
```
a. 15
b. 8
c. 16
d. 28
c. 16
You might also like to view...
What aspect of paging with a single page size makes page-replacement algorithms so much simpler than segment-replacement algorithms?
What will be an ideal response?
Which output column of the ls command displays the filename?
A. The first column B. The second column C. The seventh column D. The eighth column
In a letter, the space between the dateline and the inside address can range from 1 to 10 blank lines, depending on the length of the letter
Indicate whether the statement is true or false
Subdocuments display as ________, when the master document is collapsed
A) buttons B) grayed out C) bold D) hyperlinks