Multiple Choice
Assume that an object of the DirectoryInfo is instantiated using the identifier dirListing. How could you retrieve the names of all files stored in dirListing that have a file extension of .cs?
A) foreach(FileInfo fil in dirListing.GetFiles("*.cs") )
B) foreach(FileInfo fil in dirListing.GetFiles("cs") )
C) foreach(DirectoryInfo dirListing in File.GetFiles("*.cs") )
D) foreach(DirectoryInfo dirListing in File.GetFiles("cs") )
Correct Answer:

Verified
Correct Answer:
Verified
Q39: If a StreamReader object named reader is
Q40: To avoid fully qualifying references to objects
Q41: Streams are also used in C# to
Q42: The Execution version of an application contains
Q43: Instead of hard coding the actual filename
Q45: In C#, when data is written to
Q46: The _ class makes it easy to
Q47: StreamReader inFile = new StreamReader("name.txt");<br>While ((inValue =
Q48: Objects of streams can be wrapped with
Q49: If you use Visual Studio and include