What would be the appropriate patterns?
Recently i faced an interview.I answered some questions well.For some question开发者_开发知识库s,without knowing answer also,i answered as if i were aware of the answer.one of such question is to find out the matching pattern of the following.
Don't laugh at my answers.Just i tried my level best at interview.
Item Pattern
1) Iterator Behavior
2) Event Publisher/Subscriber
3) Delegate Callback
4) Callback Function chaining
5) Garbage Collection B-Tree
6) Threading Producer-Consumer
7) String builder
8) StringBuilder builder
9) Expression Tree builder
10) Lambda callback
11) Webservice Service Oriented Architecture
12) Stack LIFO /Datastructure
13) Queue FIFIO/Datastructure
14) Regular Expression Wild card mapping pattern
15) WCF SOA/Communication Pattern
16) foreach behavior
I really thing some of the items do not related to pattern.What would be your answer,suppose you face such questions?
Here are my choices:
- Iterator
- Observer
- Delegate
- Visitor
- Strategy
- Thread Pooling, Monitor, Lock...there are entire books on Concurrency Patterns
- I would not use a pattern
- Perhaps a Composite.
- Interpreter
- Command pattern, perhaps
- This would involve architectural patterns, and probably a number of them.
- I would not use a pattern
- I would not use a pattern
- Interpreter
- I don't know what you mean by this? Windows Communication Foundation?
- Iterator
I'll try to elaborate after work.
精彩评论