UiADPv1 Exam QuestionsBrowse all questions from this exam

UiADPv1 Exam - Question 85


Given a database “dt” with the following header:

“Surname, Address, Zip Code, Given Name, Phone Number”.

What is the correct configuration of the Invoke Method activity so that the resulting header will be:

“Surname, Given Name, Address, Zip Code, Phone Number”.

Show Answer
Correct Answer: C

To rearrange the columns so that the resulting header will be “Surname, Given Name, Address, Zip Code, Phone Number”, you need to use the SetOrdinal method to reposition the 'Given Name' column to the index 1, right after 'Surname'. The correct configuration should include dt.Columns("Given Name") as the TargetObject, SetOrdinal as the MethodName, and 1 as the Value for the parameter. Therefore, Option C is correct.

Discussion

3 comments
Sign in to comment
AndresPCOption: C
Feb 13, 2024

C is the correct one

kingkayyOption: C
Apr 17, 2024

You can test in studio using a build data table to create the original database column(dt). Then the invoke method, for target object use: dt.Columns("Given Name") and the method SetOrdinal. Use output datatable and log message to view output. Set the arguments like in the question at the parameter property.

EricHsuOption: C
Apr 30, 2024

The Start of the command is 0