Question:Certkiller .com has asked you to develop an application that displays the properties for all
Certkiller.com's
network drives.
The information generated by this application will be utilized by Certkiller .com's network
administrators to
verify client setups.
You need to ensure that these requirements are fully satisfied.
What should you do? - (VB.NET) 

A Use the following code:
Public Sub EnumerateNetworkDrives()
For Each netDrive As Drive In Drive.GetDrives()
If netDrive.DriveType = DriveType.Network Then
Console.WriteLine("{0} ({1}) : {2} bytes", netDrive.Name, netDrive.VolumeLabel, netDrive.
TotalSize)
End If
Next
End Sub 

B Use the following code:
Public Sub EnumerateNetworkDrives()
For Each netDrive As DriveInfo In DriveInfo.GetDrives()
Console.WriteLine("{0} ({1}) : {2} bytes", netDrive.Name, netDrive.VolumeLabel, netDrive.
TotalSize)
Next
End Sub 

C Use the following code:
Public Sub EnumerateNetworkDrives()
For Each netDrive As DriveInfo In DriveInfo.GetDrives()
If netDrive.DriveType = DriveType.Network Then
Console.WriteLine("{0} ({1}) : {2} bytes", netDrive.Name, netDrive.VolumeLabel, netDrive.
TotalSize)
End If
Next
End Sub 

D Use the following code:
Public Sub EnumerateNetworkDrives()
For Each netDrive As DriveInfo In DriveInfo.GetDrives(DriveType.Network)
Console.WriteLine("{0} ({1}) : {2} bytes", netDrive.Name, netDrive.VolumeLabel, netDrive.
TotalSize)
Next
End Sub 

+ Answer
+ Report
Total Preview: 875

Copyright © 2024. Powered by Intellect Software Ltd