Which code should you insert at line 16?

DRAG DROP
You have the following class. (Line numbers are included for reference only.)


You need to complete the doOperation method to meet the following requirements:
If AddNumb is passed as the operationName parameter, the AddNumb function is called.
If SubNumb is passed as the operationName parameter, the SubNumb function is called.
Which code should you insert at line 16? Develop the solution by selecting and arranging the required code blocks in the correct order. You may not need all of the code blocks.
Select and Place:


microsoft-exams

2 thoughts on “Which code should you insert at line 16?

  1. we have two ways to get a type of MyClass :
    1. Type myTypeObj = typeof(MyClass);
    2. Type myTypeObj = myClassObj.GetType();
    but in code blocks(proposition of answers) ‘typeOf’ it is misused. It means that the presented answer is correct

  2. Correct, if using typeof(), need to pass an actual type into the parameter not the an instance of the class or type
    ex. typeof(string), typeof(int), typeof(object)

Leave a Reply

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


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