Invoke Method Flashcards
This is the signature for the Collection<T>.Add(T) Method. What type of method is it?</T>
public void Add (T item)
Choose one of the options below
Static
Instance
Instance
This is the signature for the Sort(Array, Int32, Int32, IComparer) Method.
public static void Sort (Array array, int index, int length, System.Collection.IComparer? comparer);
What property of the Invoke Method activity must you configure to call this method?
Target Type
Target Object
Target Type
Can you define methods, procedures, or functions in an Invoke Code activity?
Choose one of the options below
Yes
No
No
How can you pass workflow data in and out of an Invoke Code activity?
Choose one of the options below
By using variables.
By using arguments.
You cannot pass data to an Invoke Code activity.
By using arguments.
When using VB.Net Code in an Invoke Code activity, what must you make sure you do?
Choose one of the options below.
Import the Namespaces
Define a function to contain the code in the Invoke Code activity
You can’t use VB.Net in an Invoke Code activity
Use only Object type arguments for input and output
Import the Namespaces
Your workflow contains a string variable ScrapedText=”220”.
You want to use an Invoke Method activity to call the Parse Method to convert the value and save it to an Int32 variable called InvoiceAmount.
How would you define the arguments?
Choose one of the options below.
In | String | ScrapedText and In | Int32 | InvoiceAmount
In | String | ScrapedText and Out | Int32 | InvoiceAmount
Out | String | ScrapedText and In | Int32 | InvoiceAmount
Out | String | ScrapedText and Out | Int32 | InvoiceAmount
In | String | ScrapedText and Out | Int32 | InvoiceAmount
Review Question: How can we initialize the following variable type:
List<IList<String>></String>
Choose one answer.
new IList (of IList(of String))
new List (of String))
new IList (of String))
new List (of IList(of String))
new List (of IList(of String))
Which of the following are situations where you should use the Invoke Method activity?
Choose all the options that apply
When we want to use a method which generates several pieces of output
When we want to use a method which does not generate an output
When we want to work with collections
When we need to write custom code for some steps in our process
When we have a class library/DLL in vb.net or c# and want to call that method
When we want to use a method which generates several pieces of output
When we want to use a method which does not generate an output
When we have a class library/DLL in vb.net or c# and want to call that method
Review Question: What expression would you use to initialize a dictionary object that pairs names (key) with ages (value)?
New Dictionary(of String, Int32)
New Dictionary(of Int32, String)
Dictionary (Int32, String)
Dictionary (String, Int32)
New Dictionary(of String, Int32)
You want to use the Round(Decimal) method in an Invoke Method activity. What do you need to configure?
Choose one of the options below
The TargetType
The TargetObject
The TargetType
Which of the following are situations where you should use the Invoke Code activity?
Choose all the options that apply
When we want to simplify data manipulation procedures in our workflow.
When we want to use a method which does not generate an output.
When we need to write custom code for some steps in the process.
When we want to create and save a custom activity.
When we want to reduce the number of Assign and Invoke Method activities, by replacing several with a single Invoke Code activity.
When we want to simplify data manipulation procedures in our workflow.
When we need to write custom code for some steps in the process.
When we want to reduce the number of Assign and Invoke Method activities, by replacing several with a single Invoke Code activity.