Which one of the following statements, when placed in the blank space, will give strArr2 a value of “123”?

Given the following code:

strArr1 = string[]{“1”, “2”, “3”};

strArr2 = __________________________;

return strArr2;

Which one of the following statements, when placed in the blank space, will give strArr2 a value of “123”?
A . join(strArr1, “”)
B . combine(strArr1, “”)
C . join(strArr1, “ ”)
D . combine(“”, strArr1)

Answer: C

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

  • Sign up
Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.
We do not share your personal details with anyone.