User Tools

Site Tools


study_questions_audio_creation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
study_questions_audio_creation [2009/08/28 00:05] stephenstudy_questions_audio_creation [2017/01/01 20:05] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Study Questions - Audio Creation ====== ====== Study Questions - Audio Creation ======
  
-===== CDEx Settings =====+===== Mp3 Conversion Settings =====
  
-Bitrate = 80 kbps +''<nowiki>lame.exe -m m -q 0 --abr 85 --noreplaygain input.wav output.mp3</nowiki>''
- +
-Mono +
- +
-Quality = Very high (0)+
  
 ===== Questions To Be Recorded ===== ===== Questions To Be Recorded =====
  
-==== Lesson 1: Navigating the File System ==== 
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C2L1Q1: How do you enumerate the drives in a system? **+/Added 20117012 */
  
-/--== Question Answer separator ==-- *+** WebC2L1Q2What must an HTML server control be located inside to operate correctly? **
- +
-AnswerCall the //DriveInfo.GetDrives// method. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C2L1Q2: How do you enumerate the files in a particular directory? **+
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: +Answer: A form element that has the //runat="server"// attribute.
- +
-  - 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.+
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C2L1Q3: How would you determine the size of a particular file in the file system? **+/Added 20117012 */
  
-/--== Question Answer separator ==-- *+** WebC2L1Q3What are the three methods of setting the properties of an HTML control? **
- +
-Answer: +
- +
-  - Create a new //FileInfo// object, specifying the path to the file in the constructor. +
-  - Examine the //FileInfo//'s //Length// property. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C2L1Q4: How do you copy a file? **+
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: +Answer: Source viewdesign view and programmatically in code.
- +
-  - Create a new //FileInfo// objectspecifying the path to the source file in the constructor. +
-  - Call the //FileInfo//'s //CopyTo// method, specifying the path to the destination file.+
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C2L1Q5: What are the high level steps required to monitor a directory for changes? **+/Added 20117012 */
  
-/--== Question Answer separator ==-- *+** WebC2L1Q4In which event on what object should dynamically created controls be created? **
- +
-Answer: +
- +
-  - Create a //FileSystemWatcher// object. +
-  - Set the //Path// property. +
-  - Register for the event that you are interested in. +
-  - Set the //EnableRaisingEvents// property to true. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C2L1Q6: How do you create a //DriveInfo// object for a specific drive? **+
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: Create a new //DriveInfo// object, specifying the drive letter in the constructor.+Answer: The Init event on the page object.
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C11L2Q6: [Replacement] CAS declarations are only significant in what type of assemblies? ** +/* Added 20117012 */
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Partially trusted assemblies. +
- +
-/* --== Answer Question separator ==-- */+
  
-** 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? **+** WebC2L1Q5: What order are events from a web page raised on the server side? **
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: +Answer: The event that caused the postback is processed last.
- +
-  * //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).+
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C10L2Q5: [Replacement] What does the //DebuggerHidden// attribute do? **+/Added 20117012 */
  
-Follow up questionHow is it different from the //DebuggerStepThrough// attribute?+** WebC2L1Q6What property on a control should be set to minimize the size of the //ViewState// data**
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: It causes the debugger to step through the code for the class, method or property it decorates, and causes the debugger to ignore any breakpoints in the code. +Answer: The //EnableViewState// should be set to //false//.
- +
-Follow up answer: The //DebuggerStepThrough// attribute will **not** cause debugger to ignore any breakpoints in the code.+
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C10L2Q6: [Replacement] What does the //DebuggerStepThrough// attribute do? **+/Added 20117012 */
  
-Follow up questionHow is it different from the //DebuggerHidden// attribute?+** WebC2L1Q7What are the five main page events, in the order they occur**
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: It causes the debugger to step through the code for the classmethod or property it decoratesbut the debugger will still break at any breakpoints in the code.+Answer: //Page_PreInit////Page_Init////Page_Load//, //Page_PreRender// and //Page_Unload//
  
-Follow up answerThe //DebuggerHidden// attribute will cause debugger to ignore any breakpoints in the code.+==== Lesson 2 Exploring Common Web Server Controls ====
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C10L2Q7: [Replacement] How do you prevent the debugger from breaking inside a class, method or property, even if there is a breakpoint? **+/Added 20117012 */
  
