Question: If the str variable contains the string Redmond, which pseudocode statement changes its contents to Red? a. delete(str, 3, length(str)) b. delete(str, 3, 6) c.
If the str variable contains the string "Redmond", which pseudocode statement changes its contents to "Red"?
a. delete(str, 3, length(str))
b. delete(str, 3, 6)
c. Set str = str – "mond"
d. Set str[0] = "Red"
Step by Step Solution
3.53 Rating (153 Votes )
There are 3 Steps involved in it
The answer is c Set str str mond This statement removes the substring mond ... View full answer
Get step-by-step solutions from verified subject matter experts
