UiPath Certification UiPath Data Manipulation and Variables 2 — Questions and Answers
Question 1: In UiPath, which collection type stores key-value pairs and allows fast lookup by key?
- List
- Array
- Queue
- Dictionary (Correct answer)
Correct answer: Dictionary
Dictionary(Of TKey, TValue) stores unique key-value pairs and provides O(1) average lookup time by key.
Question 2: What VB.NET expression checks if a string variable 'str' is null or empty in UiPath?
- str = Nothing
- String.IsNullOrEmpty(str) (Correct answer)
- str.IsEmpty
- str.Length = 0
Correct answer: String.IsNullOrEmpty(str)
String.IsNullOrEmpty(str) returns True if str is Nothing or an empty string, making it the safest null-safe check.
Question 3: Which UiPath activity filters rows in a DataTable based on a condition?
- Select Rows
- Filter Data Table (Correct answer)
- Remove Data Row
- Query Table
Correct answer: Filter Data Table
The 'Filter Data Table' activity applies column-based filter conditions and outputs a new DataTable containing only the matching rows.
Question 4: How do you concatenate two strings 'Hello' and 'World' with a space in UiPath VB.NET?
- 'Hello' + ' ' + 'World'
- 'Hello' & ' ' & 'World'
- String.Concat('Hello', ' ', 'World')
- B and C are both correct (Correct answer)
Correct answer: B and C are both correct
Both the & operator and String.Concat method are valid VB.NET string concatenation techniques supported in UiPath expressions.
Question 5: Which UiPath activity removes duplicate rows from a DataTable?
- Remove Duplicates
- Filter Data Table
- Remove Data Row
- LINQ on DataTable (Correct answer)
Correct answer: LINQ on DataTable
UiPath does not have a built-in 'Remove Duplicates' activity; you must use LINQ expressions like dt.AsEnumerable().Distinct() with a custom IEqualityComparer or group by logic.
Question 6: What is the correct VB.NET expression to get the current date as a formatted string like '2026-03-22' in UiPath?
- Now.ToString()
- DateTime.Now.ToString('yyyy-MM-dd') (Correct answer)
- Date.Today.Format('yyyy-MM-dd')
- Now.Date('yyyy-MM-dd')
Correct answer: DateTime.Now.ToString('yyyy-MM-dd')
DateTime.Now.ToString('yyyy-MM-dd') formats the current date and time using the ISO 8601 date format string.
In UiPath, which collection type stores key-value pairs and allows fast lookup by key?