Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Answering design pattern question

 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In mock exams(whizlab) i had diffculty in answering design pattern questions.Although i read design patterns and understood it there is still some diffuclty in
getting the answer correct.In most of the cases they come up with a case where it could be possible that two design patterns could be used(not multiple choice)

For example there was a straight question.I have to pass an command object to set of object will design pattern to choose.

Options given are command ,filter and chain of responsiblity.

I answered command but the right answer was Chain of responsiblity.

 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at definition in below link, it might clear your doubt.

http://en.wikipedia.org/wiki/Chain-of-responsibility_pattern
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I got the same problem, it took me quite a while to work out why a pattern was better than other, and in about 20% of cases, I just couldn’t work it out.

The good news are the in the exam, the questions are lots more clear cut, so if you can answer the whizlabs ones and understand the patterns, you will have no problem answering the real questions.
 
Bartender
Posts: 1104
10
Netbeans IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Design Pattern questions are always difficult ones...I thought I had got all Design Pattern questions right in the exam, but it didn't turn out that way...
You have to understand that Design Patterns are solutions for specific pattern of problems - one pattern solves one problem - you should not look at it like - how to solve the same problem with different patterns...

These mock exams are good for this practice:
http://www.javabeat.net/cert/scea/mock-exam/scea-mock-exam-questions-10.php
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic