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
Ans: c. 16
Computer Science & Information Technology
You might also like to view...
A ________ is a visual display of tabulated frequencies
Fill in the blank(s) with correct word
Computer Science & Information Technology
Incident response is part of the ________ class of security controls.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology