Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

UiPath-ARDv1 Exam - Topic 4 Question 119 Discussion

Actual exam question for UiPath's UiPath-ARDv1 exam
Question #: 119
Topic #: 4
[All UiPath-ARDv1 Questions]

A developer wants to filter the following datatable to get all rows with people from Canada younger than 50 years old who provided their email address. Which expression provides the required results?

Show Suggested Answer Hide Answer
Suggested Answer: C

To filter a datatable using .Select method, follow the rules:

1. Place column name in square brackets

e.g. [Country]

2. Next, place a comparison sign (=, <=, >=, or <>)

e.g. [Country] =

3. Place all string values in a single quotation ' '

e.g. [Country] = 'Canada'

4. Join all required conditions using keywords like AND, OR

e.g. [Country] = 'Canada' AND [Age] < 50 AND [Email] <> ''

5. Surround all conditions in double quotes ' ' and place the final string in brackets after .Select

e.g. DataTable.Select('[Country] = 'Canada' AND [Age] < 50 AND [Email] <> ''')

UiPath forum

Exam Topic:Describe how to initialize variables such as lists and datatables, and how to filter datatables.


Contribute your Thoughts:

0/2000 characters
Emerson
1 day ago
Surprised that A has double quotes!
upvoted 0 times
...
Billy
6 days ago
Isn't && not valid in this context?
upvoted 0 times
...
Aliza
11 days ago
I think C is the right choice.
upvoted 0 times
...
Marquetta
17 days ago
Option B looks correct to me.
upvoted 0 times
...
Blair
22 days ago
I bet the developer is just trying to find all the young, Canadian email subscribers so they can spam them. Classic move!
upvoted 0 times
...
Ivette
27 days ago
Hmm, I wonder if the developer is also filtering for people who have a valid email address, not just a non-empty one. That could be an interesting twist!
upvoted 0 times
...
Robt
2 months ago
D) is the most readable and clear expression. I prefer using the && operator.
upvoted 0 times
...
Sharika
2 months ago
Option C is the correct one. The double-equals sign is the way to check for non-empty strings.
upvoted 0 times
...
Moon
2 months ago
B) looks good to me.
upvoted 0 times
...
Phung
2 months ago
I recall that using "AND" is important, but I can't remember if "&&" is valid in this context.
upvoted 0 times
...
Melodie
2 months ago
I think option C might be the right choice since it uses the correct operator for not equal, but I'm a bit confused about the brackets.
upvoted 0 times
...
Brice
2 months ago
I'm not entirely sure, but I feel like option B looks correct because it uses single quotes properly.
upvoted 0 times
...
Nan
3 months ago
I remember we practiced similar questions, and I think the syntax for filtering needs to be precise.
upvoted 0 times
...
Christiane
3 months ago
I'm a bit confused by all the different ways to write the same thing. Are there any subtle differences between the options that I should be aware of?
upvoted 0 times
...
Kanisha
3 months ago
I'm leaning towards option C. The <> operator for the email check seems a bit more intuitive than the != in option A.
upvoted 0 times
...
Marg
3 months ago
Option D looks good to me. The && operator makes the logic really explicit and easy to understand at a glance.
upvoted 0 times
...
Paris
3 months ago
Hmm, I'm a bit unsure about the syntax here. Do we need to use single quotes or double quotes for the string values? I'm not totally sure.
upvoted 0 times
...
Rupert
3 months ago
I think option B looks the most straightforward. Using the column names in brackets makes the expression clear and easy to read.
upvoted 0 times
...

Save Cancel