Which code segment should you insert at line 06?

You are developing an application that will convert data into multiple output formats.
The application includes the following code. (Line numbers are included for reference only.)

You are developing a code segment that will produce tab-delimited output. All output
routines implement the following interface:

You need to minimize the completion time of the GetOutput() method. Which code segment
should you insert at line 06?

You are developing an application that will convert data into multiple output formats.
The application includes the following code. (Line numbers are included for reference only.)

You are developing a code segment that will produce tab-delimited output. All output
routines implement the following interface:

You need to minimize the completion time of the GetOutput() method. Which code segment
should you insert at line 06?

A.
Option A

B.
Option B

C.
Option C

D.
Option D



Leave a Reply 4

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


harsh

harsh

I think correct answer is D

abcd

abcd

I do believe this question is in conclusive. string.Concat will perform better as long the iterator is smaller (not by much but still worth noting). While once the iterator grows in size String Builders performance far outshines the concat method