Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

Windows Workflow Foundation (WF) Skill Test

Topics Covered

  • Workflow Overview
  • Sequential Workflow
  • Configuring the Host Application
  • Monitor User Interface
  • PolicyActivity
  • Activity Lifecycle

Useful for hiring

  • .Net Developer- Windows Workflow Foundation
  • .Net Programmer- WF

Start hiring job-fit candidates using this assessment

GET A DEMO

"Our recruitment team loves Interview Mocha especially for their skill assessments, simulators, and friendly support. Since using Interview Mocha, we interview only relevant candidates, and this has reduced our time to hire. Recruitment is no longer an hassle for us."

Christoph, e-Zest GmbH
Question

Which statements are false about threads and activities?

Note: There can be multiple correct answers to this question.

Answer
    • When invoking a workflow, if you want to force a synchronous call on the same thread use SyncWorkflowInvoker

    • When invoking a workflow, if you want to force a synchronous call on the same thread use WorkflowInvoker

    • The ActivityExecutor invokes one and only one activity at a time so use and create async activities whenever possible

    • If you want fine-grained control over the threading behavior you can implement your own SynchronizationContext

    • When you want to use workflow in an environment with a different synchronization context use WorkflowApplication.SynchronizationContext to set the synchronization context you want to use

    • Because the ActivityExecutor invokes one and only one activity at a time, you cannot do asynchronous operations(you could not safely do async)

Question

What is MultipleResume bookmark?

Answer
    • Represents a bookmark that can be resumed exactly once.

    • Refers to a bookmark that you can resume multiple times.

    • Refers to a bookmark that does not block the functioning of the workflow.

Question

I need to create RaiseEvent method for workflow. Which code snippet can I use?

Answer
    • private bool RaiseEvent(EventHandler<OrderEventArgs> ev,
      Order order, Guid instanceId)
      {
      bool result = true;
      try
      {

      if (ev != null)
      {
      OrderEventArgs e = new OrderEventArgs(instanceId, order);
      ev(null, e);
      }
      }
      catch (EventDeliveryFailedException)
      {
      result = false;
      }

      }

    • private bool RaiseEvent(EventHandler<OrderEventArgs> ev,
      Order order, Guid instanceId)
      {
      bool result = true;
      try
      {

      if (ev != null)
      {
      OrderEventArgs e = new OrderEventArgs(instanceId, order);
      ev(null, e);
      }
      }
      catch (EventDeliveryFailedException)
      {
      result = false;
      }

      return result;
      }

    • private bool RaiseEvent(EventHandler ev,
      Order order, Guid instanceId)
      {
      bool result = true;
      try
      {

      if (ev != null)
      {
      OrderEventArgs e = new OrderEventArgs(instanceId, order);
      ev(null, e);
      }
      }
      catch (EventDeliveryFailedException)
      {
      result = false;
      }

      return result;
      }

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at support@interviewmocha.com to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO