This is an old revision of the document!
Table of Contents
Study Questions - Audio Creation
CDEx Settings
Bitrate = 80 kbps
Mono
Quality = Very high (q = 0)
Questions To Be Recorded
Lesson 1: Navigating the File System
C2L1Q1: How do you enumerate the drives in a system?
Answer: Call the DriveInfo.GetDrives method.
C2L1Q2: How do you enumerate the files in a particular directory?
Answer:
- Create a new DirectoryInfo object, specifying the directory in the constructor.
- Call the GetFiles method on the DirectoryInfo object, which returns a collection of FileInfo objects.
C2L1Q3: How would you determine the size of a particular file in the file system?
Answer:
- Create a new FileInfo object, specifying the path to the file in the constructor.
- Examine the FileInfo's Length property.
C2L1Q4: How do you copy a file?
Answer:
- Create a new FileInfo object, specifying the path to the source file in the constructor.
- Call the FileInfo's CopyTo method, specifying the path to the destination file.
C2L1Q5: What are the high level steps required to monitor a directory for changes?
Answer:
- Create a FileSystemWatcher object.
- Set the Path property.
- Register for the event that you are interested in.
- Set the EnableRaisingEvents property to true.
C2L1Q6: How do you create a DriveInfo object for a specific drive?
Answer: Create a new DriveInfo object, specifying the drive letter in the constructor.
C11L2Q6: [Replacement] CAS declarations are only significant in what type of assemblies?
Answer: Partially trusted assemblies.
C11L3Q9: [Replacement] What are the three security actions that are applicable to assembles and what are their equivalent security actions that are applicable to classes and methods?
Answer:
- RequestRefuse (assembly) is equivalent to Deny (class and methods).
- RequestOptional (assembly) is equivalent to PermitOnly (class and methods).
- RequestMinimum (assembly) is equivalent to Demand (class and methods).