study_questions
Differences
This shows you the differences between two versions of the page.
| study_questions [2009/09/20 22:17] – stephen | study_questions [2017/01/01 20:05] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 221: | Line 221: | ||
| Answer: // | Answer: // | ||
| - | ===== Chapter 4: Collections and Generics ===== | + | |
| ==== Lesson 3: Working with Dictionaries ==== | ==== Lesson 3: Working with Dictionaries ==== | ||
| Line 254: | Line 254: | ||
| Answer: // | Answer: // | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20091012 */ | ||
| + | |||
| + | ** C4L3Q4: Which list is a dictionary? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: // | ||
| ==== Lesson 4: Using Specialized Collections ==== | ==== Lesson 4: Using Specialized Collections ==== | ||
| Line 1240: | Line 1250: | ||
| Answer: InstallUtil.exe. | Answer: InstallUtil.exe. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20090922 */ | ||
| + | |||
| + | ** C8L3Q8: What are three methods for starting a Windows service? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: | ||
| + | |||
| + | * Server Explorer. | ||
| + | * Services Control Manager. | ||
| + | * Programmatically using the // | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20090922 */ | ||
| + | |||
| + | ** C8L3Q9: What exception will a // | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: // | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20090922 */ | ||
| + | |||
| + | ** C8L3Q10: What class is used to interact with Windows services? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: // | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20091012 */ | ||
| + | |||
| + | ** C8L3Q11: What should a service name be and how is it set? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: A service name should be unique and is set by modifying the // | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20091012 */ | ||
| + | |||
| + | ** C8L3Q12: What must a service' | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Return. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20091012 */ | ||
| + | |||
| + | ** C8L3Q13: What are three ways to stop or start a service? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: | ||
| + | |||
| + | * Use Computer Management' | ||
| + | * Use the //Net// command from a command line. | ||
| + | * Programmatically, | ||
| ===== Chapter 9: Installing and Configuring Applications ===== | ===== Chapter 9: Installing and Configuring Applications ===== | ||
| Line 1385: | Line 1463: | ||
| Answer: Application, | Answer: Application, | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20090923 */ | ||
| + | |||
| + | ** C10L1Q3: What should never be done with any event log object? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: It should never be passed to less trusted code. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20090923 */ | ||
| + | |||
| + | ** C10L1Q4: What is required to create an event source and why? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Administrative privileges is required because all logs, including security, must be searched to determine whether the event source is unique. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20090924 */ | ||
| + | |||
| + | ** C10L1Q5: Which versions of Windows do not support event logs? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Windows 98 and Windows Me. | ||
| ==== Lesson 2: Debugging and Tracing ==== | ==== Lesson 2: Debugging and Tracing ==== | ||
| Line 1721: | Line 1829: | ||
| /* --== Answer Question separator ==-- */ | /* --== Answer Question separator ==-- */ | ||
| - | /* Added 20090922 | + | /* Added 20090921 |
| - | ** C10L4Q22: What class or classes are used when registering a providers | + | ** C10L4Q22: What class or classes are used when registering a provider |
| /* --== Question Answer separator ==-- */ | /* --== Question Answer separator ==-- */ | ||
| Answer: // | Answer: // | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20090922 */ | ||
| + | |||
| + | ** C10L4Q23: What does the // | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: It represents a management query that returns instances or classes. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20090922 */ | ||
| + | |||
| + | ** C10L4Q24: What does the // | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: It retrieved a collection of management objects based on a specifies query. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20090922 */ | ||
| + | |||
| + | ** C10L4Q25: What does the // | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: It represents different collections of management objects retrieved through WMI. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20090922 */ | ||
| + | |||
| + | ** C10L4Q26: Objects contained in a // | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: // | ||
| ===== Chapter 11: Application Security ===== | ===== Chapter 11: Application Security ===== | ||
| Line 1924: | Line 2072: | ||
| /* --== Answer Question separator ==-- */ | /* --== Answer Question separator ==-- */ | ||
| - | ** C11L3Q10: What is the meaning of life? ** | + | ** <del>C11L3Q10: What is the meaning of life?</ |
| /* --== Question Answer separator ==-- */ | /* --== Question Answer separator ==-- */ | ||
| - | Answer: 42 | + | <del>Answer: 42</ |
| /* --== Answer Question separator ==-- */ | /* --== Answer Question separator ==-- */ | ||
| Line 2788: | Line 2936: | ||
| - Get a reference to the // | - Get a reference to the // | ||
| - Call the //Compare// method on the // | - Call the //Compare// method on the // | ||
| + | |||
| + | ====== Web Exam 70-528 Study Questions ====== | ||
| + | |||
| + | ===== Chapter 1: Introducing the ASP.NET 2.0 Web Site ===== | ||
| + | |||
| + | ==== Lesson 1: Understanding The Players ==== | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20110708 */ | ||
| + | |||
| + | ** WebC1L1Q1: What are the four main HTTP methods? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Get, post, put and delete. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20110708 */ | ||
| + | |||
| + | ** WebC1L1Q2: What are the five common MIME types? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Text, image, audio, video and application. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20110708 */ | ||
| + | |||
| + | ** WebC1L1Q3: What is the difference between where form data is stored in a GET request and a POST request? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: In a GET request, the form data is put in the query string. In a POST request, the data is put in the message body. | ||
| + | |||
| + | ==== Lesson 2: Creating a Web Site ==== | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20110708 */ | ||
| + | |||
| + | ** WebC1L2Q1: What are the three sections of an in-line ASPX file? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Page directives, code, layout. | ||
| + | |||
| + | ==== Lesson 3: Working with Web Configuration Files ==== | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20110708 */ | ||
| + | |||
| + | ** WebC1L3Q1: What are the five levels, in order, of the ASP.NET configuration hierarchy? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Global machine, root default web, web site, web application, | ||
| + | |||
| + | ==== Lesson 4: Using ASP.NET Trace ==== | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20110708 */ | ||
| + | |||
| + | ** WebC1L4Q1: What is the virtual page that displays trace information? | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Trace.axd. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20110708 */ | ||
| + | |||
| + | ** WebC1L4Q2: What are the two methods of configuring the trace facility? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Using the Website Administration Tool and editing the web.config file. | ||
| + | |||
| + | ===== Chapter 2: Adding and Configuring Server Controls ===== | ||
| + | |||
| + | ==== Lesson 1: Using a Server Control ==== | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20110708 */ | ||
| + | |||
| + | ** WebC2L1Q1: How should the source of bloat in the // | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: By using the trace facility. | ||
| + | |||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20117012 */ | ||
| + | |||
| + | ** WebC2L1Q2: What must an HTML server control be located inside to operate correctly? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: A form element that has the // | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20117012 */ | ||
| + | |||
| + | ** WebC2L1Q3: What are the three methods of setting the properties of an HTML control? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Source view, design view and programmatically in code. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20117012 */ | ||
| + | |||
| + | ** WebC2L1Q4: In which event on what object should dynamically created controls be created? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: The Init event on the page object. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20117012 */ | ||
| + | |||
| + | ** WebC2L1Q5: What order are events from a web page raised on the server side? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: The event that caused the postback is processed last. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20117012 */ | ||
| + | |||
| + | ** WebC2L1Q6: What property on a control should be set to minimize the size of the // | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: The // | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20117012 */ | ||
| + | |||
| + | ** WebC2L1Q7: What are the five main page events, in the order they occur? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: // | ||
| + | |||
| + | ==== Lesson 2: Exploring Common Web Server Controls ==== | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20117012 */ | ||
| + | |||
| + | ** WebC2L2Q1: What are two differences between the //Literal// control and the //TextBox// control? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: | ||
| + | |||
| + | * The //Literal// control does not support styles, themes, and skins. | ||
| + | * The //Literal// control does not inherit from // | ||
| + | |||
| + | ===== Chapter 3: Exploring Specialized Server Controls ===== | ||
| + | |||
| + | ==== Lesson 1: Exploring Specialized Web Server Controls ==== | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20110823 */ | ||
| + | |||
| + | ** WebC3L1Q1: What are the three modes of the //Literal// control? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: // | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20110823 */ | ||
| + | |||
| + | ** WebC3L1Q2: What is the advantage of using the //Table//, // | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: The ability to add rows and cells programmatically. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20110824 */ | ||
| + | |||
| + | ** WebC3L1Q3: What web control should be used if clicking on an image is required? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: // | ||
| ====== IT Questions ====== | ====== IT Questions ====== | ||
| Line 2846: | Line 3200: | ||
| Answer: //Cast// is ANSI compliant. //Convert// is specific to SQL Server and allows some formatting options. | Answer: //Cast// is ANSI compliant. //Convert// is specific to SQL Server and allows some formatting options. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20091017 */ | ||
| + | |||
| + | ** ITQ7: What type of URL should destructive or data modifying operations be put behind and why? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: They should be put behind HTTP-POST requests because web-crawlers and search engines are not supposed to follow them. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20110708 */ | ||
| + | |||
| + | ** ITQ8: What should be looked for in a code review? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Correctness (only). | ||
| ====== Fractal Questions ====== | ====== Fractal Questions ====== | ||
| Line 2900: | Line 3274: | ||
| Answer: Embarrassing and laughable. | Answer: Embarrassing and laughable. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20100106 */ | ||
| + | |||
| + | ** LifeQ5: What two things should every person with a job be doing? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: | ||
| + | |||
| + | * The very best they can at their job. | ||
| + | * Looking for a better job. | ||
| ====== The Pragmatic Programmer ====== | ====== The Pragmatic Programmer ====== | ||
| Line 3209: | Line 3596: | ||
| * Real-time systems | * Real-time systems | ||
| * Event-based applications | * Event-based applications | ||
| + | |||
| + | ===== Chapter 5: Bend or Break ===== | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20090929 */ | ||
| + | |||
| + | ** PragC5Q1: What is the Law of Demeter? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Any method of an object should call only methods belonging to: | ||
| + | |||
| + | * itself, | ||
| + | * any parameters that were passed into the method, | ||
| + | * any object it created, or | ||
| + | * any directly held component objects. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20090929 */ | ||
| + | |||
| + | ** PragC5Q2: What is the response set of a class? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: The number of functions directly invoked by methods of the class. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20091007 */ | ||
| + | |||
| + | ** PragC5Q3: What us Levy's Eight Law? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: | ||
| + | |||
| + | "No amount of genius can overcome a preoccupation with detail." | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20091007 */ | ||
| + | |||
| + | ** PragC5Q4: What type of diagram can be used to determine temporal coupling? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: A UML activity diagram. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20091007 */ | ||
| + | |||
| + | ** PragC5Q5: What should be analysed to improve concurrency? | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Workflow. | ||
| + | |||
| + | ===== Chapter 6: While You Are Coding ===== | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20091007 */ | ||
| + | |||
| + | ** PragC6Q1: What are three examples of programming by coincidence? | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: | ||
| + | |||
| + | * Accidents of implementation. | ||
| + | * Accidents of context. | ||
| + | * Implicit assumptions. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20091007 */ | ||
| + | |||
| + | ** PragC6Q2: What should you do if something __seems__ to work? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Make sure it isn't just a coincidence. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20091007 */ | ||
| + | |||
| + | ** PragC6Q3: What is the problem with the building metaphor of software development? | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Buildings are not normally refactored. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20091007 */ | ||
| + | |||
| + | ** PragC6Q4: What are four reasons for refactoring? | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: | ||
| + | |||
| + | * Duplication (violation of the DRY principle). | ||
| + | * Non-orthogonal design. | ||
| + | * Outdated knowledge. | ||
| + | * Performance. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20091007 */ | ||
| + | |||
| + | ** PragC6Q5: What are Martin Fowler' | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: | ||
| + | |||
| + | * Don't refactor and add functionality at the same time. | ||
| + | * Make sure there are good tests beforehand. | ||
| + | * Take short, deliberate steps. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20091012 */ | ||
| + | |||
| + | ** PragC6Q6: What four capabilities should a test harness include? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: | ||
| + | |||
| + | * A standard way to specify setup and clean up. | ||
| + | * A method for selecting individual tests or all available tests. | ||
| + | * A means of analysing output for expected (or unexpected) results. | ||
| + | * A standardised form of failure reporting. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20091012 */ | ||
| + | |||
| + | ** PragC6Q7: What should be done at the end of any debugging session? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Formalise any ad hoc tests into unit tests. | ||
| + | |||
| + | ====== Professional ASP.NET MVC 1.0 ====== | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20100620 */ | ||
| + | |||
| + | ** MvcC1Q1: What are the six top-level directories, | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Controllers, | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20100620 */ | ||
| + | |||
| + | ** MvcC1Q2: Where does ASP.NET MVC store its routing rules? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: In the Global.asax file. | ||
| ====== Article 1: Design Principles and Design Patterns, Robert C. Martin ====== | ====== Article 1: Design Principles and Design Patterns, Robert C. Martin ====== | ||
| Line 3455: | Line 4013: | ||
| * Add a new package. | * Add a new package. | ||
| * Add a new interface that has all the methods that one package is dependant on and is implemented by the other package. | * Add a new interface that has all the methods that one package is dependant on and is implemented by the other package. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20091007 */ | ||
| + | |||
| + | ** Art1P21Q2: What design pattern should be used when a client type class directly depends on a server type class? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: An Abstract Server. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20091007 */ | ||
| + | |||
| + | ** Art1P21Q3: What is the Abstract Server design pattern and what is its advantage? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: An Abstract Server is an abstract interface between a client and a server. Its advantage is that the abstract interface becomes a "hinge point" that design can flex around. | ||
| /* --== Answer Question separator ==-- */ | /* --== Answer Question separator ==-- */ | ||
| Line 3477: | Line 4055: | ||
| //" | //" | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20090925 */ | ||
| + | |||
| + | ** Art1P23Q1: What is a package that has three other packages depending on it said to be? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Responsible to those three other packages. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20090925 */ | ||
| + | |||
| + | ** Art1P23Q2: What is a package that depends on nothing said to be? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: An independent package. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20090925 */ | ||
| + | |||
| + | ** Art1P23Q3: What is a package that has no other packages depending on it said to be? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: An irresponsible package. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20090925 */ | ||
| + | |||
| + | ** Art1P23Q4: What is a package that has three other packages depending on it said to be? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: A dependant package. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20090925 */ | ||
| + | |||
| + | ** Art1P23Q5: What is a package that is independent and responsible to other packages said to be? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: A stable package. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20090925 */ | ||
| + | |||
| + | ** Art1P23Q6: What is an irresponsible, | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: An instable package. | ||
| /* --== Answer Question separator ==-- */ | /* --== Answer Question separator ==-- */ | ||
| Line 3489: | Line 4127: | ||
| //" | //" | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20090925 */ | ||
| + | |||
| + | ** Art1P24Q2: What is afferent coupling? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: The number of classes outside the package that depend on classes inside the package. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20090925 */ | ||
| + | |||
| + | ** Art1P24Q3: What is efferent coupling? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: The number of classes outside the package that classes inside the package depend on. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20090925 */ | ||
| + | |||
| + | ** Art1P24Q4: What is the formula for determining the instability of a package? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Instability equals efferent coupling divided by afferent coupling plus efferent coupling. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20090925 */ | ||
| + | |||
| + | ** Art1P26Q1: What is the formula for determining the abstractness of a package? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Abstractness equals the number of abstract classes in the package divided by the total number of classes. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20090925 */ | ||
| + | |||
| + | ** Art1P26Q2: What type of packages occupy the zone of uselessness? | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Instable, abstract packages. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20090925 */ | ||
| + | |||
| + | ** Art1P26Q3: What type of packages occupy the zone of pain? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Stable, concrete packages. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20090925 */ | ||
| + | |||
| + | ** Art1P26Q4: What is the formula for determining the distance a package is from the main sequence? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: The absolute value of the abstractness plus instability minus one. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20091007 */ | ||
| + | |||
| + | ** Art1P29Q1: What design pattern should be used when inserting an abstract interface is not feasible? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Adapter. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20091007 */ | ||
| + | |||
| + | ** Art1P29Q2: What is the Adapter design pattern? ** | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: The Adapter is an object that implements the abstract interface to delegate to the server. Every method of the adapter simply translates and then delegates. | ||
| + | |||
| + | ====== 59 Seconds - Think a little, change a lot, Professor Richard Wiseman ====== | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20100106 */ | ||
| + | |||
| + | ** 59SecHappinessQ1: | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Low self-esteem. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20100106 */ | ||
| + | |||
| + | ** 59SecHappinessQ2: | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: By buying experiences, | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20100106 */ | ||
| + | |||
| + | ** 59SecHappinessQ3: | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Smile, sit up and act happy. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20100106 */ | ||
| + | |||
| + | ** 59SecPersuasionQ1: | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: | ||
| + | |||
| + | * Likeability is more important than academic achievements and work experience. | ||
| + | * Reveal weaknesses early and strengths late. Retain something strong for the end. | ||
| + | * Don't overreact to mistakes - the interviewer probably didn't notice. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20100106 */ | ||
| + | |||
| + | ** 59SecPersuasionQ2: | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: When criticising someone else, observers will attribute the negative traits to the speaker. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20100106 */ | ||
| + | |||
| + | ** 59SecPersuasionQ3: | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Getting someone to do you a favour will increase the chance of them liking you. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20100106 */ | ||
| + | |||
| + | ** 59SecPersuasionQ4: | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: The occasional mistake can make you more likeable. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20100106 */ | ||
| + | |||
| + | ** 59SecPersuasionQ5: | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Pick out a friendly face in the crowd. Clearly tell them what is happening and what they need to do. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20100106 */ | ||
| + | |||
| + | ** 59SecMotivationQ1: | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Work on the activity for "just a few minutes" | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20100106 */ | ||
| + | |||
| + | ** 59SecMotivationQ2: | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: | ||
| + | |||
| + | * Have a plan. | ||
| + | * Tell friends a family. | ||
| + | * Doublethink. Focus on the benefits //and// potential setbacks. | ||
| + | * Reward each step of the way. | ||
| + | |||
| + | /* --== Answer Question separator ==-- */ | ||
| + | |||
| + | /* Added 20100106 */ | ||
| + | |||
| + | ** 59SecMotivationQ3: | ||
| + | |||
| + | /* --== Question Answer separator ==-- */ | ||
| + | |||
| + | Answer: Doublethink. Imagine both the potential benefits from achieving the goal //and// the potential setbacks that may occur along the way. | ||
| {{tag> | {{tag> | ||
study_questions.1253485069.txt.gz · Last modified: 2017/01/01 19:54 (external edit)
