Exam UiARD All QuestionsBrowse all questions from this exam
Question 122

A developer needs to create an automation process that identifies a file with the format "Monthly_Report_MMddyyyy.xlsx". The file name is saved to a String variable called strInput. To extract the month ("MM") from strInput, which String manipulation method will provide this information?

    Correct Answer: A

    The correct method to extract the month from the string 'Monthly_Report_MMddyyyy.xlsx' would involve identifying the position of the underscore before 'MM' and then extracting two characters immediately following it. The method 'strInput.Substring(strInput.LastIndexOf('_')+1,2)' correctly extracts the substring starting from one position after the last underscore and takes the next two characters, which represent the month.

Discussion
OnlineOption: A

Correct answer is A

sur_bhi123456789Option: A

A is correct

[Removed]Option: A

Correct answer is A

Engineer24Option: A

Tested in Studio !