Microsoft Exam Questions

Which four code segments should you use in sequence?

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 thetext 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.)

Answer:

Explanation:
var sb = new StringBuilder();
sb.Append(“First Line”);
sb.AppendLine();
sb.Append(“Second Line”);