exam questions

Exam UiRPA All Questions

View all questions & answers for the UiRPA exam

Exam UiRPA topic 1 question 35 discussion

Actual exam question from UiPath 's UiRPA
Question #: 35
Topic #: 1
[All UiRPA Questions]

A developer created an attended automation project to generate and store employee IDs within a company’s HR application. The automation is used while onboarding new employees. The automation is designed as follows:
1. An HR associate enters a new employee's demographic information into an HR form.
2. The robot generates the employee ID in the format XXX-XX-XXXX, where the X's represent integers.
3. After Steps 1 and 2 are completed for all new employees, the robot will enter each employee ID into the HR application.
Which recommended data type should be used to store all new employee IDs?

  • A. List<String>
  • B. String
  • C. Int32
  • D. String[]
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
NiGer
2 months, 2 weeks ago
Selected Answer: A
Developer will have to go with list because HE doesn't know how many employees details SHE gonna enter
upvoted 1 times
...
DKAT2023
1 year, 3 months ago
Selected Answer: A
A make since you don't know in advance how many employee ID you need to store
upvoted 2 times
...
nalinnishant
1 year, 4 months ago
Selected Answer: A
Answer is A because there is a "-" between integer which makes it a string. And a size of new employee is not fixed therefore we will use List<String> instead of Array of string
upvoted 2 times
...
Ahmad506
1 year, 4 months ago
Selected Answer: A
Because they are all of the same category(numbers) we used list of string,,,if they were numbers mixed with letters, it have to be array
upvoted 2 times
...
noragrets
1 year, 6 months ago
List<String> because the "-" dashes turn them to be Strings. The question mentions "integer form" as a distraction to trick you into picking "integer" as the answer. List of String versus Array of String? Which is better? Remember that only Lists have dynamic size. That means you can add employee ID's to them in a "For Each" loop, one by one. It's much more difficult to do that with Arrays, because Arrays have fixed size. You add a value to an Array of 5 items, so now you have 6 items total. Check the length of the Array, and it will tell you that you still have 5 items in there. You can write janky code to manually update the size of the array to 6, but it's obvious that is not ideal when Lists have this functionality built-in already.
upvoted 2 times
...
MarioEmanuel88
1 year, 6 months ago
should be Int32 because those ID are intergers list of string, for sure can't be because id is int32 not string
upvoted 1 times
...
AutomationMaster
1 year, 8 months ago
Helllo fletchm58c. could you please add your input on it?
upvoted 1 times
...
AutomationMaster
1 year, 8 months ago
Selected Answer: D
Since X is an integer so ans should be Int32[]. If someone can clarify on it is appreciable.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago