Which garbage collector method should you use?

You are developing an application by using C#. The application includes an object that performs a long running process. You need to ensure that the garbage collector does not release the object's resources until the process completes. Which garbage collector method should you use?A . WaitForFullGCComplete()B . SuppressFinalize()C . WaitForFullGCApproach()D...

December 16, 2018 No Comments READ MORE +

Which code segment should you use?

You are developing an application that will process orders. The debug and release versions of the application will display different logo images. You need to ensure that the correct image path is set based on the build configuration. Which code segment should you use? A . Option AB . Option...

December 13, 2018 No Comments READ MORE +

Which two actions should you perform?

You are creating a class named Employee. The class exposes a string property named EmployeeType. The following code segment defines the Employee class. (Line numbers are included for reference only.) The EmployeeType property value must be accessed and modified only by code within the Employee class or within a class...

December 12, 2018 No Comments READ MORE +

Which code segment should you insert at line 04?

An application will upload data by using HTML form-based encoding. The application uses a method named SendMessage. The SendMessage() method includes the following code. (Line numbers are included for reference only.) The receiving URL accepts parameters as form-encoded values. You need to send the values intA and intB as form-encoded...

December 11, 2018 No Comments READ MORE +

You need to implement the Save() method. Which code segment should you use?

You are creating an application that manages information about your company's products. The application includes a class named Product and a method named Save. The Save() method must be strongly typed. It must allow only types inherited from the Product class that use a constructor that accepts no parameters. You...

December 7, 2018 No Comments READ MORE +

What should you do?

You are developing an application that includes a class named BookTracker for tracking library books. The application includes the following code segment. (Line numbers are included for reference only.) You need to add a book to the BookTracker instance. What should you do? A . Option AB . Option BC...

December 6, 2018 No Comments READ MORE +

Which collection type should you use?

Topic 1, Volume A You are developing an application that includes a class named Order. The application will store a collection of Order objects. The collection must meet the following requirements: • Use strongly typed members. • Process Order objects in first-in-first-out order. • Store values for each Order object....

December 4, 2018 No Comments READ MORE +

Which code segment should you use?

You are developing an application that uses structured exception handling. The application includes a class named ExceptionLogger. The ExceptionLogger class implements a method named LogException by using the following code segment: public static void LogException(Exception ex) You have the following requirements: • Log all exceptions by using the LogException() method...

December 2, 2018 No Comments READ MORE +

Which code segment should you insert at line 10?

An application receives JSON data in the following format: The application includes the following code segment. (Line numbers are included for reference only.) You need to ensure that the ConvertToName() method returns the JSON input string as a Name object. Which code segment should you insert at line 10?A ....

December 2, 2018 No Comments READ MORE +

Which two actions should you perform?

You are developing an application by using C#. You have the following requirements: • Support 32-bit and 64-bit system configurations. • Include pre-processor directives that are specific to the system configuration. • Deploy an application version that includes both system configurations to testers. • Ensure that stack traces include accurate...

December 1, 2018 No Comments READ MORE +