Which code segment should you use?
You need to write a multicast delegate that accepts a DateTime argument and returns a Boolean value.
Which code segment should you use?
Which code segment should you use?
You need to write a multicast delegate that accepts a DateTime argument.
Which code segment should you use?
Which code segment should you use?
You are creating an application that lists processes on remote computers.
The application requires a method that performs the following tasks: Accept the remote computer name as a string parameter named strComputer.
Return an ArrayList object that contains the names of all processes that are running on that computer.
You need to write a code segment that retrieves the name of each process that is running on the remote computer and adds the name to the ArrayList object.
Which code segment should you use?
Which storage option should you choose?
You are developing an application to assist the user in conducting electronic surveys.
The survey consists of 25 true-or-false questions.
You need to perform the following tasks:
Initialize each answer to true. Minimize the amount of memory used by each survey.
Which storage option should you choose?
Which code segment should you use?
You need to create a method to clear a Queue named q.
Which code segment should you use?
Which code segment should you use?
You write the following code.
public delegate void FaxDocs(object sender, FaxArgs args);
You need to create an event that will invoke FaxDocs.
Which code segment should you use?
Which code segment should you use?
You are developing a custom event handler to automatically print all open documents.
The event handler helps specify the number of copies to be printed.
You need to develop a custom event arguments class to pass as a parameter to the event handler.
Which code segment should you use?
Which criterion should the method meet?
You are developing a custom-collection class.
You need to create a method in your class.
You need to ensure that the method you create in your class returns a type that is compatible with the Foreach statement.
Which criterion should the method meet?
Which type should you choose?
You need to identify a type that meets the following criteria:
Is always a number.
Is not greater than 65,535. Which type should you choose?
Which class should you choose?
You need to select a class that is optimized for key-based item retrieval from both small and large collections.
Which class should you choose?