Data manipulation

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Which of the following four values will the following expression return? String.Format("{1} is {0}", "home", "John", "far away", 0, 1)

"John is home"

Consider the string variable Letters = "abcdefg". Which out of the four values would the expression Letters.Substring(1,2) return?

"bc"

Consider the list of strings ListOfContinents = {"Africa", "Antarctica", "Asia", "Australia", "Europe", "North America", "South America"}. What value will the expression ListOfContinents(2) return?

Asia

What are the different methods that UiPath offers for List Manipulation?

Clear Collection Exists in Collection Add to Collection Remove from Collection

The type of collection that does not have fixed number of elements are known as:

List

Which out of the four options is the correct way to concatenate a string variable (Username) with a string (" is online")?

Username + " is online"

What is the best collection data type to store several cake recipes (names and ingredients)?

Dictionary

Which of the three collection data types is the best to store several cake recipes (names and ingredients)?

Dictionary

Which out of the three activities can be used to process every item in a collection individually?

For Each

What expression would you use to instantiate a dictionary object that pairs names (key) with ages (value)?

New Dictionary(of String, Int32)

Choose four typical uses of RegEx:

Data scraping String manipulation Input validation String parsing

Lists Manipulation includes:

Sorting the objects. Adding and removing items. Looping through the items. Extracting items and converting them to other data types. Searching for an element.

Review Question : Which one of the following is a data type particular to UiPath and can store any kind of data, including text, numbers, dates, and arrays?

GenericValue

The default initialization value of an integer is:

0

Pair the following methods that use the RegEx builder with the correct explanations.

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.

Consider a dictionary variable (BirthDates), of type String, String, that contains name and birth date pairs. They key values are the names. You want to add a new key / value pair using an Assign Activity (John Doe, Apr/20/1980). What expressions would you enter in the To and Value fields of the Assign activity?

To: BirthDates("John Doe") Value: "Apr/20/1980"

Which of the following methods can be used to populate a list of strings type variable with the values John, Paul, George and Ringo?

Initiate the variable with New List(of String) and use Add To Collection activities to populate the list. Set the Default value in the Variables panel to New List(of String) from {"John", "Paul", "George", "Ringo"}


Kaugnay na mga set ng pag-aaral

Personal Finance: Chapter 6 Quiz

View Set

Circles in the Coordinate Plane Practice

View Set

Scrum Ch 4 Initiate--Develop Epic(s)

View Set

Chapter 10 Fetal Development and Genetics

View Set

Help Desk Customer Service (Mid term ALL quiz)

View Set

اهم الدول والقارات ect .. في الوحدة الاولى

View Set