Puzzle - Interview Questions and Answers for 'Puzzle' | Search Java Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Puzzle - Interview Questions and Answers for 'Puzzle' - 3 question(s) found - Order By Newest

 Q1. Given 2 jars of 5 ltr and 3 ltr, how will you get 4 ltrs in one of those jars ?Puzzle2017-03-27 08:38:54

Ans. Number 1 -

Fill the 5 litre can from the tap

Empty the 5 litre can into the 3 litre can leaving 2 litres in the 5 litre can.

Pour away the contents of the 3 litre can.Fill the 3 litre can with the 2 litres from the 5 litre can leaving 2 litres in the 3 litre can.

Fill the 5 litre can from the tap.Fill the remaining 1 litre space in the 3 litre can from the 5 litre can.Leaving 4 litres in the 5 litre can.

Number 2 -

Fill the 3 litre can from the tap.Empty the contents of the 3 litre can into the 5 litre can.

Fill the 3 litre can from the tap.Empty the contents of the 3 litre can into the 5 litre can leaving the 5 litre can full and 1 litre in the 3 litre can.

Pour away the contents of the 5 litre can. Pour the 1 litre from the 3 litre can into the 5 litre can.

Fill the 3 litre can from the tap. Empty the contents of the 3 litre can into the 5 litre can leaving 4 litres in the 5 litre can.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies


Related Questions

 Suppose you have 8 balls, one of them is either have more/less weight, In how many least possible iterations would you find that ball?


 Q2. Suppose you have 8 balls, one of them is either have more/less weight, In how many least possible iterations would you find that ball? Design2018-06-21 18:08:10

 This question was recently asked at 'Symantec'.This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     puzzle  design     Asked in 1 Companies


Related Questions

 Let's suppose we have an to destroy objects, Design a program to implement garbage collection ?
 What is Dependency Injection or IOC ( Inversion of Control ) ?
 Design an e commerce application using AWS ? What AWS services will you use ?
  What are the Wrapper classes available for primitive types ?
  Difference between Factory and Abstract Factory Design Pattern ?
  What is MVC ?
  If you are given a choice to implement the code to either Insert a Record or Update if already exist, Which approach will you follow ?
 In which cases , moving methods to utility class could be useful ?
 What are the disadvantages of Design Patterns ?
  What Design pattern Wrapper Classes implement ?


 Q3. There are 8 balls, 7 weigh 100 gms, 1 is defective, there is a weighing scale, any number of balls can be measured at the same time. in how many attempts defective balls can be found out.Puzzle2018-11-14 12:48:23

Ans. 2 attempts Weigh 3 3 balls. If the weight is same then weigh the remaining two balls

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies


Related Questions

  Difference between == and .equals() ?
  Why is String immutable in Java ?
  Explain the scenerios to choose between String , StringBuilder and StringBuffer ?

or

What is the difference between String , StringBuilder and StringBuffer ?
  What are the difference between composition and inheritance in Java?
  Does garbage collection guarantee that a program will not run out of memory?
  Why do we need Inner classes ? Cant we just work with outer classes wherever we implement Inner classes ?
  What are different ways to create String Object? Explain.
  Why Char array is preferred over String for storing password?
 Explain OOPs

or

Explain OOPs Principles

or

Explain OOPs Concepts

or

Explain OOPs features

or

Tell me something about OOPs
  What is the difference between Encapsulation and Abstraction?



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: