Solved

Assuming the Following Variable Declaration

Question 27

Multiple Choice

Assuming the following variable declaration,
Declare String str = "bot"
which of the following pseudocode statements changes the variable's contents to "robot"?


A) Set str[0] = "ro"
B) Set str = str + "ro"
C) insert(str, 0, "ro")
D) insert(str, length(str) , "ro")
E) None of the above.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions