70-483 question 36 discussion

answered

You are developing an application by using C#. The application will output the text string
"First Line" followed by the text string "Second Line".
You need to ensure that an empty line separates the text strings.
Which four code segments should you use in sequence? (To answer, move the appropriate
code segments to the answer area and arrange them in the correct order.)


Created 4 months, 3 weeks ago by darthdassie

darthdassie

This answer will not leave an empty line between the 2 texts. Needs another sb.AppendLine() after the existing one.

bdosbdos

am i wrong that "firstLine" should be after "secondLine"? second and fourth lines should be swaped

devrifslcibef@outlook.fr

You are wrong : text string "First Line" followed by the text string "Second Line"

jituvic007

yes , it needs another sb.AppendLine(); to create an empty line between the two statements

mmaques

nop, appendline añade un terminador de linea a un objeto StringBuilder. The code is correct!

thava

@Bdosbdos, wow nice thinking X followed by Y means X->Y

bscholl

answer is correst as-is!

iwhitman2055

"You need to ensure that an empty line separates the text strings". A second AppendLine() is needed (or the first Append needs to change to AppendLine).

surya1970

The given ans is correct i executed in vs