User Tools

Site Tools


study_questions_lucky_dip_creation

Differences

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

Link to this comparison view

study_questions_lucky_dip_creation [2009/08/24 22:06] stephenstudy_questions_lucky_dip_creation [2017/01/01 20:05] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Study Questions - Lucy Dip Creation ====== ====== Study Questions - Lucy Dip Creation ======
  
-1. Copy the source of the questions and paste into Notepad++.+1. Copy the source of the questions.
  
-2. Remove the tag bit at the bottom.+2. Run the [[lucky_dip_processor]].
  
-3. In regular expression mode, replace+3. Goto the [[http://tallguyracing.com/wiki/doku.php?id=playground:playground|playgound]] and edit.
  
-<code>^====+.+====$</code>+4. Paste from the clipboard and save it.
  
-with nothing.+5. Select it (including the RSS XML Feed etc buttons).
  
-4In extended mode, replace+6. Open a **new** document in OpenOffice and paste the contents into it.
  
-<code>/* --== Answer Question separator ==-- */</code>+7. Set the Zoom to 73% (so that there are two pages per screen).
  
-with+8. Delete all the stuff at the top.
  
-<code><html>\n      </td>\n    </tr>\n    <tr>\n      <td width="50%">\n</html>\n</code>+9. Load styles -Lucky Dip, Text + Pages + Overwrite.
  
-5In extended mode, replace+10. Right click table -> Table... -> Text Flow tab -> Untick Allow row to break...
  
-<code>/* --== Question Answer separator ==-- */</code>+11. For each page,
  
-with+11.1. Put the cursor in the last row of the page.
  
-<code>\n<html>\n      </td>\n      <td width="50%">\n</html></code>+11.2. Click the Insert Row button lots.
  
-6Replace the first html element with+11.3. Copy and paste the all the cells on the first page to the second. Note that this will **overwrite** the cells, so if there are not some blanks leftover, undo and go back to 17.2.
  
-<code html> +11.4. Delete the blank cells.
-<html> +
-  <table border="1" width="100%"> +
-    <tr> +
-      <td width="50%"> +
-</html> +
-</code>+
  
-7Add this to end+12Highlight the right columns of odd pages and the left columns of the even pages (inside ones if two pages are displayed at once), change the background colour to black. **Also**, look for numbered bullet lists in the right column of the even pages and reset the numbering.
  
-<code html> +13Print. Set the Input Tray to Tray 1.
-<html> +
-      </td> +
-    </tr> +
-</html> +
-</code> +
- +
-8Select all and copy to the clipboard. +
- +
-9. Goto [[http://tallguyracing.com/wiki/doku.php?id=playground:playground]] and edit. +
- +
-10. Paste from the clipboard and save it. +
- +
-11. Select it (including the RSS XML Feed etc buttons). +
- +
-12. Open a **new** document in OpenOffice and paste the contents into it. +
- +
-13. Set the Zoom to 73% (so that there are two pages per screen). +
- +
-14. Delete all the crap at the top. +
- +
-15. Load styles -> Wiki Export 2, Text + Pages + Overwrite. +
- +
-16. Right click table -> Table... -> Text Flow tab -> Untick Allow row to break... +
- +
-17. For each page, +
- +
-17.1. Put the cursor in the last row of the page. +
- +
-17.2. Click the Insert Row button lots. +
- +
-17.3. Copy and paste the all the cells on the first page to the second. Note that this will **overwrite** the cells, so if there are not some blanks leftover, undo and go back to 17.2. +
- +
-17.4. Delete the blank cells. +
- +
-18. Modify the paragraph style 'Table Contents'. Change the Font colour to black. +
- +
-19. Highlight the right columns of odd pages and the left columns of the even pages (inside ones if two pages are displayed at once), change the background colour to black. **Also**, look for numbered bullet lists in the right column of the even pages and reset the numbering. +
- +
-20. Select everything and paste into the master StudyQuestions file.+
  
 ===== Questions To Be Lucky Dipped ===== ===== Questions To Be Lucky Dipped =====
  
-==== Lesson 1: Navigating the File System ====+/* --== Answer Question separator ==-- */
  
-/* --== Answer Question separator ==-- */+/* Added 20117012 */
  
-** C2L1Q1How do you enumerate the drives in a system? **+** WebC2L1Q2What must an HTML server control be located inside to operate correctly? **
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: Call the //DriveInfo.GetDrives// method.+Answer: A form element that has the //runat="server"// attribute.
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C2L1Q2How do you enumerate the files in a particular directory? **+/Added 20117012 *
 + 
 +** WebC2L1Q3What are the three methods of setting the properties of an HTML control? **
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: +Answer: Source viewdesign view and programmatically in code.
- +
-  - Create a new //DirectoryInfo// objectspecifying 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 ==-- */
  
-** C2L1Q3How would you determine the size of a particular file in the file system? **+/Added 20117012 *
 + 
 +** 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.
- +
-  - Create a new //FileInfo// object, specifying the path to the file in the constructor. +
-  - Examine the //FileInfo//'s //Length// property.+
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C2L1Q4How do you copy file? **+/Added 20117012 *
 + 
 +** WebC2L1Q5What order are events from web page raised on the server side? **
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: +Answer: The event that caused the postback is processed last.
- +
-  - 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.+
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C2L1Q5: What are the high level steps required to monitor directory for changes? **+/Added 20117012 *
 + 
 +** WebC2L1Q6: What property on control should be set to minimize the size of the //ViewState// data? **
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: +Answer: The //EnableViewState// should be set to //false//.
- +
-  - 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 ==-- */ /* --== Answer Question separator ==-- */
  
-** C2L1Q6: How do you create a //DriveInfo// object for a specific drive? **+/Added 20117012 */ 
 + 
 +** WebC2L1Q7: What are the five main page events, in the order they occur? **
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: Create a new //DriveInfo// objectspecifying the drive letter in the constructor.+Answer: //Page_PreInit//, //Page_Init//, //Page_Load//, //Page_PreRender// and //Page_Unload// 
 + 
 +==== Lesson 2:  Exploring Common Web Server Controls ====
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C11L1Q5: What must an assembly have before its trust can be increased? **+/Added 20117012 */
  
-/--== Question Answer separator ==-- *+** WebC2L2Q1What are two differences between the //Literal// control and the //TextBox// control? **
- +
-AnswerA strong name. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C10L2Q1: How can you programmatically signal a break to the debugger? **+
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: Call the //Debugger.Break// method.+Answer:
  
-/* --== Answer Question separator ==-- */+  * The //Literal// control does not support styles, themes, and skins. 
 +  The //Literal// control does not inherit from //WebControl//.
  
-** C9L2Q3Other than overriding methods and responding to events, what else needs to be done to create a custom //Installer// class? **+===== Chapter 3Exploring Specialized Server Controls =====
  
-/* --== Question Answer separator ==-- */ +==== Lesson 1Exploring Specialized Web Server Controls ====
- +
-AnswerAdd the //RunInstallerAttribute// to the custom class and set the //runInstaller// parameter to true.+
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C11L2Q6: CAS declarations are only significant in what type of assemblies? ** +/* Added 20110823 */
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Partially trusted assemblies.+
  
-** C7L1Q9How do you prevent new threads from getting the execution context? **+** WebC3L1Q1What are the three modes of the //Literal// control? **
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: Call the //ExecutionContext.SurpressFlow// before the new thread is created and call the //ExecutionContext.RestoreFlow// afterwards.+Answer: //PassThrough//, //Encode// and //Transform//.
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C11L3Q9: 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? **+/Added 20110823 *
 + 
 +** WebC3L1Q2: What is the advantage of using the //Table//, //TableRow// and //TableCell// controls over using straight HTML markup? **
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: +Answer: The ability to add rows and cells programmatically.
- +
-  * //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: What does the //DebuggerHidden// attribute do? **+/Added 20110824 */
  
-Follow up questionHow is it different from the //DebuggerStepThrough// attribute?+** WebC3L1Q3What web control should be used if clicking on an image is required**
  
 /* --== 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: //ImageButton// or //ImageMap//.
  
-Follow up answer: The //DebuggerStepThrough// attribute will **not** cause debugger to ignore any breakpoints in the code.+===== Replacements =====
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C10L2Q6: What does the //DebuggerStepThrough// attribute do? **+/Added 20110708 */
  
-Follow up questionHow is it different from the //DebuggerHidden// attribute?+** WebC1L3Q1What are the five levels, in order, of the ASP.NET configuration hierarchy**
  
 /* --== 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: Global machineroot default webweb site, web application, sub-directory.
  
-Follow up answer: The //DebuggerHidden// attribute will cause debugger to ignore any breakpoints in the code. 
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C10L2Q7: How do you prevent the debugger from breaking inside a class, method or property, even if there is a breakpoint? ** +/* Added 20100620 */
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: Add a //DebuggerHidden// attribute to the class, method or property. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C10L2Q8: 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 ==-- */+
  
-** C10L2Q9How do you add //DebuggerHidden// or //DebuggerStepThrough// attribute to a property? **+** MvcC1Q1What are the six top-level directories, created by default when new ASP.NET MVC project is created? **
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: Decorate either or both of the accessor methods with the attribute.+Answer: Controllers, Models, Views, Scripts, Content and App_Data.
  
 {{tag>procedure lucky_dip study_questions exam}} {{tag>procedure lucky_dip study_questions exam}}
study_questions_lucky_dip_creation.1251151572.txt.gz · Last modified: 2017/01/01 19:54 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki