Posts

Showing posts from February 25, 2010

DESIGN PATTERNS

Write in detail about Design Patterns? Design Patterns A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations. Object-oriented design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved. Algorithms are not thought of as design patterns, since they solve computational problems rather than design problems. Not all software patterns are design patterns. Design patterns deal specifically with problems at the level of software design. Other kinds of patterns, such as architectural patterns, describe problems and solutions that have alternative scopes. Design patterns can speed up the development process by providing tested, proven development ...

BRAIN TEASERS QUESTIONS

316: Decipher this sentence (Underscores represent spaces): IHT_OU_D_AEPPPASH 341: What is the next number in the given series? 10^3, 10^9, 10^27, 10^2, 0, 4, 8, 3, ? Note that 10^3 means 10 raised to the power of 3 i.e. 1000. 383 Consider a state lottery where you get to choose 8 numbers from 1 to 80, no repetiton allowed. The Lottery Commission chooses 11 from those 80 numbers, again no repetition. You win the lottery if atleast 7 of your numbers are there in the 11 chosen by the Lottery Commission. What is the probablity of winning the lottery? 67 Two planes take off at the same exact moment. They are flying across the Atlantic. One leaves New York and is flying to Paris at 500 miles per hour. The other leaves Paris and is flying to New York at only 450 miles per hour ( because of a strong head wind ). Which one will be closer to Paris when they meet? 77 In another galaxy, a certain nation of creatures speak a language known as Algramara. In this language, ...