Uipath : Data Manipulation with Strings in Studio
Consider the string variable Letters = "abcdefg". Which out of the four values would the expression Letters.Substring(1,2) return? -"bcd" -"bc" -"abc" -"ab"
-"bc"
Consider the list of strings ListOfContinents = {"Africa", "Antarctica", "Asia", "Australia", "Europe", "North America", "South America"}. What value will the expression ListOfContinents(2) return? -Australia -None, objects are not identified by their index in lists -Asia -Antarctica
-Asia
Which of the three collection data types is the best to store several cake recipes (names and ingredients)? -Set -Dictionary -Array -List
-Dictionary
Which out of the three activities can be used to process every item in a collection individually? -For Each -Do While -While
-For Each
What will the following expression return? String.Format("{1} is {0}", "home", "John", "far away", 0, 1) -"John is home" -"John is far away" -"Home is far away" -"1 is 0"
-"John is home"
Choose four typical uses of RegEx: (Multiple choice) -Data scraping -Interacting with UI elements -String manipulation -String parsing -Debugging -Input validation
-Data scraping -String manipulation -String parsing -Input validation
Pair the following methods that use the RegEx builder with the correct explanations. (Match the components)
-Matches : Searches an input string for all occurrences and returns all the successful matches. -IsMatch : Indicates if the specified regular expression finds a match in the specified input string. -Replace : Replaces strings that match a Regex pattern with a specified replacement string.
Which out of the four options is the correct way to concatenate a string variable (Username) with a string (" is online")? -"Username" + " is online" -Username + " is online" -Username + is online
-Username + " is online"