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/17 01:25] 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 4: Detecting Management Events ==== 
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C10L4Q1: What are the four most important members of the //System.Management// namespace? ** +/* Added 20117012 */
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: //ManagementQuery//, //EventQuery//, //ObjectQuery// and //ManagementObjectQuery//+
- +
-/* --== Answer Question separator ==-- */+
  
-** C10L4Q2: What does //WMI// stand for? **+** WebC2L1Q2: What must an HTML server control be located inside to operate correctly? **
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: Windows Management Instrumentation.+Answer: A form element that has the //runat="server"// attribute.
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C10L4Q3: What are the two steps to retrieve information from the WMI? **+/Added 20117012 */
  
-/--== Question Answer separator ==-- *+** WebC2L1Q3What are the three methods of setting the properties of an HTML control? **
- +
-Answer: +
- +
-  - Create a //ManagementObjectSearcher// object and pass the query into the constructor. +
-  - Obtain a //ManagementObjectCollection// object by calling the //ManagementObjectSearcher//'s //Get// method. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C10L4Q4: What needs to be selected from to enumerate the logical drives? **+
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: //Win32_LogicalDisk//+Answer: Source view, design view and programmatically in code.
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C10L4Q5: What needs to be selected from to enumerate the network adapters? **+/Added 20117012 */
  
-/--== Question Answer separator ==-- *+** WebC2L1Q4In which event on what object should dynamically created controls be created? **
- +
-Answer//Win32_NetworkAdapterConfiguration// +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C10L4Q6: What needs to be selected from to enumerate the Windows Services? **+
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: //Win32_Service//+Answer: The Init event on the page object.
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C10L4Q7: What class would be used to respond a change in the WMI? ** +/* Added 20117012 */
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: //ManagementEventWatcher// +
- +
-==== Lesson 1: Understanding Code Access Security ==== +
- +
-/* --== Answer Question separator ==-- */+
  
-** C11L1Q1: What does CAS stand for? **+** WebC2L1Q5: What order are events from a web page raised on the server side? **
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: Code Access Security.+Answer: The event that caused the postback is processed last.
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C11L1Q2: What is the relationship between evidence, code groups and permission sets? **+/Added 20117012 */
  
-/--== Question Answer separator ==-- *+** WebC2L1Q6What property on a control should be set to minimize the size of the //ViewState// data? **
- +
-AnswerThe evidence that an assembly has determines what code group or groups it belongs to. The code group or groups determines what permission set or sets it gets. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C11L1Q3: What are the two types of evidence? **+
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: Host evidence and assembly evidence.+Answer: The //EnableViewState// should be set to //false//.
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C11L1Q4: What are the three CAS policy levels and which one would you most commonly use? **+/Added 20117012 */
  
-/--== Question Answer separator ==-- *+** WebC2L1Q7What are the five main page eventsin the order they occur? **
- +
-AnswerEnterprise, machine and user. Machine policy is the most commonly used. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C11L1Q5: What must an assembly have to increase its trust? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: A strong name. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C11L1Q6: As a developer, the permission set assigned to the My_Computer_Zone should be changed from what to what? ** +
- +
-Follow up question: Why should it be changed?+
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: From "Full Trust" to "Everything".+Answer: //Page_PreInit//, //Page_Init//, //Page_Load//, //Page_PreRender// and //Page_Unload//
  
-Follow up answerFull Trust completely skips all CAS statements in code. The Everything permission set has similar permissions, but it does not skip CAS statements.+==== Lesson 2 Exploring Common Web Server Controls ====
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C11L1Q7: What is the command line utility for maintaining CAS settings? **+/Added 20117012 */
  
