Ensurepass QUESTION 51 You are developing a class named ExtensionMethods You need to ensure that the ExtensionMethods class implements the IsUrl() 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 be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.) Select and Place: Correct Answer: Read more [...]
Ensurepass QUESTION 41 You are developing an application. The application converts a Location object to a string by using a method named WriteObject. The WriteObject() method accepts two parameters, a Location object and an XmlObjectSerializer object. The application includes the following code. (Line numbers are included for reference only.) You need to serialize the Location object as XML. Which code segment should you insert at line 20? A. New XmlSerializer(typeof(Location)) B. New Read more [...]
Ensurepass QUESTION 31 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 user to the BookTracker instance. What should you do? A. Option A B. Option B C. Option C D. Option D Correct Answer: B QUESTION 32 You are creating a console application by using C#. You need to access the assembly found in the file Read more [...]
Ensurepass QUESTION 21 You are adding a public method named UpdateScore to a public class named ScoreCard. The code region that updates the score field must meet the following requirements: -It must be accessed by only one thread at a time. -It must not be vulnerable to a deadlock situation. You need to implement the UpdateScore() method. What should you do? A. Option A B. Option B C. Option C D. Option D Correct Answer: B QUESTION 22 You are developing a C# application that Read more [...]
Ensurepass QUESTION 11 You are developing an application. The application includes classes named Employee and Person and an interface named IPerson. The Employee class must meet the following requirements: -It must either inherit from the Person class or implement the IPerson interface. -It must be inheritable by other classes in the application. You need to ensure that the Employee class meets the requirements. Which two code segments can you use to achieve this goal? (Each correct answer Read more [...]
EnsurepassQUESTION 1 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. -Use zero-based indices. You need to use a collection type that meets the requirements. Which collection type should you use? A. Queue <T> B. SortedList C. LinkedList<T> D. HashTable E. Array <T> Correct Answer: A QUESTION 2 You are developing Read more [...]