Win Surprise Gifts!!!
Post New Question
Subscribe to Interview Questions
What is the Prototype Design Pattern?
Posted By :
Posted Date :
July 31, 2011
A prototype design pattern relies on creation of clones rather than objects. Here, we avoid using the keyword 'new' to prevent overheads.
You can also find related Interview Question to
What is the Prototype Design Pattern?
Which design pattern should have private or protected constructor?
singleton design pattern should have private or protected constructor
Real software is developing a speech-based user interface for blind people. However, speech based interface are difficult to design and time given by the client is short. To develop a functional interface without any errors, the company wants to first evaluate the prototype. They used the storyboard technique to demonstrate the functionality of the application. However, this technique was unable to demonstrate the interactive feature of the application. Analyze and provide solution for the above scenario?
1, The design team of Real software should have used the Sketching technique because storyboard technique would only provide the flow and features of the interface.
2, The design team of Real software should have used the Horizontal Prototyping because storyboard technique would only provide the flow of the interface.
3, The design team of Real software should have used the Wizard of Oz technique because storyboard technique would only provide the flow and features of the interface
4, The design team of Real software should have used the Vertical Prototyping because storyboard technique would only provide the flow of the interface.
Answer : 3
WebBizz got an offer to design a website for an entertainment channel Znn. To verify the requirements, WebBizz has to develop a prototype but they are running out of time. Due to less manpower they could not start developing the prototype on time. Now, quickly they have to explain through prototype all the features the websites. Further, Znn have asked them to show them the layout of the website. The layout should explain the positioning of various Web page items, such as content, graphics, and links.
Analyze the given factors and identify which of the following prototyping technique that should be used to fulfill the requirement. ?
1,Storyboarding because it describes each action of the application sequentially
2, Wizard of Oz because it is used to test an application without the existence of the application.
3, Sketching because it explore the design of the entire application through visual brainstorming.
4, Horizontal prototyping because it covers all the features of the proposed application.
Answer : 3
You are designing a single person shooter game application. The player can choose between multiple guns.
1) Pistol with 5 bullets
2) Shotgun with 100 bullets
3) Grenade Launcher with 20 grenades
Each gun will have different sound effects and graphics.
Pressing Ctrl+Space should rotate between guns.
Which design pattern should you employ for this?
Use Strategy Pattern.
Explanation: Each gun having different performance and graphics.
So this can be accomodated in the algorithm.
Strategy pattern is best suited for shifting the guns/algorithms
There will be a IGun interface implemented by 3 classes
Pistol : IGun
Shotgun : IGun
GrenadeLauncher : IGun
What is design pattern?
Design pattern are recurring solution to the recurring problem.
There are basically classified in to three categories. They are,
1. Creational pattern
2. Structural pattern
3. Behavioural pattern.
Which design pattern to use if i needed to add additional responsibilities at runtime?
Decorator Pattern design pattern is use if i needed to add additional responsibilities at runtime
You are having a printer class which the user has to call the following methods to get printing done
Which design pattern you prefer for the above scenario?
You have got a base robot with all methods in steps of Start(), Perform(), Stop(). There are different kind of robots for creating Cookies, Sauce, Breads in a bakery. Only the Perform() method differs. Which design pattern should be appropriate for the scenario?
Template Method design pattern.
Which is the design pattern that is type-safe and still extensible on runtime?
Decorator Pattern design pattern that is type-safe and still extensible on runtime
What is a Design Pattern?
Design Pattern is a re-usable, high quality solution to a given requirement, task or recurring problem. Further, it does not comprise of a complete solution that may be instantly converted to a code component, rather it provides a framework for how to solve a problem.
What is the Lazy Design Pattern?
The approach of the Lazy Design Pattern is not to create objects until a specific requirement matches, and when it matches, object creation is triggered.
What operator performs pattern matching?
What are the wildcards used for pattern matching?
"_" for single character substitution and "%" for multi-character substitution
How to decide on the design consideration to take a Datagrid, datalist or repeater ?
Many make a blind choice of choosing datagrid directly, but that's not the right way.
Datagrid provides ability to allow the end-user to sort, page, and edit its data. But it comes at a cost of speed. Second the display format is simple that is in row and columns. Real life scenarios can be more demanding that
With its templates, the DataList provides more control over the look and feel of the displayed data than the DataGrid.
It offers better performance than datagrid Repeater control allows for complete and total control. With the Repeater, the only HTML emitted are the values of the databinding statements in the templates along with the HTML markup specified in the templates-no "extra" HTML is emitted, as with the DataGrid and DataList. By requiring the developer to specify the complete generated HTML markup, the Repeater often requires the longest development time. But repeater does not provide editing features like datagrid so everything has to be coded by programmer. However, the Repeater does boast the best performance of the three data Web controls. Repeater is fastest followed by Datalist and finally datagrid.
Quick Links For Interview Questions Categories:
Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.
So, Start looking our
section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.
Hall of Fame
Terms of Service
Tell A Friend