-/--== Question Answer separator ==-- *+** WebC2L2Q1: What are two differences between the //Literal// control and the //TextBox// control? **
- +
-Answer: Caspol.exe - **C**ode **A**ccess **S**ecurity **POL**icy tool. +
- +
-==== Lesson 2: Using Declarative Security to Protect Assemblies ==== +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C11L2Q5: What are the three //SecurityAction//s? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: //RequestMinimum//, //RequestOptional// and //RequestRefuse//+
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C11L2Q6: CAS declarations are in what type of assemblies? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Fully trusted assemblies (or assemblies with the Full Trust permission set). +
- +
-==== Lesson 3: Using Declarative and Imperative Security to Protect Methods ==== +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C11L3Q1: How many declarative CAS security actions are available for assemblies and how many are available for methods? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Three for assemblies, six for methods. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C11L3Q2: What are the three declarative CAS security actions for assemblies? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: //RequestMinimum//, //RequestOptional// and //RequestRefuse//+
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C11L3Q3: What are the six declarative CAS security actions for methods? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: //Assert//, //Demand//, //Deny//, //InheritanceDemand//, //LinkDemand//, and //PermitOnly//+
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C11L3Q4: What is the difference between the //Demand// CAS security action and the //LinkDemand// CAS security action? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: //Demand// checks the security of __all__ the callers, //LinkDemand// only checks the security of the __immediate__ caller. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C11L3Q5: Which class is used to specify what to check for in a declarative permission statement and which is used in an imperative permission statement? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Declarative permission statements use //SecurityAction//, imperative permission statements use //CodeAccessPermission//+
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C11L3Q6: How should a method __check__ if it has a particular CAS permission? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Call the //System.Security.SecurityManager.IsGranted// method. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C11L3Q7: Which two security actions __reduce__ CAS permissions for a method and what is the difference between the two? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: //Deny// and //PermitOnly//. //Deny// removes only the specified permission, //PermitOnly// removes __all except__ the specified permission. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C11L3Q8: Which two security actions __reduce__ CAS permissions for an assembly and what is the difference between the two? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: //RequestRefuse// and //RequestOptional//. //RequestRefuse// removes only the specified permission, //RequestOptional// removes __all except__ the specified permission. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C11L3Q9: //Deny// and //PermitOnly// perform similar functions to what? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: //RequestMinimum// and //RequestOptional//+
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C11L3Q10: //RequestMinimum// and //RequestOptional// perform similar functions to what? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: //Deny// and //PermitOnly//+
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C11L3Q11: As the security action //Assert// can only be used once in a method, how can multiple CAS permissions be asserted? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Add the permissions to a //PermissionSet// object and assert that. +
- +
-==== Lesson 2: Exposing .NET Components to COM ==== +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C13L2Q1: When .NET components are consumed by COM, what handles the marshalling between .NET and COM? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: The COM Callable Wrapper (CCW). +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C13L2Q2: How do you hide a public .NET class from COM? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Give it a //ComVisible// attribute and pass in false. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C13L2Q3: What is used to export an assembly to COM? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Visual Studio or the Type Library Exporter Utility. +
- +
-==== Lesson 3: Using Unmanaged Code ==== +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C13L3Q4: What attribute is used to specify a library when creating a P/Invoke? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: //DllImport// +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C13L3Q5: What attribute is used to determine what order members of a structure are stored in memory? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: //StructLayoutAttribute// +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C13L3Q6: What are the three methods for determining what order members of a structure are stored in memory and how are they specified? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Auto, sequential and explicit. An instance of //LayoutKind// is passed to the attribute //StructLayout//+
- +
-==== Lesson 1: Understanding Reflection ==== +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C14L1Q1: What are the four parts of an assembly? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Assembly metadata (or manifest), type metadata, code and resources. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C14L1Q2: What is the relationship between assemblies, modules and types? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: An assembly can contain one or more modules (although typically just one). A module can contain one or more types. An assembly can not directly contain a type (or types must be contained in a module). +
- +
-==== Lesson 2: Assembly Attributes ==== +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C14L2Q1: How do you get a reference to the current assembly? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Call the //Assembly.GetExecutingAssembly// method. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C14L2Q2: Using reflection, how can you get a collection of all the attributes that a class has? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Call the //Assembly.GetCustomAttributes// method, which will return an array. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C14L2Q3: What happens when the revision part of the version number in the //AssemblyVersionAttribute// is set to an asterisk? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: It will be replaced with a random number by the compiler. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C14L2Q4: What happens when the build part of the version number in the //AssemblyVersionAttribute// is set to an asterisk? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: It will be replaced with an automatically incrementing number by the compiler. +
- +
-==== Lesson 3: Reflecting Types ==== +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C14L3Q1: How do you create a //Type// object based on a particular object? ** +
- +
-Follow up question: How do you create a //Type// object based on a particular class? +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Call the object's //GetType// method. +
- +
-Follow up answer: Use the //typeof// keyword. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C14L3Q2: If a //string// has been cast into a variable of type //object//, what will calling the method //GetType// on the variable return? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: A //Type// object that represents the __string__ class. +
- +
-==== Lesson 5: Creating Code at Runtime ==== +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C14L5Q1: Which class is used to create a dynamic assembly? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: //AppDomain//+
- +
-==== Pragmatic Programming ==== +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** PragC2Q5: What is Meyer'//Uniform Access principle//? **+
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
Line 388: Line 80:
 Answer: Answer:
  
