New Year Sale 2026! 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
Robt
3 days ago
D) is the most readable and clear expression. I prefer using the && operator.
upvoted 0 times
...
Sharika
8 days ago
Option C is the correct one. The double-equals sign is the way to check for non-empty strings.
upvoted 0 times
...
Moon
13 days ago
B) looks good to me.
upvoted 0 times
...
Phung
18 days ago
I recall that using "AND" is important, but I can't remember if "&&" is valid in this context.
upvoted 0 times
...
Melodie
23 days 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
29 days ago
I'm not entirely sure, but I feel like option B looks correct because it uses single quotes properly.
upvoted 0 times
...
Nan
1 month ago
I remember we practiced similar questions, and I think the syntax for filtering needs to be precise.
upvoted 0 times
...
Christiane
1 month 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
1 month 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
2 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
2 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
2 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