UIpath習題總結篇 - Lesson 9 - Excel & Data Tables

Lesson 9 - Excel & Data Tables

1.Excel

Excel Read Range activity

Single choice

(93)? What happens if you use the Excel Read Range activity to read a .xlsx file that is already opened?

? ? ? ? ? It will read an empty document.

? ? ? ? ? It will read the document successfully. (√)

? ? ? ? ? It will throw an error.

Single choice

(94)? What happens if the AddHeaders option is checked for Read Range Activity?

? ? ? ? ? The first row from the specified range is considered to be the column names(√)

? ? ? ? ? An exception is thrown

? ? ? ? ? A new row is added to the excel sheet Nothing happens

Single choice

(95)? What activity should you use to read all the data from a .xlsx file?

? ? ? ? ? Workbook Read Cell

? ? ? ? ? Excel Read Range (√)

? ? ? ? ? Workbook Read Range

? ? ? ? ? Excel Read Cell

Single choice

(96)? You need to read from an Excel sheet and you don’t know the range. What do you write in the “Range” property of the Read Range Activity?

? ? ? ? Write just the end cell

? ? ? ? Write an empty string (√)?

? ? ? ? It’s impossible, you have to specify the range

? ? ? ? Write some random range

Single choice

(97)? What activity can be used to read an entire sheet from a excel file?

? ? ? ? ? Write CSV? ? Read Range(√)? ? Get Table Range? ? ? Read Cell

Generate Data Table

Single choice

(98)? What activity can you use to create a DataTable from an input string?

? ? ? ? ? Generate Data Table(√)? Output Data Table? ? ? ? Build Data Table

Read Cell activity

Multiple Choice

(99)? How do you specify the Excel file to read from, in a Read Cell activity?

? ? ? ? ? You have to manually open the workbook

? ? ? ? ? In the WorkbookPath property, provide a relative path, if the workbook is in the project folder (√)

? ? ? ? ? In the WorkbookPath property, provide the full path of the workbook (√)

Excel Write Cell

Single choice

(100)? What activity you should use if you want to calculate a sum into a cell using Excel formulas?

? ? Excel Write Cell? (√) Workbook Write Cell? ? Excel Write Range? ? Workbook Write Range

Write Range activity

Single choice

(101)? What happens if you try to use a Write Range activity to a .xlsx file that does not exist?

? ? ? ? ? ? It will create that file for you and write the data in it. (√)

? ? ? ? ? ? It will continue the execution without writing the data.

? ? ? ? ? ? It will throw an error.

Append Range

Multiple Choice

(102)? What activity should you use if you want to add data to an existing .xlsx document?

? ? ? ? ? ? Excel Write Cell

? ? ? ? ? ? Workbook Append Range (√)

? ? ? ? ? ? Workbook Write Range

? ? ? ? ? ? Excel Append Range (√)

Excel Sort data table activity

Single choice

(103)? If you need to sort a table from an .xlsx file, what should you use?

? ? ? ? ? ? An Excel Get Table Range activity.? ? ? You cannot sort a table.

? ? ? ? ? ? An Excel Sort data table activity. (√)? A Workbook Sort Table activity.

For Each Row

Single choice

(104)? In order to loop through all the rows of a datatable, which activity should be used?

? ? ? ? ? ? For Each Row (√) Do While? ? While? ? For Each

Filter Data Table

2.Function

DataTable.Rows As DataRowCollection.IndexOf(row As DataRow)As Integer

eg. inputsTable.Rows.IndexOf(row) + 1

參照foreach (DataRow row in dt.Rows) 仿寫"DT.Rows in rowIndex"

參考鏈接:https://www.cnblogs.com/skyivben/archive/2010/08/22/1805686.html

Local

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
【社區(qū)內容提示】社區(qū)部分內容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發(fā)布,文章內容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。
禁止轉載,如需轉載請通過簡信或評論聯系作者。

友情鏈接更多精彩內容