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/09/11 03:44] 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 -> Lucky Dip, 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. 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. +
- +
-19. Select everything and paste into the master StudyQuestions file.+
  
 ===== Questions To Be Lucky Dipped ===== ===== Questions To Be Lucky Dipped =====
- 
-===== Chapter 3: The Basic Tools ===== 
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** PragC3Q1: What are the three benefits of plain text? **+/Added 20117012 *
 + 
 +** WebC2L1Q2: What must an HTML server control be located inside to operate correctly? **
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: +Answer: A form element that has the //runat="server"// attribute.
- +
-  * Insurance against obsolescence +
-  * Leverage +
-  * Easier testing+
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** PragC3Q2: What are three situations that make tracing statements invaluable? **+/Added 20117012 *
 + 
 +** WebC2L1Q3: What are the three methods of setting the properties of an HTML control? **
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: +Answer: Source view, design view and programmatically in code.
- +
-  * Concurrent processes +
-  * Real-time systems +
-  * Event-based applications+
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C13L1Q11How are COM types that are defined in an assembly used differently from other managed types? **+/Added 20117012 *
 + 
 +** WebC2L1Q4In which event on what object should dynamically created controls be created? **
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: They aren't used differently (tricky).+Answer: The Init event on the page object.
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C13L1Q12How is compiling an interop project different from compiling managed project? **+/Added 20117012 *
 + 
 +** WebC2L1Q5What order are events from a web page raised on the server side? **
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: It isn't different (tricky).+Answer: The event that caused the postback is processed last.
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C13L1Q13: What three things does an interop application contain? **+/Added 20117012 *
 + 
 +** WebC2L1Q6: What property on a 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//.
- +
-  * A .NET client assembly. +
-  * One or more interop assemblies. +
-  * One or more registered COM components.+
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C13L1Q14Where should private assemblies be installed? **+/Added 20117012 *
 + 
 +** WebC2L1Q7What are the five main page events, in the order they occur? **
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: The same directory as the application.+Answer: //Page_PreInit//, //Page_Init//, //Page_Load//, //Page_PreRender// and //Page_Unload//
  
-/* --== Answer Question separator ==-- */ +==== Lesson 2 Exploring Common Web Server Controls ====
- +
-** C13L1Q15What must a shared assembly have and where is it installed? ** +
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: It must have a strong name and be installed in the Global Assembly Cache (GAC).+
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C13L1Q16: What is a primary interop assembly? **+/Added 20117012 */
  
-/--== Question Answer separator ==-- *+** WebC2L2Q1: What are two differences between the //Literal// control and the //TextBox// control? **
- +
-Answer: A unique, vendor-supplied, strong named, interop assembly that contains type definitions (as metadata) of types implemented with COM. +
- +
-/* --== Answer Question separator ==-- */ +
- +
-** C13L2Q4: What are the five guidelines for qualifying .NET types for interoperation? **+
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
Line 166: Line 109:
 Answer: Answer:
  
-  * Classes should implement interfaces explicitly. +  * The //Literal// control does not support stylesthemes, and skins
-  * Managed types must be public. +  * The //Literal// control does not inherit from //WebControl//.
-  * Methodspropertiesfields and events must be public+
-  * Types must have a public default constructor to be activated from COM. +
-  * Types can not be abstract.+
  
-/* --== Answer Question separator ==-- */+===== Chapter 3: Exploring Specialized Server Controls =====
  
-** C13L2Q5What public parts of a class are not exposed to COM clients? **+==== Lesson 1Exploring Specialized Web Server Controls ====
  
-/* --== Question Answer separator ==-- */+/* --== Answer Question separator ==-- */
  
-Answer: Parameterised constructors, static methods and constant fields. +/* Added 20110823 */
- +
-/* --== Answer Question separator ==-- */+
  
-** C13L2Q6: What does the Assembly Registration tool do and what .NET class provides the equivalent functionality? **+** WebC3L1Q1: What are the three modes of the //Literal// control? **
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: The Assembly Registration tool generates a type library and then registers it so that COM clients can use the .NET class transparentlyor it can unregister an assembly. The equivalent class is //RegistrationServices//.+Answer: //PassThrough//, //Encode// and //Transform//.
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C13L2Q7: What is the difference between the Type Library Exporter and the Assembly Registration tool? **+/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: The Type Library Exporter generates a type library but does not register it. The Assembly Registration tool does both.+Answer: The ability to add rows and cells programmatically.
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C13L2Q8How do you use the Type Library Exporter to generate a subset of the types defined in an assembly? **+/Added 20110824 *
 + 
 +** WebC3L1Q3What web control should be used if clicking on an image is required? **
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: You can't - the entire assembly is converted at once (tricky).+Answer: //ImageButton// or //ImageMap//. 
 + 
 +===== Replacements =====
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C13L2Q9How can an interop assembly be activated from any COM client? **+/Added 20110708 *
 + 
 +** WebC1L3Q1What are the five levels, in order, of the ASP.NET configuration hierarchy? **
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: After registering it, install it in the Global Assembly Cache (GAC).+Answer: Global machine, root default web, web site, web application, sub-directory. 
  
 /* --== Answer Question separator ==-- */ /* --== Answer Question separator ==-- */
  
-** C13L2Q10: When using the Assembly Registration tool, what does the ''/tlb'' option do? ** +/* Added 20100620 */
- +
-/* --== Question Answer separator ==-- */ +
- +
-Answer: It causes the Assembly Registration tool to generate a type library in addition to registering the types. +
- +
-/* --== Answer Question separator ==-- */+
  
-** C13L2Q11When should the ''/tlb'' option of the Assembly Registration tool not be used? **+** MvcC1Q1What are the six top-level directories, created by default when a new ASP.NET MVC project is created? **
  
 /* --== Question Answer separator ==-- */ /* --== Question Answer separator ==-- */
  
-Answer: If the assembly was produced by the Type Library Importer.+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.1252640658.txt.gz · Last modified: 2017/01/01 19:54 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki