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/08 00:15] 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 =====
  
-/* --== Answer Question separator ==-- */ 
- 
-** C8L3Q1: How do you debug a service? ** 
- 
-/* --== Question Answer separator ==-- */ 
- 
-Answer: Install it, start it and then attach a debugger to the service's process. 
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C8L3Q2: When creating a service, which methods should you override and which are optional? **+/Added 20117012 */
  
-Follow up question: What should you also do if you override any optional method?+** WebC2L1Q2: What must an HTML server control be located inside to operate correctly**
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: The methods //OnStart// and //OnStop// should be overridden. The methods //OnPause//, //OnContinue// and //OnShutdown// are optional. +Answer: A form element that has the //runat="server"// attribute.
- +
-Follow up answer: If //OnPause// and/or //OnContinue// are overriden, set //ServiceBase.CanPauseAndContinue// to true. If //OnShutdown// is overriden set //ServiceBase.CanShutdown// to true. +
- +
-** C8L3Q3: What four things does the //ServiceInstaller// class define? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: The service description, display name, service name and start type.+
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C8L3Q4: What does the //ServiceProcessInstaller// class define? ** +/* Added 20117012 */
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: The service account settings. +
- +
-/* --== Answer Question separator ==-- */+
  
-** C8L3Q5: What are the three start types for a service and which is the default? **+** WebC2L1Q3: What are the three methods of setting the properties of an HTML control? **
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: Automaticmanual (default) and disabled.+Answer: Source viewdesign view and programmatically in code.
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C8L3Q6: What are the four types of accounts that can be used a security context for a Windows service? **+/Added 20117012 */
  
-Follow up questionWhich is the default, which is the most secure and which is the most privileged?+** WebC2L1Q4In which event on what object should dynamically created controls be created**
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: +Answer: The Init event on the page object.
- +
-  * Local service (most secure) +
-  * Network service +
-  * Local system (most privileged) +
-  * User (default)+
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C8L3Q7: What tool is used to manually install a service? ** +/* Added 20117012 */
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: InstallUtil.exe. +
- +
-==== Lesson 1: Configuration Settings ==== +
- +
-/* --== Answer Question separator ==-- */+
  
-** C9L1Q1: What are two most important classes used to deal with application settings and what namespace are they in? **+** WebC2L1Q5: What order are events from a web page raised on the server side? **
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: //Configuration// and //ConfigurationManager//, which are in the //System.Configuration// namespace.+Answer: The event that caused the postback is processed last.
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C9L1Q2: What are the four //ConfigurationManager// methods that open various configurations? **+/Added 20117012 */
  
-/--== Question Answer separator ==-- *+** WebC2L1Q6What property on a control should be set to minimize the size of the //ViewState// data? **
- +
-Answer: +
- +
-  * //OpenExeConfiguration// +
-  * //OpenMachineConfiguration// +
-  * //OpenMappedExeConfiguration// +
-  * //OpenMappedMachineConfiguration// +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C9L1Q3: What should you always do before opening a mapped configuration file and why? **+
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: Check for the existence of the file, because if it is missing no error will be generated - instead all the configuration settings will be null.+Answer: The //EnableViewState// should be set to //false//.
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C9L1Q4: How can you specify which version of the .NET Framework an application should be run with? **+/Added 20117012 */
  
-/--== Question Answer separator ==-- *+** WebC2L1Q7What are the five main page events, in the order they occur? **
- +
-AnswerAdd a //supportedRuntime// entry in the //startup// section of the configuration file. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C9L1Q5: Which is obsolete, //ConfigurationSettings// or //ConfigurationManager//? **+
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: //ConfigurationSettings// +Answer: //Page_PreInit////Page_Init////Page_Load//, //Page_PreRender// and //Page_Unload//
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C9L1Q6: What are the two default properties of the //ConfigurationManager// class used to store configuration information? ** +
- +
-/* --== Question Answer separator ==-- */+
  
-Answer//AppSettings// and //ConnectionString//.+==== Lesson 2 Exploring Common Web Server Controls ====
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C9L1Q7: What is the default file name for putting configuration settings in? **+/Added 20117012 */
  
-/--== Question Answer separator ==-- *+** WebC2L2Q1What are two differences between the //Literal// control and the //TextBox// control? **
- +
-Answer: //App.config//+
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C9L1Q8: What is the XML path for custom application settings in the //App.config// file? ** +
- +
-Follow up question: What is the element name and what should its two attributes be?+
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: //configuration// -> //appSettings//.+Answer:
  
-Follow up answer: The element name is 'add' and the two attributes should be 'key' and 'value'.+  * The //Literal// control does not support styles, themes, and skins. 
 +  * The //Literal// control does not inherit from //WebControl//.
  
-/* --== Answer Question separator ==-- */+===== Chapter 3: Exploring Specialized Server Controls =====
  
-** C9L1Q9: How would you read a setting called 'foo' from the application settings file? ** +==== Lesson 1Exploring Specialized Web Server Controls ====
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Call //ConfigurationManager.AppSettings//["foo"] and store the result in a //String//+
- +
-==== Lesson 2Creating an Installer ====+
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C9L2Q1: What are the two specific predefined installers? **+/Added 20110823 */
  
