object oriented design - quiz

28
Let’s have some fun! Quiz Time

Upload: ganesh-samarthyam

Post on 07-Jan-2017

1.584 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Object Oriented Design - Quiz

Let’s have some fun!

Quiz Time

Page 2: Object Oriented Design - Quiz

Form teams

Page 3: Object Oriented Design - Quiz

Shout out your answer

Page 4: Object Oriented Design - Quiz

Each correct answer => +1

(no minus marks!)

Page 5: Object Oriented Design - Quiz

Winning team gets chocolates!

Page 6: Object Oriented Design - Quiz
Page 7: Object Oriented Design - Quiz

LineNumberReader lnr = new LineNumberReader(new BufferedReader(new FileReader(“./test.c")));

What design pattern does the underlying

design follow?

Page 8: Object Oriented Design - Quiz

It is “decorator” pattern!

Page 9: Object Oriented Design - Quiz

Identify this person

Page 10: Object Oriented Design - Quiz

Uncle Bob (Robert C. Martin)

Page 11: Object Oriented Design - Quiz

Calendarcalendar=b.set(YEAR,2003) .set(MONTH,APRIL) .set(DATE,6) .set(HOUR,15)

.set(MINUTE,45) .set(SECOND,22)

.setTimeZone(TimeZone.getDefault()) .build();

What design pattern does the underlying

design follow?

Page 12: Object Oriented Design - Quiz

Its “builder” pattern!

Page 13: Object Oriented Design - Quiz

Name the first object oriented programming

language

Page 14: Object Oriented Design - Quiz

Simula (1965!)

Page 15: Object Oriented Design - Quiz

Who coined the acronym “SOLID”?

(as in SOLID principles)

Page 16: Object Oriented Design - Quiz

Michael Feathers

Page 17: Object Oriented Design - Quiz

Which software principle says: "Objects in a program should be replaceable with instances of their subtypes

without altering the correctness of that

program"?

Page 18: Object Oriented Design - Quiz

Liskov’s Substitution

Principle (LSP)

Page 19: Object Oriented Design - Quiz

You have used dependency analysis tools on your code base. You find numerous cycles and tangles in the dependencies. The recommended approach to be followed is:

A. Adopt Domain Driven Design (DDD)

B. Adopt Test Driven Development (TDD) approach

C. Perform architecture refactoring

D. Use profiling tools to find “hotspots” and remove the bottlenecks

Page 20: Object Oriented Design - Quiz

C. Perform architecture refactoring

Page 21: Object Oriented Design - Quiz

What is this matrix known as?

Page 22: Object Oriented Design - Quiz

Design Structure

Matrix (DSM)

Page 23: Object Oriented Design - Quiz

Who coined the term “code

smell”?

Page 24: Object Oriented Design - Quiz

Kent Beck

Page 25: Object Oriented Design - Quiz

Identify the underlying design

pattern

Page 26: Object Oriented Design - Quiz

Its “template method”

design pattern!

Page 27: Object Oriented Design - Quiz

IMAGE CREDITS• http://i.stack.imgur.com/8sNfT.jpg

• https://pbs.twimg.com/profile_images/2550670043/xq10bqclqpsezgerjxhi.jpeg

• https://pbs.twimg.com/media/CB_BiNJWgAAm73k.jpg

• http://read.html5.qq.com/image?src=forum&q=5&r=0&imgflag=7&imageUrl=http://mmbiz.qpic.cn/mmbiz/NVvB3l3e9aF3unjxG2uvpRKvtKvsljAejWAdNqibeEP8LchicEhkL6iaej5DJibVtn56BYL3DvMwmntZy6znN7KN0A/0?wx_fmt=jpeg

• http://tiny-giant-books.com/img/Uncle-Bob-Transparent-Background.png

• http://images.techtimes.com/data/images/full/102658/11018805_895801337108779_8220057388801140003_n-png.png?w=600

• http://cdn.meme.am/instances/500x/62194906.jpg

• http://images.techtimes.com/data/images/full/102654/minions.jpg?w=600

• https://s-media-cache-ak0.pinimg.com/736x/80/d7/63/80d76305e1eaaeb4933470098629e7cf.jpg

• http://www.momdoesreviews.com/wp-content/uploads/2015/05/minions-good-luck.jpg

• http://cdn.business2community.com/wp-content/uploads/2013/07/How-to-Answer-the-Question.jpg

Page 28: Object Oriented Design - Quiz