Exam Question Debate

Hello me and my colleagues are having a debate on this question

A developer used title=‘1writtenNotes - 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.

The answer on the website is

title=‘*writtenNotes - Notepad’

but my answer is

title=‘?writtenNotes - Notepad’

I don’t know if its just my comprehension about the “everything” but shouldnt the answer be ? because only the first character is changing?

if the file name is 1231231313131writtenNotes - Notepad it will still get this because its in asterisk which is not our goal since only the “first” character is dynamic

Hi @kevin.jeronne.d.gador ,

Yes. If a Strict Selection is to be done, then ? will only take up one character, then the option that you have chosen is the right one.

But additionally if the count does increase from 1 to 10, then the wild character * should be the right option, else we could also adopt the advanced methods of matching using regex.

1 Like

im preparing to take the UiArd advanced certification exam, how would I know if it’s strict or not? I immediately assume that every detail should be followed.

For example here it said “first character”

how can the answer be * if only the first character is dynamic?
hence it cannot be any character exceeding 1.

the file name could be

1writtenNotes - Notepad
5writtenNotes - Notepad
xwrittenNotes - Notepad
0writtenNotes - Notepad

@kevin.jeronne.d.gador ,

Maybe this edited part does address your question ?

last question if you would answer this question lets say you haven’t read any of what I said. What would be your answer?

A developer used title=‘1writtenNotes - 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.

a) *writtenNotes - Notepad
b) ?writtenNotes - Notepad

Would like to know.

@kevin.jeronne.d.gador ,

The question is fully not re-written to be understood from your point of view, but If I had to chose blindly and if there was no specification of the first character, then I would have chosen *.

What I would say is that - Understanding the question properly would lead us to a proper subset of answers and we would have to chose the best one that fits the question.