UiPath certification · Exam UiPath-ADPv1

UiPath-ADPv1 Mock Exam Page 4

UiPath (ADPv1) Automation Developer Professional Exam

Free UiPath-ADPv1 mock exam questions 31–40, each with the answer and an explanation.

20 questions · 33 minutes · free, no sign-up

Free UiPath-ADPv1 questions

31–40 of 56 free
Question 31 Choose 1
A developer is working on an automation using the REFramework. Each transaction item represents a piece of client information. For each customer, the automated procedure must click the "Generate Shipment Details" button. This generates a table of shipment records for each customer.
What type of exception occurs when the data is not accessible, the created table displays only the header row, and processing for that client must be halted?
Show answerHide answer

Correct answer: A BusinessRuleException

Explanation

Explanation:
When the data is not accessible, the created table displays only the header row, and processing for that client must be halted, a BusinessRuleException occurs. A BusinessRuleException is a type of exception that indicates a business logic error or a validation error that cannot be resolved by retrying the transaction. For example, if the input data is incorrect, incomplete, or outdated, a BusinessRuleException should be thrown. A BusinessRuleException can be thrown by using the Throw activity with the following expression:
VB New BusinessRuleException(“Message”) where Message is a string that describes the error. A BusinessRuleException can be caught by using the Catch activity with the following expression:
VB ex As BusinessRuleException where ex is a variable that stores the exception object. A BusinessRuleException can be handled differently from other types of exceptions, such as SystemException or ApplicationException, depending on the logic of the automation. For example, in the REFramework, a BusinessRuleException sets the status of the transaction item to Failed and does not retry the transaction, whereas a SystemException sets the status of the transaction item to Retry and retries the transaction up to a specified number of times.
Question 32 Choose 1
What is a pre-requisite for running InitAllApplications Test Case?
Show answerHide answer

Correct answer: A Invoke InitAllSettings XAML file in Given.

Explanation

Explanation:
A test case is a set of steps and expected results that verify a certain functionality or behavior of an automation. A test case can be created in UiPath Studio or UiPath Test Manager, and it can contain both manual and automated steps. A test case can be executed manually or automatically, depending on the type of steps it contains.
A test case follows the Given-When-Then structure, which is a common format for writing test scenarios. The Given section describes the preconditions or initial state of the system before the test is executed. The When section describes the actions or events that trigger the test. The Then section describes the expected outcomes or postconditions of the test.
The InitAllApplications TestCase is a test case that verifies the initialization of all the applications that are used in the automation project. It is usually created in UiPath Studio, using the Test Cases feature. The InitAllApplications TestCase can be linked to the InitAllApplications.xaml workflow, which is a component of the REFramework template that opens and logs in to all the applications that are required for the automation.
The pre-requisite for running the InitAllApplications TestCase is to invoke the InitAllSettings.xaml file in the Given section of the test case. The InitAllSettings.xaml workflow is another component of the REFramework template that reads the configuration data from the Config.xlsx file and initializes the settings and assets for the automation project. By invoking the InitAllSettings.xaml file in the Given section, the test case ensures that the settings and assets are available and ready before opening and logging in to the applications.
The other options are not pre-requisites for running the InitAllApplications TestCase. Option B is incorrect, because the SetTransactionStatus.xaml file is not related to the initialization of applications, but to the setting of the status of a queue item after processing it. Option C is incorrect, because the CloseAllApplications.xaml file is not related to the initialization of applications, but to the closing of all the applications that were opened by the automation. Option D is incorrect, because the KillAllProcesses.xaml file is not related to the initialization of applications, but to the killing of all the processes that are associated with the automation.
Question 33 Choose 1
What are the components that define a state within a State Machine in UiPath Studio?
Show answerHide answer

Correct answer: B Entry, Exit, and Transition Actions with Trigger Conditions.

Explanation

