ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 168 - AD01 discussion

Report
Export

Refer to the exhibit.

A Filename is the path and file name to which the Excel file should be saved Which of the following Expressions would return a valid Filename?

A.
RepJacedFile Name],' xlsx' '')&' xhx'
Answers
A.
RepJacedFile Name],' xlsx' '')&' xhx'
B.
[Root Folder)&[Flle Name]&'\xlsx'
Answers
B.
[Root Folder)&[Flle Name]&'\xlsx'
C.
LoadTextFiie((Root FokJer]&'V&' xisx'
Answers
C.
LoadTextFiie((Root FokJer]&'V&' xisx'
D.
[Root Folder]&'V&[File Name]
Answers
D.
[Root Folder]&'V&[File Name]
Suggested answer: D

Explanation:

In Blue Prism, to construct a valid file path from a root folder and a file name, you need to concatenate these two strings with the appropriate directory separator (backslash in Windows). The correct expression combines the root folder, a backslash, and the file name to form a complete path.

[Root Folder]&''&[File Name] (Option D): This expression correctly concatenates the root folder and the file name with a backslash in between, forming a valid path. For example, if [Root Folder] is 'C:\Users\Exam Taker\Downloads' and [File Name] is 'File_to_Save.xlsx', the result would be 'C:\Users\Exam Taker\Downloads\File_to_Save.xlsx'.

The other options are incorrect:

ReplacedFile Name],' xlsx' '')&' xhx' (Option A): This contains syntax errors and incorrect handling of file extensions.

[Root Folder)&[File Name]&'\xlsx' (Option B): This incorrectly places the file extension as a separate string, and there is a syntax issue with the parenthesis.

LoadTextFile([Root Folder]&''&' xisx' (Option C): This uses an incorrect function (LoadTextFile) and has a typo in the extension.

Reference Refer to Blue Prism's documentation on string manipulation and expression building to understand how to correctly concatenate strings to form file paths.

asked 16/09/2024
Kees den Dekker
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first