Microsoft 98-372 - Microsoft .NET Fundamentals Exam

Question #6 (Topic: Topic 1)
You need to find out whether an application has access to delete files from the C:\Logs
directory.
Which code segment should you use?
A. var permission = new FileIOPermission(FileIOPermissionAccess.PathDiscovery, "C:\\Logs"); B. var permission = new FileIOPermission (FileIOPermissionAccess.Read, "C:\\Logs"); C. var permission = new FileIOPermission(FileIOPermissionAccess.Write, "C:\\Logs"); D. var permission = new FileIOPermission(FileIOPermissionAccess.Append, "C:\\Logs");
Answer: C
Question #7 (Topic: Topic 1)
You need to force the position of the cursor on the screen at (15, 10).
Which code segment should you use?
[Microsoft-98-372-6.1/Microsoft-98-372-5_2.png]
A. Option A B. Option B C. Option C D. Option D
Answer: C
Question #8 (Topic: Topic 1)
What is the purpose of strong naming?
A. To assign a globally unique key to the assembly. B. To ensure that only one version of an assembly is stored in a directory at any point in time. C. To manage the references of the file list in an assembly's manifest. D. To impose restrictions on how different data types are defined within an assembly.
Answer: A
Question #9 (Topic: Topic 1)
Which .NET object combines the identity and role of a user?
A. FormsIdentity B. WindowsPrincipal C. WindowsIdentity D. GenericIdentity
Answer: B
Question #10 (Topic: Topic 1)
You use code from different companies.
You need to avoid naming conflicts within your code.
What should you do?
A. Use global variables to reference each of the classes. B. Define each class as private. C. Deploy the classes as two separate files. D. Define the classes inside unique namespaces.
Answer: D
Download Exam
Page: 2 / 46
Total 230 questions