Explanation:
A state machine is a type of automation that uses a finite number of states in its execution. It can go into a state when it is triggered by an activity, and it exits that state when another activity is triggered1. A state machine consists of states, transitions, and actions1. The components that define a state within a state machine in UiPath Studio are:
• Entry Actions: These are the activities that are executed when the state is entered1. For example, an entry action can be used to initialize a variable, display a message, or log some information1.
• Exit Actions: These are the activities that are executed when the state is exited1. For example, an exit action can be used to clean up some resources, close an application, or update a status1.
• Transition Actions: These are the activities that are executed when a transition from one state to another occurs1. For example, a transition action can be used to assign a value, send an email, or invoke a workflow1.
• Trigger Conditions: These are the conditions that determine when a transition from one state to another should happen1. For example, a trigger condition can be based on a variable value, a user input, or a timer1.
Question 34 Choose 1
In a UiPath State Machine workflow, which section of State activity is used to specify conditional/triggers logic and multiple outgoing transitions in a state machine?
Show answerHide answer

Correct answer: B Transitions

Explanation

Explanation: In a UiPath State Machine workflow, the Transitions section of the State activity is used to specify conditional/triggers logic and multiple outgoing transitions in a state machine. Transitions are expanded when you double-click them, just like the State activity. They contain three sections: Trigger, Condition and Action, that enable you to add a trigger for the next state, or add a condition under which an activity or sequence is to be executed. Transitions are represented by arrows or branches between states. They define the flow of the state machine and the rules for moving from one state to another. You can add multiple transitions from a state, but only one transition can be taken at a time, based on the trigger or condition that is met first.
Question 35 Choose 1
What is the purpose of The Relative To feature in Computer Vision activities?
Show answerHide answer

Correct answer: C To configure the target as being relative to an element, either a single point or an area selection in the application.

Explanation

Explanation: The Relative To feature in Computer Vision activities is used to configure the target as being relative to an element, either a single point or an area selection in the application. This feature enhances the accuracy and reliability of UI automation.
Question 36 Choose 1
A developer implemented a process using the Robotic Enterprise Framework and an Orchestrator queue. The MaxRetryNumber from the "Config.xlsx" file is set to "1" and the Max # of retries from the Queue settings from Orchestrator is set to "2". At runtime, the first transaction item throws a Business Exception. How many times will the transaction be retried?
Show answerHide answer

Correct answer: B The transaction will be retried only one time.

Explanation

Explanation: The transaction will be retried only one time because the MaxRetryNumber from the “Config.xlsx” file is set to “1”. This parameter determines how many times a transaction item is retried when it fails with an application or a business exception. The Max # of retries from the Queue settings from Orchestrator is set to “2”, but this parameter only applies to the queue items that are marked as “Retry” by the robot. In the Robotic Enterprise Framework, the SetTransactionStatus workflow marks the queue items as “Retry” only if the MaxRetryNumber is not reached. Therefore, the first transaction item will be retried once by the robot and then marked as “Failed” in the queue, regardless of the Orchestrator setting.
Question 37 Select all that apply
A developer designed a project in the REFramework. The "Config.xlsx" has me following Setting entry:

Assuming the default REFramework configuration, how can the developer reference the Setting in the Config variable to obtain the Setting value as a String from the dictionary?
Show answerHide answer

Correct answer: B Config (“OrchestratorOueueName ).ToString

Question 38 Choose 1
Which of the following describes the correct hierarchy of the elements in the Object Repository tree structure?
Show answerHide answer

Correct answer: C Application, Screen, Ul Element, Version.

Explanation

