What is the result, if doc is present in the current directory?

Given the following files in doc directory:
– Index.htm
– Service.html
– Logo.gif
– Title.jpg
And the code fragment:

What is the result, if doc is present in the current directory?

Given the following files in doc directory:
– Index.htm
– Service.html
– Logo.gif
– Title.jpg
And the code fragment:

What is the result, if doc is present in the current directory?

A.
No output is produced.

B.
index.htm

C.
index.htm
userguide.txt
logo.gif

D.
index.htm
service.html
userguide.txt
logo.gif

Explanation:

The Glob search expression is defined through “glob:*.htm, html, xml”
The correct answer is A
The glob is trying to match all the string. The correct way is
glob:*.{htm,html,xml}
and then would be found:
Index.htm
Service.html



Leave a Reply 1

Your email address will not be published. Required fields are marked *


jalex

jalex

Answer is A, because the correct way would be “glob:*.{htm,html,xml}”