Automation Developer Professional Practice Test 60 Questions

Food & Hospitality

AUTOMATION DEVELOPER PROFESSIONAL PRACTICE TEST 60 QUESTIONS Question 1: A work�ow has a DataTable named dtOrders and must create a new DataTable containing only rows where Status is Ready...

Study Guide Viewer

Loading secure 3-page preview…

Study Guide Preview

Extracted text from the free preview pages.

AUTOMATION DEVELOPER

PROFESSIONAL PRACTICE

TEST 60 QUESTIONS

Question 1: A work�ow has a DataTable named dtOrders and must create a new DataTable containing only rows where Status is Ready, sorted by Amount descending. Which approach best �ts the requirement?

Choices:

1) Use dtOrders.AsEnumerable(), �lter with Where, sort with OrderByDescending, then call CopyToDataTable on the resulting rows 2) Use dtOrders.Select only, because Select always returns a sorted DataTable 3) Convert dtOrders to a Dictionary and sort the dictionary by value 4) Use Add Data Row repeatedly without applying any �lter Correct Answer: Use dtOrders.AsEnumerable(), �lter with Where, sort with OrderByDescending, then call CopyToDataTable on the resulting rows Explanation: LINQ can �lter DataRow objects with Where and sort them with OrderByDescending. CopyToDataTable converts the resulting enumerable of DataRow objects back into a DataTable.Page 1

Question 2: A source system provides the text 31-12-2026 and the automation must interpret it unambiguously as day-month-year. Which .NET approach is most appropriate?

Choices:

1) DateTime.Now.AddDays 2) DateTime.ParseExact using the format dd-MM-yyyy and an appropriate culture provider 3) Convert.ToInt32 on the full string 4) TimeSpan.Parse followed by ToString Correct Answer: DateTime.ParseExact using the format dd-MM-yyyy and an appropriate culture provider Explanation: ParseExact is designed for input that must match a known date pattern. Supplying dd-MM-yyyy prevents the day and month from being interpreted according to a di�erent locale format.

Question 3: An automation receives a UTC timestamp and must calculate the time

exactly 90 minutes later. Which operation is the clearest choice once the value has been parsed into a DateTime?

Choices:

1) AddMonths 2) AddSeconds 3) AddMinutes 4) AddDays

Correct Answer: AddMinutes

Explanation: DateTime.AddMinutes adds the speci�ed number of minutes to a DateTime.Adding 90 minutes directly expresses the required o�set without unit conversion.Page 2

Question 4: A developer uses Invoke Code to normalize values in a DataTable and

expects the modi�ed DataTable to be available to later activities. How should the DataTable argument be con�gured?

Choices:

1) As an In argument only 2) As a literal value with no argument mapping 3) As an Out argument only when the code also needs the incoming rows 4) As an In/Out argument so the code can receive and return the modi�ed object Correct Answer: As an In/Out argument so the code can receive and return the modi�ed object Explanation: An In/Out argument makes the existing DataTable available inside Invoke Code and propagates modi�cations back to the work�ow. An In-only mapping would not be the correct choice when the updated value must be returned through the argument.Question 5: A collection of �lenames must grow dynamically as new �les are discovered. Which variable type is the best �t?

Choices:

1) List(Of String) 2) String() with a �xed size assumption 3) DataRow 4) DateTime

Correct Answer: List(Of String)

Explanation: A generic List(Of String) is designed for a dynamically sized sequence and supports adding items directly. An array is less convenient when the number of �lenames changes during execution.Page 3

Get full access $39.00
Buy Now