Asynchronous Operations: Assessment Test Questions

  1. (Question pool 7) What method should you pass to the PXLongOperation.StartOperation() method?
    1. A method that should be executed when the asynchronous operation is complete
    2. A method that should be executed if an exception is thrown
    3. A method that should be executed asynchronously
  2. (Question pool 8) Select the correct statement about the delegate method that is passed to the PXLongOperation.StartOperation() method.
    1. For the correct asynchronous execution of the method, you should use the members of the current graph inside the delegate method.
    2. The use of the members of the current graph inside the delegate method is forbidden because this would lead to synchronous execution of the method.
    3. The usage of the members of the current graph inside the delegate method does not affect how the method gets executed.
  3. (Question pool 9) What method should you use to instantiate a graph from code (where T represents the graph's type)?
    1. PXGraph.CreateInstance<T>()
    2. new T()
    3. Create.T()
    4. Init.T()
  4. (Question pool 9) What is the expected result of using the new T() graph constructor (where T represents the graph's type) to instantiate a graph from code?
    1. The extensions or overrides of the graph will be initialized successfully.
    2. The extensions or overrides of the graph will not be initialized successfully.
    3. The code will fail to compile.
    4. The code will throw an exception at runtime.
  5. (Question pool 10) Select all correct statements about the PXLongOperation.StartOperation() method.
    1. Within the method that you pass to StartOperation(), you call the method that you want to be run asynchronously.
    2. The StartOperation() method creates a separate thread and executes the specified delegate asynchronously on this thread.
    3. The method passed into StartOperation() matches the PXToggleAsyncDelegate() delegate type.
    4. The StartOperation() method can be invoked only in a graph event handler.
  6. (Question pool 10) Select all correct statements about the PXLongOperation.StartOperation() method.
    1. This method executes code on a separate thread.
    2. You should use this method to configure data access class (DAC) attributes.
    3. This method can be invoked only in an action.
    4. This method can be invoked only in a graph event handler.
  7. (Question pool 10) Select all of the things that you should do to initiate an asynchronous operation in an action.
    1. Call the PXLongOperation.StartOperation() method
    2. Pass a delegate of the PXToggleAsyncDelegate type
    3. Stop the asynchronous operation manually