Exam UiARD All QuestionsBrowse all questions from this exam
Question 48

A developer used title='1 writtenNotes - Notepad' as an attribute of a selector. The first character of the Notepad file name changes dynamically based on the .txt file used to open the file.

If the developer wants the selector to identify the Notepad by everything but the first character, how should title be replaced?

    Correct Answer: C

    If the developer wants the selector to identify the Notepad by everything but the first character, they should use a single-character wildcard to represent this changing character. The question specifies that only the first character changes dynamically. Using '?' as a single-character wildcard correctly matches just one character. Therefore, the correct replacement should be title='? writtenNotes - Notepad'.

Discussion
Engineer24Option: C

title='1 writtenNotes - Notepad' - if you want just to identify a diffrent number title then the answer is: title='? writtenNotes - Notepad'

soulebi

ive had similar discussion with my colleagues with this, they have the same answer with using the wildcard *, however in the question its clearly stated "first character" so using ? is the best answer here.

Mirjalol

You sir are misleading people a lot, like really a lot and it is annoying me. "?" works for SINGLE character, SINGLE character (0-9) not for 10-12-13 etc. So with your selector, if change filename to '10 writtenNotes - Notepad', your stupid selector crashes and it works if your filename is up-to '9 writtenNotes - Notepad', just check it from uipath studio, like do not be lazy please. Answer is with asterisk (*)

VladoChap97Option: C

If you read carefully the question says: "Identify the Notepad by everything but the first character. So in this case, as it is only asking for one character to be replaced, answer should be C

titanium192Option: A

Answer = A

MirjalolOption: A

Answer = 'A', tested in uipath studio. Do not listen to @Engineer24 that user is misleading people and he/she does not know nothing

IngvarnOption: C

Answer C

NrhnOption: A

A - is the right answer