Which algorithm should you use?

You are developing an application that will transmit large amounts of data between a client computer and a server. You need to ensure the validity of the data by using a cryptographic hashing algorithm. Which algorithm should you use?A . HMACSHA256B . RNGCryptoServiceProviderC . DESD . AesView AnswerAnswer: A Explanation:...

May 6, 2020 No Comments READ MORE +

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

May 6, 2020 No Comments READ MORE +

How should you complete the relevant code?

DRAG DROP You are developing an application that implements a set of custom exception types. You declare the custom exception types by using the following code segments: The application includes a function named DoWork that throws .NET Framework exceptions and custom exceptions. The application contains only the following logging methods:...

May 6, 2020 No Comments READ MORE +

How should you complete the relevant code?

DRAG DROP You are developing a class named ExtensionMethods. You need to ensure that the ExtensionMethods class implements the IsEmail() extension method on string objects. How should you complete the relevant code? (To answer, drag the appropriate code segments to the correct locations in the answer area. Each code segment...

May 6, 2020 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...

May 5, 2020 No Comments READ MORE +

Which code segment should you use?

You are creating a console application by using C#. You need to access the application assembly. Which code segment should you use?A . Assembly.GetAssembly(this);B . this.GetType();C . Assembly.Load();D . Assembly.GetExecutingAssembly();View AnswerAnswer: D Explanation: Assembly.GetExecutingAssembly - Gets the assembly that contains the code that is currently executing. Reference: http://msdn.microsoft.com/en-us/library/system.reflection.assembly.getexecutingassembly(v=vs.110).aspx Incorrect: Not...

May 5, 2020 No Comments READ MORE +

How should you complete the relevant code?

DRAG DROP You are developing an application that will include a method named GetData. The GetData() method will retrieve several lines of data from a web service by using a System.IO.StreamReader object. You have the following requirements: • The GetData() method must return a string value that contains the first...

May 5, 2020 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...

May 5, 2020 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...

May 4, 2020 No Comments READ MORE +

Which three code segments should you insert in sequence at line 09?

DRAG DROP You are developing an application that includes a class named Kiosk. The Kiosk class includes a static property named Catalog. The Kiosk class is defined by the following code segment. (Line numbers are included for reference only.) You have the following requirements: • Initialize the _catalog field to...

May 4, 2020 No Comments READ MORE +