-//"All services offered by a module should be available through a uniform notation, which does not betray whether they are implemented through storage or through computation."//+  * The //Literal// control does not support styles, themes, and skins. 
 +  * The //Literal// control does not inherit from //WebControl//.
  
-or+===== Chapter 3: Exploring Specialized Server Controls =====
  
-//"Class properties are good."//+==== Lesson 1: Exploring Specialized Web Server Controls ====
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** PragC2Q6: What are two techniques for avoiding or reducing inadvertent duplication? **+/Added 20110823 */
  
-/--== Question Answer separator ==-- *+** WebC3L1Q1What are the three modes of the //Literal// control? **
- +
-AnswerNormalise the data and don't store what can be calculated. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** PragC2Q7: What should be done if the //DRY// principle needs to be violated for performance reasons? **+
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: Ensure the violation is not exposed to the outside world by keeping it contained with in the class.+Answer: //PassThrough//, //Encode// and //Transform//.
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** PragC2Q8: How do you avoid impatient duplication? **+/Added 20110823 */
  
-/--== Question Answer separator ==-- *+** WebC3L1Q2What is the advantage of using the //Table//, //TableRow// and //TableCell// controls over using straight HTML markup? **
- +
-AnswerDiscipline. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** PragC2Q9: What adage relates to impatient duplication? **+
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: +Answer: The ability to add rows and cells programmatically.
- +
-//"Short cuts make for long delays."//+
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** PragC2Q10: What is orthogonality? **+/Added 20110824 */
  
-/--== Question Answer separator ==-- *+** WebC3L1Q3: What web control should be used if clicking on an image is required? **
- +
-Answer: Independence or decoupling. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** PragC2Q11: What are the two major benefits of orthogonality? **+
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: Increased productivity and reduced risk. +Answer: //ImageButton// or //ImageMap//.
- +
-/* --== Answer Question separator ==-- */ +
- +
-** PragC2Q12: How can you get an informal measurement of how orthogonal a team is? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Determine how many people __need__ to be involved in discussing each change that is requested. The less people, the more orthogonal and better off the team is. +
- +
-** PragC2Q13: How can low orthogonality affect a team? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Confusion over responsibilities leading to bickering. +
- +
-====== Life Questions ====== +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** LifeQ3: What is the effect / affect usage mnemonic? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: VANE - **V**erb **A**ffect **N**oun **E**ffect +
- +
-====== Article 1: Design Principles and Design Patterns, Robert CMartin ====== +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** Art1P4Q3: What is the Open Closed Principle and who came up with it? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: +
- +
-//"A module should be open for extension, but closed for modification."// - Bertrand Meyer +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** Art1P5Q1: What is the key to the OCP? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Abstraction. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** Art1P8Q1: What is the Liskov Substitution Principle and who came up with it? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: +
- +
-//"Subclasses should be substitutable for their base classes."// - Barbara Liskov +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** Art1P8Q2: What is the canonical example of the subtleties of the LSP? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: The Circle / Ellipse dilemma. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** Art1P12Q1: Violations of the LSP are also what? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Violations of the OCP. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** Art1P12Q2: What is the Dependency Inversion Principle? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: +
- +
-//"Depend on abstractions. Do not depend on concretions."//+
  
 {{tag>procedure study_questions}} {{tag>procedure study_questions}}
study_questions_audio_creation.1250472321.txt.gz · Last modified: 2017/01/01 19:54 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki