You have two string variables called Name and City. You want to construct a new sentence that includes the values from the following variables: My name is <Name> and I live in <City> Which expression will provide the required output?
A.
String.Format("My name is {0} and I live in {1}", Name, City)
B.
String.Format("My name is {0} and I live in {1}", "Name", "City")
C.
String.Format("My name is {1} and I live in {2)", "Name", "City")
D.
String.Format("My name is {1} and I live in {2}", Name, City)
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
[Removed]
1 year, 3 months agoEngineer24
1 year, 7 months ago