Explanation: The Object Repository in UiPath organizes elements in a hierarchical structure that reflects the logical arrangement of user interfaces and elements as they are captured and used in automation projects.
The correct hierarchy for elements in the Object Repository tree structure is:
A. Version, Application, Screen, UI Element.
This hierarchy starts with the 'Version', which could refer to the specific version of the application you are automating. Under each version, there could be multiple 'Applications' that you have elements for. Within each application, you might have captured various 'Screens' or dialogs, and within each screen, there are individual 'UI Elements' like buttons, text fields, dropdown menus, etc., that the automation interacts with.
However, it's important to note that in practice, when you are working with UiPath Studio and its Object Repository, the hierarchy usually starts with the 'Application', then under it, you have different 'Screens' of the application, and under each screen, you have the 'UI Elements'. The 'Version' is typically managed separately and is not a level in the hierarchy tree but rather a property or attribute of the application or element. Therefore, the most practical answer reflecting the usage in UiPath Studio would be:
C. Application, Screen, UI Element, Version.
The 'Version' here would be understood not as a layer in the hierarchy but rather as an attribute that can be associated with the 'Application' or 'UI Element'.
Question 39 Choose 1
What status needs to be selected in the Set Transaction Status activity in UiPath Studio so that the respective Queue Item will be retried?
Show answerHide answer

Correct answer: B Failed

Explanation

Explanation:
The Set Transaction Status activity in UiPath Studio is used to set the status of an Orchestrator queue item to Failed or Successful. This activity is usually placed at the end of the Process Transaction state in the REFramework template, after the Try Catch block. The status of the queue item determines whether it will be retried or not.
To retry a queue item, the status needs to be set to Failed. This means that the transaction was not completed successfully, and it needs to be processed again. The number of retries for a queue item depends on the MaxRetryNumber parameter in the Config file of the REFramework. By default, it is set to 2, which means that each queue item can be retried twice before it is marked as permanently failed.
The other options are not valid statuses for the Set Transaction Status activity. Option A is incorrect, because Retried is not a status, but a property of a queue item that indicates whether it has been retried or not. Option C is incorrect, because Abandoned is a status that is automatically assigned by Orchestrator to a queue item that has been in progress for more than 24 hours, and it cannot be retried. Option D is incorrect, because Postponed is a status that is automatically assigned by Orchestrator to a queue item that has a specific start date in the future, and it cannot be retried until that date is reached.
Question 40 Choose 1
Which LINQ method is used to filter data in a List or DataTable based on a condition?
Show answerHide answer

Correct answer: D Where

Explanation

Explanation:
LINQ (Language Integrated Query) is a feature of .NET that allows you to write queries to manipulate data from various sources, such as arrays, collections, databases, or XML files. LINQ provides a set of methods that can be used to perform different operations on the data, such as filtering, sorting, grouping, aggregating, or transforming.
The LINQ method that is used to filter data in a List or DataTable based on a condition is Where. The Where method returns a new collection that contains only the elements that satisfy the specified condition. The condition is usually a lambda expression or a delegate that takes an element as a parameter and returns a Boolean value. For example, if you have a List of integers called numbers, you can write:
var evenNumbers = numbers.Where (x => x % 2 == 0);
This expression returns a new List that contains only the even numbers from the original List. Similarly, if you have a DataTable called employees, you can write:
var highSalary = employees.AsEnumerable ().Where (row => row.Field (\"Salary\") > 100000);
This expression returns a new DataTable that contains only the rows where the Salary column is greater than 100000. The AsEnumerable () method is used to convert the DataTable into an IEnumerable, which is required for using LINQ methods.
The other options are not LINQ methods that are used to filter data in a List or DataTable based on a condition. Option A, Select, is a LINQ method that is used to project or transform data from one form to another. It returns a new collection that contains the result of applying a function to each element of the source collection. Option B, GroupBy, is a LINQ method that is used to group data by a common key or attribute. It returns a new collection that contains groups of elements that share the same key value. Option C, OrderBy, is a LINQ method that is used to sort data in ascending order by a specified criterion. It returns a new collection that contains the elements of the source collection in sorted order.
Full mock exam

Sit the UiPath-ADPv1 exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real UiPath-ADPv1 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full UiPath-ADPv1 mock exam
  • 65questions per mock
  • 105 mintime limit
  • 187questions in the bank
  • Newmock on every attempt