Invoke Method Flashcards

1
Q

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

A

Instance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A

Target Type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Can you define methods, procedures, or functions in an Invoke Code activity?

Choose one of the options below

Yes

No

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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.

A

By using arguments.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

A

Import the Namespaces

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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

A

In | String | ScrapedText and Out | Int32 | InvoiceAmount

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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))

A

new List (of IList(of String))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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)

A

New Dictionary(of String, Int32)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

A

The TargetType

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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.

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly