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” Only the file name index.htm matches this pattern.



Leave a Reply 6

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


Francesco

Francesco

I can’t see the image!

Francesco

Francesco

Now I can see the image. The correct answer is A
The glob is trying to match all the string. The correct way is
glob:*.{htm,html,xml}

manish purohit

manish purohit

u r right