-/--== Question Answer separator ==-- *+** WebC2L2Q1What are two differences between the //Literal// control and the //TextBox// control? **
- +
-AnswerAdd a //DebuggerHidden// attribute to the class, method or property. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C10L2Q8: [Replacement] How do you prevent the debugger from breaking inside a class, method or property, but still stop on any breakpoints? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Add a //DebuggerStepThrough// attribute to the class, method or property. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C10L2Q9: How do you add a //DebuggerHidden// or //DebuggerStepThrough// attribute to a property? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Decorate either or both of the accessor methods with the attribute. +
- +
-==== Lesson 3: Working with Dictionaries ==== +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C4L3Q1: When iterating over a //Hashtable//, what order are entries returned in, by default? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: The order of the hash values. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C4L3Q2: What are the five non-generic, non-specialised dictionary collections, what is each used for and what is the generic equivalent? **+
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
Line 161: Line 80:
 Answer: Answer:
  
-  * //Hashtable//, used for simple basic dictionaries//Dictionary<>//+  * The //Literal// control does not support stylesthemes, and skins
-  * //SortedList//, used for dictionaries that are sorted by key, //SortedList<>// and //SortedDictionary<>//+  * The //Literal// control does not inherit from //WebControl//.
-  * //ListDictionary//, used for small dictionaries, //Dictionary<>//+
-  * //HybridDictionary//, used for dictionaries of unknown or varying size, //Dictionary<>//+
-  * //OrderedDictionary//, used where direct control of the order is required, //Dictionary<>//.+
  
-/* --== Answer Question separator ==-- */+===== Chapter 3: Exploring Specialized Server Controls =====
  
-** C4L3Q3: What type of object does a non-generic dictionary collection contain? ** +==== Lesson 1Exploring Specialized Web Server Controls ====
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer//DictionaryEntry//+
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C4L4Q6: [Replacement] What are the five specialised collections and their generic equivalent? **+/Added 20110823 */
  
-/--== Question Answer separator ==-- *+** WebC3L1Q1What are the three modes of the //Literal// control? **
- +
-Answer: +
- +
-  - //BitArray//, no generic equivalent. +
-  - //BitVector32//, no generic equivalent. +
-  - //StringCollection//, equivalent to //List<String>//+
-  - //StringDictionary//, equivalent to //Dictionary<String>//+
-  - //NameValueCollection//, equivalent to //Dictionary<>//+
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C4L5Q3: What are the three non-specialised, non-directory, non-generic collections and their generic equivalent? **+
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: +Answer: //PassThrough//, //Encode// and //Transform//.
- +
-  - //ArrayList//, equivalent to //List<>//+
-  - //Queue//, equivalent to //Queue<>//+
-  - //Stack//, equivalent to //Stack<>//.+
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** ITQ4: What are Robert Martin's three laws of Test Driven Development? **+/Added 20110823 */
  
-/--== Question Answer separator ==-- *+** WebC3L1Q2What is the advantage of using the //Table//, //TableRow// and //TableCell// controls over using straight HTML markup? **
- +
-Answer: +
- +
-  - You are not allowed to write a line of production code until you have written a failing unit test. +
-  - You are not allowed to write more of the unit test than is sufficient to fail. +
-  - You are not allowed to write more production code than is sufficient to pass the test. +
- +
-==== Extension ==== +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C4XQ1: What does the compiler do when an iterator is implemented? **+
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: Automatically generates the //Current//, //MoveNext// and //Dispose// methods of the //IEnumerable// interface.+Answer: The ability to add rows and cells programmatically.
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C4XQ2: How do you implement an iterator? **+/Added 20110824 */
  
-/--== Question Answer separator ==-- *+** WebC3L1Q3What web control should be used if clicking on an image is required? **
- +
-Answer: +
- +
-  - Implement the //IEnumerable// interface. +
-  - Create a method called //GetEnumerator// which returns an //IEnumerator//+
-  - Use the ''yield return'' statement to return each element. +
-  - If required, use the ''yield break'' to end the iteration. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C1XQ1: What is the primary purpose of a delegate? **+
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: To facilitate event handling. +Answer: //ImageButton// or //ImageMap//.
- +
-/* --== Answer Question separator ==-- */ +
- +
-** PragC2Q14: What are three techniques to maintain orthogonality? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: +
- +
-  * Keep code decoupled. +
-  * Avoid global data. +
-  * Avoid similar functions. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** PragC2Q15: How is orthogonality related to unit testing? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: +
- +
-  * If the unit test does not require much set up, the unit has a good amount of orthogonality. +
-  * If the unit test has to bring in a big chunk of the system to set up the test, the unit has little orthogonality. +
- +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C4XQ3: What are two ways that the default iterator functionality can be extended? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: +
- +
-  - Named iterators can be created which allows a class to have multiple iteration techniques. +
-  - Parameterised iterators can be created which allows clients control over some or all of the iteration behaviour.+
  
 {{tag>procedure study_questions}} {{tag>procedure study_questions}}
study_questions_audio_creation.1251417921.txt.gz · Last modified: 2017/01/01 19:54 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki