What is the result? Given: What is the result? Given: What is the result? A. A B C D B. A C D C. A B C C D. A B D E. A B D C Show Hint ← Previous question Next question →
Josh Why wouldn’t it be E? Reply Tadeu because this: ta.replace(“C”, “D”); is not this: ta = ta.replace(“C”, “D”); Reply
mrtsilva Correct Answer is C. The ta.replace(‘C’, ‘D’) operation is not changing the value of the ta variable. That’s why C is concat twice. Reply
bella I also get C as the answer when running this code. TestKing says the answer is D – ABD. Did TestKing mark it as the wrong answer intentionally… Reply
Why wouldn’t it be E?
because this:
ta.replace(“C”, “D”);
is not this:
ta = ta.replace(“C”, “D”);
C
Correct Answer is C.
The ta.replace(‘C’, ‘D’) operation is not changing the value of the ta variable. That’s why C is concat twice.
C is the right answer
ta.replace(‘C’,’D’) return a new String but it is not assigned to ta
C, revisa el metodo replace
I also get C as the answer when running this code. TestKing says the answer is D – ABD. Did TestKing mark it as the wrong answer intentionally…
Answer: C
ta = A B C C
c
Answer: C
Did exam MAY 17, 2017…This question was seen
Answer: C