A developer has created a variable of type List of Strings named "Users_List", and initialized it with an empty list: "Users_List = new List(Of String)". What is printed in the log message after the following Invoke Code is executed?
Correct Answer: B
The screenshot shows an "Invoke Code" activity in UiPath with the following VB.NET code: Users_List.Add("User1") Users_List.Add("User2") According to the given information, the "Users_List" variable is a List of Strings that has been initialized with an empty list before the Invoke Code activity is run. The code within the Invoke Code activity is adding two strings: "User1" and "User2" to the "Users_List". The Log Message activity following the Invoke Code is attempting to log the count of items in "Users_List", which would be the number of elements contained in the list at that time. Given the steps that have been described, after the Invoke Code activity has run, the "Users_List" will contain two elements ("User1" and "User2"). Therefore, the log message will print the count of items in the list, which is: B: 2 So the correct answer is B, as the "Users_List" will have two elements and Users_List.Count will return the number 2. The Invoke Code activity is used to execute VB.NET or C# code within a UiPath workflow1. The activity has the following properties: Code: The code that is to be executed. This field supports only strings and String variables1. Language: The language that the code is written in. The available options are VBNet and CSharp1. Arguments: The parameters that can be passed to and from the code1. In this question, the developer has created a variable of type List of Strings named "Users_List", and initialized it with an empty list: "Users_List = new List(Of String)". Then, the developer has used the Invoke Code activity to execute the following code: Users_List.Add("User1") Users_List.Add("User2") This code adds two items ("User1" and "User2") to the "Users_List" variable. After the Invoke Code activity, the developer has used the Log Message activity to print the count of items in the "Users_List" variable, using the expression "Users_List.Count.ToString". This expression returns the number of items in the list as a string2. Therefore, the log message will print "2", as there are two items in the list
Question 7
The following table is stored in a variable called "dt". What will the value of the qty variable be after executing the Assign activity?
Correct Answer: C
The value of the qty variable will be 80 after executing the Assign activity. This is because the expression in the Assign activity is using the LINQ methods AsEnumerable, SkipWhile, and Item to access the data in the dt variable. The dt variable is a DataTable that contains the following data: Item Quantity apple 5 banana 10 mango 20 orange 80 grape 40 The AsEnumerable method converts the DataTable into an Enumerable collection of DataRow objects. The SkipWhile method skips the elements of the collection until the condition is false. The condition is a lambda expression that checks if the value of the Item column is equal to "mango". The (0) indexer returns the first element of the collection after skipping. The Item method accesses the value of the Quantity column of the DataRow. The ToString method converts the value into a string. Therefore, the expression will skip the first three rows of the DataTable and return the value of the Quantity column of the fourth row, which is 80. References: [DataTable.AsEnumerable Method], [Enumerable.SkipWhile Method], [DataRow.Item Property]
Question 8
A developer needs to create a repetitive process in the REFramework. Following the best practices, which action(s) should be performed to defend against potential robot crashes such as "out of memory"?
Correct Answer: D
The best practice for creating a repetitive process in the REFramework and defending against potential robot crashes such as "out of memory" is to mark all "Invoke Workflow File" activities from the Main.xaml file with the Isolated option. The Isolated option enables the workflow to run in a separate process, which reduces the memory consumption and the risk of memory leaks. It also improves the stability and the performance of the robot, as it isolates the errors and the exceptions that might occur in the invoked workflow. The Isolated option can be found in the Properties panel of the "Invoke Workflow File" activity, under the Options category. By marking all the invoked workflows as Isolated, the developer can ensure that the robot can handle a large number of transactions without crashing or slowing down
Question 9
When installing UiPath Studio, which of the following actions require administrator privileges?
Correct Answer: D
When installing UiPath Studio, the action that requires administrator privileges is installing the robot in service mode. Service mode is a type of robot installation that allows the robot to run unattended automations in the background, without requiring a user to be logged in. Service mode requires administrator privileges because it involves installing the robot as a Windows service and registering it to the UiPathOrchestrator.msi file. Installing the robot in user mode does not require administrator privileges, because it involves installing the robot as a Windows application and registering it to the UiPathAssistant.msi file. User mode is a type of robot installation that allows the robot to run attended automations in the foreground, requiring a user to be logged in. Installing UiPath Studio itself does not require administrator privileges, because it involves installing the Studio as a Windows application and registering it to the UiPathStudio.msi file. References: [Robot Installation Modes], [Installing the Robot], [Installing Studio]
Question 10
Where in the REFramework template project is the "SetTransactionStatus.xaml" invoked?