单项选择题
You work as an application developer at Certkiller .com.
You are required to launch the App.exe process, and specify sample.txt as the input file. App.exe will then use the contents of sample.txt to establish the environment’scurrent settings.You need to ensure that the code you use meets these requirements. What should you do?()
A.A
B.B
C.C
D.D
相关考题
-
多项选择题
Youarecreatinganapplicationthatprovidesinformationaboutthelocalcomputer.Theapplicationcontainsaformthatlistseachlogicaldrivealongwiththedriveproperties,suchastype,volumelabel,andcapacity.Youneedtowriteaprocedurethatretrievespropertiesofeachlogicaldriveonthelocalcomputer.Whatshouldyoudo?()
A.Retrieve an instance of the FileSystemInfo class.
B.Retrieve an instance of the DriveInfo class.
C.Retrieve the drive capacity by using the DriveInfo.TotalSize property.
D.Determine if the drive is available by using the FileSystemInfo.Attributes property.
E.Retrieve the drive names of all logical drives on a computer by using the DriveInfo.GetDrives method.
F.Retrieve the drive capacity by using the FileSystemInfo.Attributes property. -
单项选择题
You work as an application developer at Certkiller .com. You would like to create a custom performance counter for an application that you created recently. To do this, you decide to create a custom category named ApplicationPerformance and a performance counter named HitNumber.You need to ensure that this counter is shared across numerous applications. What should you do?()
A.A
B.B
C.C
D.D -
多项选择题
Youaredevelopinganapplicationtocreateanewfileonthelocalfilesystem.Youneedtodefinespecificsecuritysettingsforthefile.Youmustdenythefileinheritanceofanydefaultsecuritysettingsduringcreation.Whatshouldyoudo?()
A.Create the file by using a new FileStream object by passing the FileSecurity object as a parameter to the FileStream constructor.
B.Create a new FileSecurity object.
C.Apply the permissions by using the File class.
D.Create a new FileSystem Access Rule object for each permission that you need,and add each rule to the FileSecurity object.
E.Create a new FileSystem Audit Rule object and add it to the FileSecurity object.
