Which three actions should you perform?

You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application currently generates output to a comma-delimited text file. Users have requested the output be generated to an XML file, a PDF file, or an HTML file. You need to design the application to allow output in different formats. You also need to allow addition of different output format types without recompilation of the application. Which three actions should you perform? (Each correct answer presents part of the solution. Choose three.)

You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application currently generates output to a comma-delimited text file. Users have requested the output be generated to an XML file, a PDF file, or an HTML file. You need to design the application to allow output in different formats. You also need to allow addition of different output format types without recompilation of the application. Which three actions should you perform? (Each correct answer presents part of the solution. Choose three.)

A.
Create separate methods for each output format type.

B.
Create a separate assembly for each output format type.

C.
Create an interface for output format type classes to inherit.

D.
Create an assembly that contains a class for each output format type.

E.
Use an if.. then.. else block to decide the type of output.

F.
Use the System.Reflection namespace to load the proper output type.



Leave a Reply 0

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