1. Solve a puzzle.
You can add but can not delete.
8_8_8_8_8_8_8_8_=1000
Ans:
we know 2^10 = 1024.
8*8*8*8^ (1/3) = 1024.
8+8+8*8^0 = 24.
So,
8*8*8*8^(1/3)-8-8-8*8^0 = 1000.
2. Write a c program to store pure water into a tank .water source is not fully pure.
You can use only one water purifier but it can purify 90%of input water.
Ans:
water store (water src)
{
container l1,l2;
while(src)
{
l1=src;
empty(src);
l2=purifier(l1);
empty(l1);
if(l2 is 99% pure)
return l2;
else
{
src=l2;
empty(l2);
}
}
}
3. Belady's Anomalies in Operating systems page fault concept.
4. Java - Polymorphism.
5. Sql - Normalization, Joins.