Which five code blocks should you use?

DRAG DROP
You have two methods named F1 and F2.
F2 takes a sting as a parameter.
You need to create a method named F3. F3 must retrieve a string value asynchronously. The string must call F2. During the asynchronous load of the string, F1 must run.
Which five code blocks should you use? Develop the solution by selecting and arranging the required code blocks in the correct order.
NOTE: You will not need all of the code blocks.
Select and Place:

microsoft-exams

7 thoughts on “Which five code blocks should you use?

  1. async Task F3()
    {
    HttpClient client = new HttpClient();
    Task myTaskString =
    client.GetStringAsync(“http://msdn.microsoft.com”);
    F1();
    string urlContents = await myTaskString;
    return F2(urlContents);
    }

    1. Sorry,
      async Task F3()
      {
      HttpClient client = new HttpClient();
      Task myTaskString =
      client.GetStringAsync(“http://msdn.microsoft.com”);
      F1();
      string urlContents = await myTaskString;
      return F2(urlContents);
      }

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.