Object Oriented Design Interview Questions
- 0of 4 votes
AnswersDesign a program that would select which elevator in a building would be the most efficient, based on where the elevator is located and headed and where the user is located and headed.
- Guy February 04, 2014 in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersDesign Coffee Shop? Follow up: Extend this to handle multiple coffee shops (Ex like starbucks and across countries)
- juny January 30, 2014 in United States for AFT| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - -3of 5 votes
AnswersHow would you design a chess game in OOP?
- Guy January 30, 2014 in United States| Report Duplicate | Flag | PURGE
Google Software Engineer / Developer Object Oriented Design - -1of 1 vote
AnswersHow to design a file system in OOP. I believe we can use composite pattern to model in which we create an abstract class say Entry, and have directories and files extend from it. In Directories, it has a List<Entry>. How should we write the remove method so that it will recursively remove all of its sub-directories and sub-files then do parent.remove(this)? Also, how should we take read/write permission into account?
- Guy January 29, 2014 in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersYou as a developer are tasked to create an application that builds invoices that are send out to the company’s clients. Invoices are sent to the client’s address and the client should pay the invoice amount by a given date otherwise fees could incur. The client should be able to see detailed information about the items they are being billed for, like item cost, tax, quantity, etc. The client can be billed for products and/or services. Services are not taxable and product tax varies by client zip code.
- eduardo.renshaw January 25, 2014 in United States
Using the objected oriented language of your choice; design an object model for this application.| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 0of 2 votes
AnswersHow to design a zoo in oop? Some basic ideas are to have an abstract Animal class and have birds, mammal extend from it. Also have a class called Cages with different size. Zoo will contain a list of animal, list of cages, probably some workers. What else should I add and how could we improve the design? Thanks.
- Guy January 23, 2014 in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - -1of 1 vote
AnswersDesign a object oriented class for a vending machine. My idea is that it should have the ability to take in money, item selection, serving item. But I am not sure how to put everything together using good object-oriented principles.
- Guy January 16, 2014 in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersWhat is a static method? What is the difference between instance method and static method?
- A.K. January 15, 2014 in United States for Shared file| Report Duplicate | Flag | PURGE
Citrix System Inc Software Engineer / Developer Object Oriented Design - 1of 1 vote
AnswersWhat is an interface? How is an interface different than inheritance? Why multiple inheritance not allowed?
- A.K. January 15, 2014 in United States for Shared file| Report Duplicate | Flag | PURGE
Citrix System Inc Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersDesign LRU Cache
- juny January 08, 2014 in United States for Traffic| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Object Oriented Design - 1of 1 vote
AnswersDesign Service like tinyurl
- juny January 08, 2014 in United States for Traffic| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Object Oriented Design - 0of 2 votes
AnswersGiven a list of test results (each with a test date, Student ID, and the student’s Score), return the Final Score for each student. A student’s Final Score is calculated as the average of his/her 5 highest test scores. You can assume each student has at least 5 test scores.
- outside09 December 30, 2013 in United States
You may use the JDK or the standard template library. The solution will be evaluated on correctness, runtime complexity (big-O), and adherence to coding best practices. A complete answer will include the following:
Document your assumptions
Explain your approach and how you intend to solve the problem
Provide code comments where applicable
Explain the big-O run time complexity of your solution. Justify your answer.
Identify any additional data structures you used and justify why you used them.
class TestResult{
int studentId;
Date testDate;
int testScore;
}
public Map<Integer, Double> getFinalScores(List<TestResult> resultList){
return null;
}| Report Duplicate | Flag | PURGE
Amazon SDE1 Object Oriented Design - 3of 5 votes
AnswersYou're given a machine (Let's say a sprinkler). The machine is controlled with a software component that has UI. The user can set different parameters in the UI. for example : 'speed' : 120 'pressure' : 30
- GeorgyBoy December 30, 2013 in Israel
Change the system so it will accept an arithmetical expression in the UI. The expression can contain constants, parameters (e.g 'speed') and operators.| Report Duplicate | Flag | PURGE
Google Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersDesign a OO system for furniture where there are wooden chairs and tables, metal chairs and tables. There are stress and fire tests for each products.
- samotgun November 18, 2013 in United States| Report Duplicate | Flag | PURGE
Amazon SDE1 Object Oriented Design - 0of 2 votes
AnswersDesign a function to gives real time statistics of your web traffic,count one day's website visit ,count one week's website visit
- catherin October 28, 2013 in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - -1of 3 votes
AnswersFor a given map (ie Bing map) given longitude/latitude/ how would you design the system so that when map longitudeDelta/latitdueDelta changed you add additional pins on map for regions that was not previously cover.
- chocoboman October 24, 2013 in United States
In another word, how would you design it to avoid getting and displaying duplicated pins| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersDesign a class for Game of card. You can use any design pattern or data structure.
- Razz September 26, 2013 in India
1. There are 52 card.
2. There are 4 suits, each contain 13 cards.| Report Duplicate | Flag | PURGE
Amazon SDE-2 Object Oriented Design - 0of 0 votes
AnswersDesign a library shelf which can store books or digital media also like CD/DVD. It was more of a design question rather than a coding question and they wanted to know how would you design classes and have abstractions and inheritance in them.. after that they kept on adding details of what could be included on the shelves and how to manage them and routines related to them and what would info I need to have to respond to the user queries and making the design useful.
- vik September 06, 2013 in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer Intern Object Oriented Design - -3of 3 votes
AnswersRequirements:
- MrA August 07, 2013 in United States
1>client should be able to create shapes like circle, square , rectangle..etc,. Also framework should be able to add some more shapes later.
2> client should be able to calculate areas of each shapes
3> should have collection where all shapes are stored and should be able to sort on the area of the shapes| Report Duplicate | Flag | PURGE
Amazon SDE1 Object Oriented Design - 0of 0 votes
AnswersDesign an Class Structure for a Car
- radibioinfo July 25, 2013 in United States| Report Duplicate | Flag | PURGE
Amazon Quality Assurance Engineer Object Oriented Design - -1of 1 vote
AnswersDesign a DVD renting library system
- pavi.8081 July 19, 2013 in India| Report Duplicate | Flag | PURGE
Amazon SDE-2 Object Oriented Design - 0of 0 votes
AnswersDesign a online catalog system.
- vij.virtuous July 11, 2013 in India
1. Catalog will have a list of Departments(sub-catalog) . Each department will have a list of products or sub-catalog.
2. Each product may have many Sub units(eg color price etc)
Eg :
Depart1 -> Groceries , Furniture
subment1 -> pen, pad
pen -> red & black
Also at anytime if we need to add discount that also should be possible.
If anyone come across can help me in this...| Report Duplicate | Flag | PURGE
Sapient Corporation Software Architect Object Oriented Design - 0of 0 votes
AnswerDesign the juglee.com.
- pavi.8081 July 11, 2013 in United States for Online Fraud Prevention
Write objects involved and their properties, behaviour and interactions.
Make valid and practical assumptions and design.
Please let me know your approach to this design questions.| Report Duplicate | Flag | PURGE
Amazon SDE-2 Object Oriented Design - 0of 0 votes
AnswersDesign a Dropbox invite system (refer other guys to join and get more space)
- pavi.8081 July 11, 2013 in United States for Online Fraud Prevention
Assume whats required and design.| Report Duplicate | Flag | PURGE
Amazon SDE-2 Object Oriented Design - 0of 0 votes
AnswerDesign a notification framework which notifies for birthdays, movie release, book release whenever one occurs.
- SK July 07, 2013 in India
Things kept on adding based on user subscription?
How all object, classes related/talk to each other?
There on, move on how to store them in tables?| Report Duplicate | Flag | PURGE
iLabs Senior Software Development Engineer Object Oriented Design - 1of 1 vote
AnswersImplement T9 dictionary for mobile phone
- anim June 29, 2013 in India| Report Duplicate | Flag | PURGE
Microsoft Algorithm Application / UI Design Data Structures Object Oriented Design Problem Solving - 2of 2 votes
AnswersWrite a simple Zoo simulator which contains 3 different types of animal: monkey, giraffe and elephant. The zoo should open with 5 of each type of animal.
- John June 21, 2013 in United States
Each animal has a health value held as a percentage (100% is completely healthy). Every animal starts at 100% health. This value should be a floating point value.
The application should act as a simulator, with time passing at the rate of 1 hour with each interation. Every hour that passes, a random value between 0 and 20 is to be generated for each animal. This value should be passed to the appropriate animal, whose health is then reduced by that percentage of their current health.
The user must be able to feed the animals in the zoo. When this happens, the zoo should generate three random values between 10 and 25; one for each type of animal. The health of the respective animals is to be increased by the specified percentage of their current health. Health should be capped at 100%.
When an Elephant has a health below 70% it cannot walk. If its health does not return above 70% once the subsequent hour has elapsed, it is pronounced dead.
When a Monkey has a health below 30%, or a Giraffe below 50%, it is pronounced dead straight away.
The user interface should show the current status of each Animal and contain two buttons, one to provoke an hour of time to pass and another to feed the zoo. The UI should update to reflect each change in state, and the current time at the zoo.| Report Duplicate | Flag | PURGE
Object Oriented Design - 0of 0 votes
AnswersGiven multiple stream of input numbers each of which may not fit in memory (we can assume each source to be individually sorted) give an API design to merge and store a fully sorted array. Design must be object oriented which can handle any number of input source types. Obviously output also cannot fit in memory.
- hsantosh71 June 15, 2013 in United States| Report Duplicate | Flag | PURGE
Google Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersDesign an online marketplace.
- Anonymous June 03, 2013 in United States| Report Duplicate | Flag | PURGE
Object Oriented Design