-/--== Question Answer separator ==-- *+** WebC3L1Q1: What are the three modes of the //Literal// control? **
- +
-Answer: //AssemblyInstaller// and //ComponentInstaller//+
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C9L2Q2: What methods should be overridden when creating a custom //Installer// class? ** +
- +
-Follow up question: What two events can also be responded to?+
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: //Install//, //Commit//, //Rollback// and //Uninstall//+Answer: //PassThrough//, //Encode// and //Transform//.
- +
-Follow up answer: //Committing// and //Committed//.+
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C9L2Q3: Other than overriding methods and responding to events, what else needs to be done to create a custom //Installer// class? **+/Added 20110823 */
  
-/--== Question Answer separator ==-- *+** WebC3L1Q2What is the advantage of using the //Table////TableRow// and //TableCell// controls over using straight HTML markup? **
- +
-AnswerAdd the //RunInstallerAttribate// to the custom class and set the //runInstaller// parameter to true. +
- +
-==== Lesson 3: Using the .NET Framework 2.0 Configuration Tool ==== +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C9L3Q1: What are the code groups in the .NET Framework named after? **+
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: The evidence they provide. +Answer: The ability to add rows and cells programmatically.
- +
-===== Chapter 10: Instrumentation ===== +
- +
-==== Lesson 1: Logging Events ====+
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C10L1Q1: Which account have enough privileges to write to the Windows event log? **+/Added 20110824 */
  
-/--== Question Answer separator ==-- *+** WebC3L1Q3What web control should be used if clicking on an image is required? **
- +
-AnswerThe Local System account. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C10L1Q2: Which logs are available by default in the Windows event log mechanism? **+
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: Application, Security and System. +Answer: //ImageButton// or //ImageMap//.
- +
-==== Lesson 2: Debugging and Tracing ==== +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C10L2Q1: How can you programmatically signal a break to the debugger? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Call the //Debugger.Log//+
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C10L2Q2: How do you prevent a member from appearing in the variable watch window while debugging? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Add a //DebuggerBrowsable// attribute to the member and pass in //DebuggerBrowserState.Never//+
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C10L2Q3: How do you specify what text will appear in the Value column of the variable watch window for a custom class while debugging? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Add a //DebuggerDisplay// attribute to the member. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C10L2Q3: What does the //DebuggerDisplay// attribute do? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Specifies what should be displayed in the Value column of the variable watch window while debugging. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C10L2Q4: What does the //DebuggerHidden// attribute do? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: It prevents the debugger from breaking inside a class, method or property, even if there is a breakpoint. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C10L2Q5: How do you prevent the debugger from breaking inside a class, method or property, even if there is a breakpoint? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Add a //DebuggerHidden// attribute to the class, method or property. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C10L2Q6: How do you cause the debugger to automatically step over a section of code? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Add a //DebuggerStepThrough// attribute to the code. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C10L2Q7: What does the //DebuggerStepThrough// attribute do and how is it different to the //DebuggerHidden// attribute? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: The //DebuggerStepThrough// attribute causes the debugger to step over the code it decorates, but does not hide the code like the //DebuggerHidden// attribute does. +
- +
-==== Chapter 2 ==== +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** PragC2Q1: When does software maintenance begin and why? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Software maintenance begins as soon as coding starts, because things keep changing (requirements and our understanding of them, environments, knowledge etc.) +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** PragC2Q2: What is the //DRY// principle? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Don't Repeat Yourself. +
- +
-//"Every piece of knowledge must be a single unambiguous, authoritative representation with in a system."// +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** PragC2Q3: What are the four categories of duplication? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Hint: The four //i//'s of duplication. +
- +
-Answer: +
- +
-  * //Imposed// - Developers feel they have no choice - the environment appears to require duplication. +
-  * //Inadvertent// - Developers don't realise they are duplicating information. +
-  * //Impatient// - Developers get lazy and duplicate because it seems easier. +
-  * //Interdeveloper// - Multiple people on a team (or different teams) duplicate information. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** PragC2Q4: What is a technique for avoiding or reducing imposed duplication? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Code generation. +
- +
-==== Amy Update Only ==== +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C5L2Q2: What are the three steps to serialise data to XML? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: +
- +
-  - Create or get a reference to a stream, //TextWriter//, or //XmlWriter// object to hold the serialised output. +
-  - Create or get a reference to an //XmlSerializer// object, passing it the type of object to be serialised. +
-  - Call the //XmlSerializer// object's //Serialize// method, passing the stream and the object to be serialised. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C5L2Q3: What are the three steps to deserialise data from XML? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: +
- +
-  - Create or get a reference to a stream, //TextReader//, or //XmlReader// object to read the serialised input. +
-  - Create or get a reference to an //XmlSerializer// object, passing it the type of object to be deserialised. +
-  - Call the //XmlSerializer// object'//Deserialize// method, passing the stream, and cast the result.+
  
 {{tag>procedure study_questions}} {{tag>procedure study_questions}}
study_questions_audio_creation.1249690544.txt.gz · Last modified: 2017/01/01 19:54 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki