Question: If the str variable contains the string berry, which pseudocode statement changes its contents to blackberry? a. Set str[0] = black b. Set str =
If the str variable contains the string "berry", which pseudocode statement changes its contents to "blackberry"?
a. Set str[0] = "black"
b. Set str = str + "black"
c. insert(str, 0, "black")
d. insert(str, 1, "black")
Step by Step Solution
3.43 Rating (153 Votes )
There are 3 Steps involved in it
The answer is d insertstr 1 black Explanation Option a Set str0 black would only cha... View full answer
Get step-by-step solutions from verified subject matter experts
