Object Oriented Design Interview Questions
- 0of 0 votes
AnswersDoes JavaScript has inheritance?
- Tom Walker June 07, 2015 in United States
Can you override in JavaScript?| Report Duplicate | Flag | PURGE
Amazon Software Developer Java JavaScript Object Oriented Design - 0of 0 votes
AnswersWhat's difference between Javascript and JAVA in terms of OOP principles. Provide examples.
- Tom Walker June 07, 2015 in United States| Report Duplicate | Flag | PURGE
Amazon Software Developer Coding Java JavaScript Object Oriented Design - 0of 0 votes
AnswersDesign Bing search.
- Tom Walker June 07, 2015 in United States| Report Duplicate | Flag | PURGE
Microsoft Software Developer Algorithm Coding Database Java Object Oriented Design Software Design - 0of 0 votes
AnswersTwo players, two field; and have multiple ships located in their fields. They are guessing each others ship position and hitting. Tell who wins first. Design maintainable code which can incorporate future change.
- tarunjain07 May 21, 2015 in India| Report Duplicate | Flag | PURGE
Flipkart SDE1 Object Oriented Design - 0of 0 votes
AnswersIn a Formula-1 challenge, there are n teams numbered 1 to n. Each team has a car and a driver. Car’s specification are as follows:
- Nitin Gupta May 06, 2015 in India
– Top speed: (150 + 10 * i) km per hour
– Acceleration: (2 * i) meter per second square.
– Handling factor (hf) = 0.8
– Nitro : Increases the speed to double or top speed, whichever is less. Can be used only once.
Here i is the team number.
The cars line up for the race. The start line for (i + 1)th car is 200 * i meters behind the ith car.
All of them start at the same time and try to attain their top speed. A re-assessment of the positions is done every 2 seconds(So even if the car has crossed the finish line in between, you’ll get to know after 2 seconds). During this assessment, each driver checks if there is any car within 10 meters of his car, his speed reduces to: hf * (speed at that moment). Also, if the driver notices that he is the last one on the race, he uses ‘nitro’.
Taking the number of teams and length of track as the input, Calculate the final speeds and the corresponding completion times.| Report Duplicate | Flag | PURGE
Google SDE1 Algorithm Arrays Data Structures Java Object Oriented Design - 2of 2 votes
AnswersDesign a Binary search tree using Epic as Input
- katenaomi247 April 27, 2015 in United States| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer Object Oriented Design - 0of 0 votes
AnswersDesign a class to implement chess and checkers game individually.
- katenaomi247 April 27, 2015 in United States| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer Object Oriented Design - 0of 0 votes
Answersdesign a class to provide information about the disease of a patient with details like who reported the disease(patient/doctor/relative), different symptoms of the disease, severity, method that returns when was that disease detected in that patient. Along with info if it is allergy and not a disease so that it can be updated easily along with record the time of the allergy report.
- katenaomi247 April 27, 2015 in United States| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer Object Oriented Design - 0of 0 votes
Answerscreate a class to tell a nurse the frequency of medicine that a patient must take, i.e. a system to tell patients when to take medication and create a class with an object that holds temperatures of a person and can say whether or not they have a fever.
- katenaomi247 April 27, 2015 in United States| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer Object Oriented Design - 0of 0 votes
Answersdesign a class to store the information of the patients visiting to the hospital., i.e. a class which stores name, address, phone number, male/female, prefix to the name. Also, how will you handle job in case of multiple phone numbers/addresses, multiple locations
- katenaomi247 April 27, 2015 in United States
(If a person is both at 12 PM in USA on a date, then that date is different from date in India), how will you handle the validations of these fields when the user enters the values.| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer Object Oriented Design - 0of 0 votes
Answersdesign a BST with CERNER as an input.
- katenaomi247 April 23, 2015 in United States| Report Duplicate | Flag | PURGE
Cerner Corporation Software Engineer Object Oriented Design - 0of 0 votes
AnswerDesign and implement checkers game using oops concept
- katenaomi247 April 23, 2015 in United States| Report Duplicate | Flag | PURGE
Cerner Corporation Software Engineer Object Oriented Design - 0of 0 votes
AnswersDesign implement chess game using Java
- katenaomi247 April 23, 2015 in United States| Report Duplicate | Flag | PURGE
Cerner Corporation Software Engineer Object Oriented Design - 0of 0 votes
Answersdesign a class that will be used to store the information of the patients visiting to the hospital., i.e. a class which stores demographic information of a person like name, address, phone number, male/female. What if the person has any prefix to the name, multiple phone numbers/addresses, how will you handle job in case of multiple locations
- katenaomi247 April 23, 2015 in United States
(If a person is both at 12 PM in USA on a date, then that date is different from date in India), how will you handle the validations of these fields when the user enters the values using java| Report Duplicate | Flag | PURGE
Cerner Corporation Software Engineer Object Oriented Design - 0of 0 votes
AnswersDesign a class Make an object that holds temperatures of a person and can say whether or not they have a fever using java
- katenaomi247 April 23, 2015 in United States| Report Duplicate | Flag | PURGE
Cerner Corporation Software Engineer Object Oriented Design - 0of 0 votes
Answerscreate a class with object that tells a nurse the frequency of medicine that a patient must take, i.e. a system to tell patients when to take medication using java
- katenaomi247 April 23, 2015 in United States| Report Duplicate | Flag | PURGE
Cerner Corporation Software Engineer Object Oriented Design - 1of 1 vote
Answersdesign a class (give different methods and variables that will be used) that will provide information about the allergy of a patient.
- katenaomi247 April 23, 2015 in United States
e.g. who reported the allergy(patient/doctor/relative), different symptoms of the allergy that are detected, severity, method that returns when was that
allergy detected in that patient. Along with info about disease if it is not allergy, and can be updated easily, how would you record the time of the disease report using java| Report Duplicate | Flag | PURGE
Cerner Corporation Software Engineer Coding Java Object Oriented Design - 0of 0 votes
AnswersDesign the backend system for a website like HackerRank
- R@M3$H.N March 16, 2015 in United States| Report Duplicate | Flag | PURGE
Snapdeal Object Oriented Design Problem Solving System Design - 0of 0 votes
AnswersDesign Twitter Timeline
- nvinet March 11, 2015 in United Kingdom for Instant Video| Report Duplicate | Flag | PURGE
Amazon Software Development Manager Object Oriented Design - -1of 1 vote
Answersconvert a 2d matrix in to a sprint order matrix and print it
- joe sturridge March 05, 2015 in United States| Report Duplicate | Flag | PURGE
Epic Systems Software Developer Object Oriented Design - 1of 1 vote
AnswerHow do you design system for identifying groups of contacts in phone. Basic info like mail Id, name are different but the person representing them is same. looking for a deduplication way to identify.
- Vib February 05, 2015 in India| Report Duplicate | Flag | PURGE
Boomerang Commerce Developer Program Engineer Object Oriented Design - 0of 0 votes
AnswersEntry in the log file is like this:
- openhealth2014 February 01, 2015 in United States
User 1 visited Page 4
User 3 visited Page 2
User 7 visited Page 9
.
.
.
Design an efficient data structure which supports queries like the following:
Which page was visited by exactly 2 users in day?
Which page was visited by only one user exactly 2 times in a day?
Which page was visited by ‘User 3? more than 5 times in a day?| Report Duplicate | Flag | PURGE
Amazon SDE1 Object Oriented Design - 0of 0 votes
AnswerDesign a system for finding the costliest element always whenever we pick up an element from a box.(concept of Max Heap)
- openhealth2014 February 01, 2015 in United States| Report Duplicate | Flag | PURGE
Amazon SDE1 Object Oriented Design - 0of 0 votes
AnswersEntry in the log file is like this:
- openhealth2014 February 01, 2015 in United States
User 1 visited Page 4
User 3 visited Page 2
User 7 visited Page 9
.
.
.
Design an efficient data structure which supports queries like the following:
Which page was visited by exactly 2 users in day?
Which page was visited by only one user exactly 2 times in a day?
Which page was visited by ‘User 3? more than 5 times in a day?| Report Duplicate | Flag | PURGE
Amazon SDE1 Object Oriented Design - 2of 2 votes
AnswersGiven N scientists and K black holes, each scientist can query on radius, size and temperature of a black hole, what data structure would you use?
- openhealth2014 February 01, 2015 in United States
Following queries are important.
Which scientist had queried on which black hole.
What were the queries made by that scientist.| Report Duplicate | Flag | PURGE
Amazon SDE1 Object Oriented Design - 0of 0 votes
AnswersIn a tennis tournament of N players every player plays with every other player.
- openhealth2014 February 01, 2015 in United States
The following condition always hold-
If player P1 has won the match with P2 and player P2 has won from P3, then Player P1 has also defeated P3.
Find winner of tournament in O(N) time and O(1) space. Find rank of players in O(NlogN) time.| Report Duplicate | Flag | PURGE
Amazon SDE1 Object Oriented Design - 1of 1 vote
AnswersWrite code for scheduling algorithms for such a cab services provided you have a list of future bookings, and list of cabs in your fleet.
- openhealth2014 February 01, 2015 in United States| Report Duplicate | Flag | PURGE
Amazon SDE1 Object Oriented Design - 0of 0 votes
AnswersIn an auctioning system, the bidder with the highest bid wins but charged at kth highest price. Develop a system for it. Solved it using a hashmap. Was asked to write a code for the same.
- openhealth2014 February 01, 2015 in United States| Report Duplicate | Flag | PURGE
Amazon SDE1 Object Oriented Design - 0of 0 votes
AnswersDesign a system which would make a schedule for a user to complete a book in given number of days. A pre condition is that the schedule for every day should end at the end of some chapter.
- openhealth2014 February 01, 2015 in United States
Ex – 3 chapter with 10 pages each and user has to complete this book in 2 days, then the schedule should be either be 2 chapters on first day and 1 chapter on second or 1 chapter on first day and 2 chapters on second. (code)| Report Duplicate | Flag | PURGE
Amazon SDE1 Object Oriented Design - 2of 2 votes
AnswersDesign a robot that will take your order and make sandwiches for you.
- JSDUDE December 12, 2014 in United States for AWS Infrastructure Planning, Analysis and Optimization
Once I was done with this, I was supposed to extend it to have multiple robots doing this job like an assembly line handling multiple sandwiches and other edible items
Once I handled that, he asked me to create a web service for this that will handle online ordering. He also wanted me to implement fulfillment centers| Report Duplicate | Flag | PURGE
Amazon SDE-2 Object Oriented Design