Solved

Which of the Following Expressions Will Yield the String "John

Question 100

Multiple Choice

Which of the following expressions will yield the string "John Doe", where name1 = "John Blake" and name2 = "Janet Doe"?


A) name1.Substring(0, 4) & name2.Substring(6, 8)
B) name1.Substring(0, 4) & name2.Substring(0, 3)
C) name1.Substring(0, 5) & name2.Substring(6, 3)
D) None of the above

Correct Answer:

verifed

Verified

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

Related Questions