What are the appropriate templates?

I recently ran into a job interview. I answered some questions well. For some questions, not knowing the answer, I answered as if I knew the answer. One such question is to find out the appropriate pattern for the following.

Don't laugh at my answers. I just tried my level best in a job 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 have a thing, some of the elements are not related to pattern.What would be your answer, suppose you come across questions like this?

+2


source to share


1 answer


Here are my options:

  • Iterator
  • Observer
  • delegate
  • for visitors
  • Strategy
  • Thread pool, monitor, blocking ... there are entire books on Concurrency Templates
  • I would not use a template
  • Perhaps a composite.
  • Interpreter
  • Command pattern, possibly
  • This will include architectural patterns and likely numbers.
  • I would not use a template
  • I would not use a template
  • Interpreter
  • I don't know what you mean by that? Windows Communication Foundation?
  • Iterator


I'll try to figure it out after work.

0


source







All Articles