Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

DirectoryInfo dir = new DirectoryInfo(\".\"); foreach (FileInfo fil in dir.GetFi

ID: 3773292 • Letter: D

Question

DirectoryInfo dir = new DirectoryInfo(".");
foreach (FileInfo fil in dir.GetFiles("*.*"))
Console.WriteLine(fil.Name);

       the names of all files in the current directory
       the names of all subdirectories of the root directory
       the contents of all files in the root directory
       the names of all subdirectories of the current directory

10. (TCO 13) The following C# code will print out _____.

DirectoryInfo dir = new DirectoryInfo(".");
foreach (FileInfo fil in dir.GetFiles("*.*"))
Console.WriteLine(fil.Name);

(Points : 5)

Explanation / Answer

1) the names of all files in the current directory

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote