X
Submit Question

Puzzles  Questions

View By:

Q1 Discount on Pizza

The 8" pizza sells for $ 3.99 at my favorite pizza store. The store claims they have a great deal on the large 12" pizza, which is specially priced at $ 6.73. What is the per cent discount the store is offering?

Ans - let height be same for both pizza volume of 8" pizza is: pi * (8 * 8) * h, where h is height of pizza and pi is constant value = pi * 64 * h volume of 12" pizza is: pi * (12 * 12) * h, where h is height of pizza and pi is constant value = pi* 144 * h

so price of 12" pizza is - (pi * 144 * h * 3.99) / (pi * 64 * h) = 8.97 approx discount given - 8.97 - 6.73 = 2.24

so percentage of discount = 2.24 * 100 / 8.97 = 25 % approx

Miscellaneous  |  Level - 1

Answer Write Code Visit Question Page

Q2 Which fortune teller to choose

The first fortune teller's prediction has 85 % chance of being correct. The second has 63 % chance of being correct, the third 48 %, the fourth 32 %, and the fifth 9 %.

If you were trying to get the best prediction of your future, which fortune teller would you go to? • first • second • third • fourth • fifth

Miscellaneous  |  Level - 2

Answer Write Code Visit Question Page

Q3 How to add two integers without using arithmetic operators?

Write a function Add() that returns sum of two integers. The function should not use any of the arithmetic operators (+, ++, –, -, .. etc).

Amazon  |  Level - 1

Answer Write Code Visit Question Page

Q4 Minimum cost for painting a row houses in three different colors

There are N houses in a row. Each house can be painted in either Red, Green or Blue color. The cost of coloring each house in each of the colors is different.

Find the color of each house such that no two adjacent house have the same color and the total cost of coloring all the houses is minimum.

Update: The question intends to state that cost of painting any house in any color is different, so if cost of painting House 1 in Red is say, X then the cost of painting House 2 in red will some other value Y. It can be considered each house has different dimensions and hence cost of painting in each color is different, and the cost of paint for each house also varies

Google  |  Level - 2

Answer Write Code Visit Question Page

Q5 GenerateTrue

Given a number x, less than 100. How will you generate true with probability x/100. So if x = 65, how will you generate true with probability 65/100. You can represent true by 1 and false by 0.

Facebook  |  Level - 2

Answer Write Code Visit Question Page

Q6 Maximum distance with 50 bikes and a tank of capacity 100 kms

There are 50 bikes with a tank that has the capacity to go 100 kms. Using these 50 bikes, what is the maximum distance that you can go ?

Adobe  |  Level - 3

Answer Write Code Visit Question Page

Q7 Maximize probability of picking a pen of a given color

Given 50 red pens and 50 blue pens, two jars(A,B) initially empty. These 100 pens are to be distributed b/w the jars such that the probability of picking a red pen is maximum.

Adobe  |  Level - 2

Answer Write Code Visit Question Page

Q8 Match two board configurations of tic-tac-toe problem

How will you match two board configurations of tic-tac-toe problem?

Microsoft  |  Level - 3

Answer Write Code Visit Question Page

Q9 If you had an infinite supply of water and a 5 litre and 3 litre bucket, how would you measure exactly 4 litre?

If you had an infinite supply of water and a 5 litre and 3 litre bucket, how would you measure exactly 4 litre? The buckets do not have any intermediate scales.

Microsoft  |  Level - 1

Answer Write Code Visit Question Page

Q10

If you are on a boat and you throw out a suitcase, will the level of water increase?

Microsoft  |  Level - 1

Answer Write Code Visit Question Page