Q1
Discount on Pizza
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
Q2
Which fortune teller to choose
If you were trying to get the best prediction of your future, which fortune teller would you go to? • first • second • third • fourth • fifth
Q3
How to add two integers without using arithmetic operators?
Q4
Minimum cost for painting a row houses in three different colors
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
Q5
GenerateTrue
Q6
Maximum distance with 50 bikes and a tank of capacity 100 kms
Q7
Maximize probability of picking a pen of a given color
Q8
Match two board configurations of tic-tac-toe problem
Q9
If you had an infinite supply of water and a 5 litre and 3 litre bucket, how would you measure exactly 4 litre?
Q10