When should you call the Flush() method?
You create a program that writes a status message to a file every 10 seconds. You need to ensure
that all data is written to the file before the file is closed. When should you call the Flush() method?
Which three code fragments will display "Hello" followed by a new line?
You want to insert a new line on the console. Which three code fragments will display “Hello”
followed by a new line? (Each correct answer presents a complete solution. Choose three.)
Which method will be called when a FileStream is collected by the garbage collector?
Which method will be called when a FileStream is collected by the garbage collector?
Which is the implied base type of the class?
You create a class that does not explicitly inherit from any base class. Which is the implied base type
of the class?
You need to ensure that only objects of the System.DateTime type can be added to the collection
You create an ArrayList object. You need to ensure that only objects of the System.DateTime type
can be added to the collection. What should you do?
Which code segment prevents the class named Final from being inherited?
Which code segment prevents the class named Final from being inherited?
You need to avoid naming conflicts within your code
You use code from different companies. You need to avoid naming conflicts within your code. What
should you do?
Which type of Microsoft Visual Studio project should you use?
You need to create a DLL that contains classes that can be reused in other projects. Which type of
Microsoft Visual Studio project should you use?
Which tool should you use?
You need to be able to install and uninstall an assembly from the Global Assembly Cache (GAC).
Which tool should you use?
Common Intermediate Language (CIL) is converted into executable code by using:
Common Intermediate Language (CIL) is converted into executable code by using: