Object Oriented Design Interview Questions
- 0of 0 votes
AnswersDesign the below scenario in Java.
- cCAACc May 31, 2013 in United States
In an Olympic event there is a running track and it is used for 100m,200m,400m. You have 10 participants.
When the event start , capture the time taken by each participants. Determine who is the winner in each event.| Report Duplicate | Flag | PURGE
Barclays Capital Solutions Architect Object Oriented Design - 0of 0 votes
AnswersDesign the below scenario in Java.
- cCAACc May 31, 2013 in United States
You have to maintain the family tree of 10 generation. For a family you have to store father, mother and their children.
You have do the following operation.
When you search by a particular name of father/children, It will print whole 10 generation.
Calculate the time and space efficiency of your search operation.| Report Duplicate | Flag | PURGE
Barclays Capital Solutions Architect Object Oriented Design - -5of 7 votes
Answersneed to implement a weather report functionality. user will provide the city name , need to return the weather report.
- gopi.komanduri May 29, 2013 in India
if weather station exists n functioning properly , will return the weather report of that station .
else ,
will return the nearest available weather station report.
interviewer looking for optimized manner.
looking for datastructures to stores the cities n algo to return the report.| Report Duplicate | Flag | PURGE
Mentor Graphics Analyst Algorithm Arrays Bit Manipulation Brain Teasers C C# C++ Cache Coding Computer Architecture & Low Level Data Mining Data Structures Dynamic Programming General Questions and Comments Graphics Hash Table Ideas Linked Lists Math & Computation Object Oriented Design Problem Solving Sets Sorting Stacks String Manipulation Terminology & Trivia Threads Trees and Graphs XML - 0of 0 votes
AnswersQ1. What is inheritance
- JSDUDE May 04, 2013 in United States
2. Polymorphism
3. Diff between Pure Virtual class and Virtual Class
4. Adv and dis-adv of C# and C++ over each other
5. Sequence in which constructors are called when a child class object is created and why is the order so.| Report Duplicate | Flag | PURGE
Microsoft SDE1 Object Oriented Design - 0of 0 votes
AnswersWrite a class For Contacts on a device
- JSDUDE May 04, 2013 in United States
Implementing Search a contact was the biggest problem I faced (because search should potentially search: FirstName, LastName, Address, PH#, Email etc)| Report Duplicate | Flag | PURGE
Amazon SDE1 Object Oriented Design - 0of 0 votes
AnswerWrite a class for a parking garage:
- JSDUDE May 04, 2013 in United States
One level
One entry point
No membership or payments required
Handles multiple types of cars| Report Duplicate | Flag | PURGE
Amazon SDE1 Object Oriented Design - 0of 0 votes
AnswerDesign an online hotel reservation system.
- JSDUDE April 30, 2013 in United States
(I think this has been posted in Careercup earlier)| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test Object Oriented Design - 0of 0 votes
AnswerDesign a furniture store with Tables and chairs. Write a constructor for chair and table
- JSDUDE April 30, 2013 in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test Object Oriented Design - 0of 0 votes
AnswersDesign a class structure for an airport terminal, where your primary use case is allocating runway time to approaching aircraft. For example, an instance of a terminal may have only two runways of different lengths and must schedule these among five aircraft of different types requesting permission to land.
- DJ April 20, 2013 in United States| Report Duplicate | Flag | PURGE
Microsoft Senior Software Development Engineer Object Oriented Design - 0of 0 votes
AnswersDesign a MMORPG game in internet scale. Assume only available action for the players is watch and move.
- deep0mal April 16, 2013 in United States| Report Duplicate | Flag | PURGE
Amazon SDE-2 Object Oriented Design - 0of 0 votes
AnswersDesign a task scheduler
- pavi.8081 April 10, 2013 in United States for STB and MVO| Report Duplicate | Flag | PURGE
Microsoft SDE-2 Object Oriented Design - 0of 0 votes
AnswersDesign a vending machine.
- pavi.8081 April 10, 2013 in United States for STB and MVO| Report Duplicate | Flag | PURGE
Microsoft SDE-2 Object Oriented Design - 0of 0 votes
AnswersClass and Data Structure Design for a "metric" system to determine the top song of a band. Two Web Service calls:
- JSDUDE April 04, 2013 in United States
void play(String bandname, String songname);
String topSong(String bandname);
CONSTRAINTS: For this exercise we should constrain the design to a single server and do NOT use a database, but in memory data structure.
SAMPLE INPUT/OUTPUT
play("Guns N Roses", "Welcome To the Jungle");
topSong("Guns N Roses") => "Welcome To the Jungle"
play("Guns N Roses", "Sweet Child of Mine");
topSong("Guns N Roses") => "Welcome To the Jungle"
play("Guns N Roses", "Sweet Child of Mine");
topSong("Guns N Roses") => "Sweet Child of Mine"
scale the architecture| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Data Structures Object Oriented Design - 0of 0 votes
AnswersDesign a Text Editor, in term of class diagram and data structure required to store the data/text and Insert, Delete, search in both direction and Edit operation. Calculate the time complexity for all operation.
- Manoj Singhal April 02, 2013 in India for Kindle
Note: the size of file is huge and we don't have the RAM to load entire file into a memory.| Report Duplicate | Flag | PURGE
Amazon Senior Software Development Engineer Object Oriented Design - 0of 0 votes
AnswersLet's say we're developing a vector graphics application. It will allow the user to create lines, rectangles, circles, text, etc. and manipulate them independently - move them, resize them, etc. Design an object model for this application. (How would you model the representation of the document in an object oriented language? What classes would you define? What methods would you have? What would your API look like?)
- bs March 23, 2013 in United States| Report Duplicate | Flag | PURGE
Amazon Web Developer Object Oriented Design - 0of 0 votes
AnswersDesign a Tic Tac Toe Game. Classes Segregation and Code Flow.
- hprem991 March 18, 2013 in India| Report Duplicate | Flag | PURGE
StartUp Amazon Software Architect Software Engineer / Developer Algorithm Android Application / UI Design Arrays Assembly Automata Behavioral Bit Manipulation Brain Teasers C C++ Object Oriented Design - -2of 2 votes
AnswersThere is a class called A, which receives co-ordinate (x, y) which is processed in a function called fn(x,y): produces an address in memory, pass that address to B and then B retrieves data from memory at that address and then sends that data back through two 32 byte (total 64 byte) data chunk to users. Design the class. follow up questions: How to improve the functions. What are the main bottlenecks?
- shubhra.datta March 05, 2013 in United States| Report Duplicate | Flag | PURGE
Intel Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersDiscuss the design of the following game:
- S.Abakumoff February 25, 2013 in United States
The board consists of the cells of 3 kinds:
ant,
water,
food
if the ant moves to the cell that has ant then both ants are destroyed
if the ant moves to the cell that has water, ant disappears
if the ant moves to the cell that has food, food cell become ant cell.
there are two players, game server.| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 1of 1 vote
Answersdiscuss restaurant reservation system design
- S.Abakumoff February 25, 2013 in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 5of 5 votes
AnswersWhat is the difference between a class method and an instance method?
- Mauricio.Malf February 21, 2013 in Netherlands| Report Duplicate | Flag | PURGE
Booking.com Software Engineer / Developer Object Oriented Design - -1of 1 vote
Answerswhat's encapsulation
- KHsueh February 13, 2013 in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersDesign a GPS system
- KHsueh February 13, 2013 in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 1of 1 vote
AnswersWhat are immutable objects? What are their Advantages? Design a immutable object with Date object as a member attribute. NOTE : Since Date is mutable, he wanted to check whether I could resolve that. I dint though :(
- Saurabh January 28, 2013 in India| Report Duplicate | Flag | PURGE
Morgan Stanley Java Developer Java Object Oriented Design - 0of 0 votes
AnswersWhat is the difference between overloading and overriding?
- vigneshselvakumar January 10, 2013 in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 3of 3 votes
AnswersDesign a Restaurant Reservation system.
- learner January 09, 2013 in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design System Design - 0of 0 votes
AnswersWhere do you prefer composite object vs interfaces?
- Survivor November 20, 2012 in United States| Report Duplicate | Flag | PURGE
Overstock.com Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersWrite a program which contains a class named String (please take care of the case). The class should be capable of
- kirti28kumar October 25, 2012 in India for codeblock
holding a string containing more than one word. The class should at least have a parametric constructor by which we
are going to supply a sentence at run time. The class should contain a member function ‘palindromecheck()’which
reverses the words of the sentence in their proper original order. The class String should be user defined. You are free
to add any other data members, member functions and constructors you think are necessary to solve the problem.
Sample Run:-
Enter sentence:-
Mom…nothing can be better than you
Output:-
Sentence with reversed words is:-
you than better be can nothing …moM
Not Palindrome
Sample Run:-
Enter sentence:-
wife loves husband,husband loves wife
Output:-
Sentence with reversed words is:-
wife loves husband,husband loves wife.
Palindrome
You are free to add any C++ concepts, any other data members, member functions and constructors you think are
necessary to solve the problem.| Report Duplicate | Flag | PURGE
Google Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswerDesign a chess game. Basics of a chess game was explained and a player could be human or AI.
- CodeSpace October 03, 2012 in United States
Follow-up questions:
* What are the main objects?
* How do the main objects interact with each other?
* Which object or objects own the current game state information?
* Implement the method to move a piece to another position on the board. method must communicate if the move is legal or not.
* How do you test the move piece method?| Report Duplicate | Flag | PURGE
Apple Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersDesign SkyDrive. (open ended question. )
- anvijain September 23, 2012 in United States for Windows Azure| Report Duplicate | Flag | PURGE
Microsoft Program Manager Object Oriented Design - 0of 0 votes
AnswersThere are 2 interfaces
- Moiz Arsiwala August 29, 2012 in India
Interface A
-> max()
Interface B
-> max()
Note:
max() have everything same signature are same in all respect
There is a class C which implements A and B
then what happens
> Compile time error
> Runtime
>No error it works fine| Report Duplicate | Flag | PURGE
MAQ Applications Developer Object Oriented Design