June 27, 2008

infosys puzzles

If a vessel contains 56 lit of a mixture of milk and water in ratio3:2.what amount of the water should be added to make the ratio 4:5 ?

There are 7 letters A,B,C,D,E,F,G All are assigned some numbers from 1,2 to 7. B is in the middle if arranged as per the numbers. A is greater than G same as F is less than C. G comes earlier than E. 1) Which is the fourth letter ? ( B / D / F/ E) 2) what is the difference between A and F? ( 3 /4/ 5/ 6) 3 Choose 4 consecutive letters? ( ABCD / BDFE / AEFB / NONE OF THESE )

In a Bus there are 7 people. Each one carry 7 bags. Each bag contains 7 cat. Each cat carry 7 small cats. How many legs are there in the bus?

There are 12 balls looks identically equal. But one of them has weight different (more or less) from other. How to find that dissimilar ball with minimum balances?

At 6’o a clock ticks 6 times. The time between first and last ticks is 30 seconds. How long does it tick at 12’o clock? 2.A hotel has 10 storey. Which floor is above the floor below the floor, below the floor above the floor, below the floor above the fifth. 3. Two trains starting at same time, one from Bangalore to Mysore and other in opposite direction arrive at their destination 1 hr and 4 hours respectively after passing each other. How much faster is one train from other? A man collects cigarette stubs and makes one full cigarette with every 8 stubs. If he gets 64 stubs how many full cigarettes can he smoke? 5. There is one room with 3-bulbs inside and corresponding switches are outside the room. You make any combination of three switches and enter room only once. How do you find out the respective switches for these three bulbs.

Let D be the set of all points in the real plane such that |x| + |y| <= 1, where |x| (respectively |y|) denotes the absolute value of x (respectively y). Prove that amongst every 5 points in D, there exist two points whose distance from one another is at most 1.

While traveling in a road, the road diverges left and right. One way goes to the heaven and other one goes to hell I want to go to heaven. In that village only two inhabitants are living one is knight and other one is knave. Knight will always speak truth and knave will always speak lie. In that road one inhabitant is standing but we don't know who is he. He might be an knight or knave i want to ask a question to that inhabitant to go to heaven. How can i identify that inhabitant is knight or knave?

There are 4 cars . They all are coming from different directions. They have to cross through one square. They all arrive at the same time. Nobody stops . still there is no clash . note : They all are driving at a speed if 100 km/hr. options are: 1) all cars take left 2) all cars turn right 3) two cars turn left and two turn right. tell me the answer with reason.

Some gatekeepers are warriors and some warriors are cowards therefore some gatekeepers must be cowards. What is correct answer?

361 -> 22 121 -> 14 81 -> 12 25 -> X What is the value of X?

A cube of side 4cm is painted with colors red, blue, green in such a way that opposite sides are painted in the same colour . this cube is now cut into 64 cubes of equal size .then 1) how many have atleast two sides painted in different colours. 2) how many cubes have only one side painted. 3) how many cubes have no side painted 4) how many have exactly one side not painted.

These words follow a logical progression: CODIFY LAMINA STOVE RESET JOKUL QUIRES Which one of these comes next? REST, GRAIL, STOIC, ORDEAL


If 12 distinct points are placed on the circumference of a circle and all the chords connecting these points are drawn. What is the largest number of points of intersection for these chords?

Let D be the set of all points in the real plane such that |x| + |y| <= 1, where |x| (respectively |y|) denotes the absolute value of x (respectively y). Prove that amongst every 5 points in D, there exist two points whose distance from one another is at most 1.

General Gasslefield, accused of high treason, is sentenced to death by the court-martial. He is allowed to make a final statement, after which he will be shot if the statement is false or will be hung if the statement is true. Gasslefield makes his final statement and is released. What could he have said?

The numbers 1, 2, 3, 4, 5, 6, 7, 8, and 9 must be put in the depicted triangle, in such a way that the sums of the numbers on each side are equal. How should the numbers be arranged in the triangle?

In front of you are 10 bags, filled with marbles. The number of marbles in each bag differs, but all bags contain ten marbles or more. Nine of the ten bags only contain marbles of 10 grams each. One bag only contains marbles of 9 grams. In addition, you have a balance which can weigh in grams accurate, and you are allowed to use it only once (i.e. weigh a single time). How can you find out in one weighing, which bag contains the marbles of 9 grams?

A man has a wolf, a goat, and a cabbage. He must cross a river with the two animals and the cabbage. There is a small rowing-boat, in which he can take only one thing with him at a time. If, however, the wolf and the goat are left alone, the wolf will eat the goat. If the goat and the cabbage are left alone, the goat will eat the cabbage. How can the man get across the river with the two animals and the cabbage?

In the middle of a round pool lies a beautiful water-lily. The water-lily doubles in size every day. After exactly 20 days the complete pool will be covered by the lily. After how many days will half of the pool be covered by the water-lily?

You are standing next to a well, and you have two jugs. One jug has a content of 3 liters and the other one has a content of 5 liters. How can you get just 4 liters of water using only these two jugs?

Yesterday evening, Helen and her husband invited their neighbors (two couples) for a dinner at home. The six of them sat at a round table. Helen tells you the following: "Victor sat on the left of the woman who sat on the left of the man who sat on the left of Anna. Esther sat on the left of the man who sat on the left of the woman who sat on the left of the man who sat on the left of the woman who sat on the left of my husband. Jim sat on the left of the woman who sat on the left of Roger. I did not sit beside my husband." What is the name of Helen's husband?

Jack and his wife went to a party where four other married couples were present. Every person shook hands with everyone he or she was not acquainted with. When the handshaking was over, Jack asked everyone, including his own wife, how many hands they shook. To his surprise, Jack got nine different answers. How many hands did Jack's wife shake?

A light bulb is hanging in a room. Outside of the room there are three switches, of which only one is connected to the lamp. In the starting situation, all switches are 'off' and the bulb is not lit. If it is allowed to check in the room only once to see if the bulb is lit or not (this is not visible from the outside), how can you determine with which of the three switches the light bulb can be switched on?

Tom has three boxes with fruits in his barn: one box with apples, one box with pears, and one box with both apples and pears. The boxes have labels that describe the contents, but none of these labels is on the right box. How can Tom, by taking only one piece of fruit from one box, determine what each of the boxes contains?

Assume that you have a number of long fuses, of which you only know that they burn for exactly one hour after you lighted them at one end. However, you don't know whether they burn with constant speed, so the first half of the fuse can be burnt in only ten minutes while the rest takes the other fifty minutes to burn completely. Also assume that you have a lighter. How can you measure exactly three quarters of an hour with these fuses? Hint: 2fuses are sufficient to measure three quarter of an hour Hint: A fuse can be lighted from both ends at the same time (which reduces its burning time significantly)

Richard is a strange liar. He lies on six days of the week, but on the seventh day he always tells the truth. He made the following statements on three successive days: Day 1: "I lie on Monday and Tuesday." Day 2: "Today, it's Thursday, Saturday, or Sunday." Day 3: "I lie on Wednesday and Friday." On which day does Richard tell the truth?

Barbara has boxes in three sizes: large, standard, and small. She puts 11 large boxes on a table. She leaves some of these boxes empty, and in all the other boxes she puts 8 standard boxes. She leaves some of these standard boxes empty, and in all the other standard boxes she puts 8 (empty) small boxes. Now, 102 of all the boxes on the table are empty. How many boxes has Barbara used in total?

There is a unique number of which the square and the cube together use all ciphers from 0 up to 9 exactly once. Which number is this?

On a nice summer day two tourists visit the Dutch city of Gouda. During their tour through the center they spot a cosy terrace. They decide to have a drink and, as an appetizer, a portion of hot "bitterballs" (bitterballs are a Dutch delicacy, similar to croquettes). The waiter tells them that the bitterballs can be served in portions of 6, 9, or 20. What is the largest number of bitterballs that cannot be ordered in these portions?

A swimmer jumps from a bridge over a canal and swims 1 kilometer stream up. After that first kilometer, he passes a floating cork. He continues swimming for half an hour and then turns around and swims back to the bridge. The swimmer and the cork arrive at the bridge at the same time. The swimmer has been swimming with constant speed. How fast does the water in the canal flow?

William lives in a street with house-numbers 8 up to and including 100. Lisa wants to know at which number William lives. She asks him: "Is your number larger than 50?" William answers, but lies. Upon this Lisa asks: "Is your number a multiple of 4?" William answers, but lies again. Then Lisa asks: "Is your number a square?" William answers truthfully. Upon this Lisa says: "I know your number if you tell me whether the first digit is a 3." William answers, but now we don't know whether he lies or speaks the truth. Thereupon Lisa says at which number she thinks William lives, but (of course) she is wrong. What is Williams real house-number?

June 20, 2008

Folder Lock without any S/W

Here you go with an alternative way to lock folders without the use of any alternative software

Open Notepad and copy the below code and save as locker.bat. Don't forget to change your password in the code it's shown the place where to type your password.
Now double click on locker .bat
First time start it will create folder with Locker automatically for u. After creation of the Locker folder, place the contents u want to lock inside the Locker Folder and run locker.bat again. To release the lock again run locker.bat. It prompts to enter your password. On entering the correct password we can unlock the folder.

I hope this comes in handy

title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
echo Are you sure u want to Lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==type your password here goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
echo Invalid password
goto end
md Locker
echo Locker created successfully
goto End

June 19, 2008

Java Interview FAQ funny

Java Interview FAQ :-)

Q. What is the difference between an Abstract class and Interf?
A. Terms are different ... nothing more

Q. What is JFC ?
A. Jilebi, Fanta & Coffee

Q. Explain 2 tier and 3 -tier Architecture ?
A. Two wheelers like scooters will have 2 tyres and autorickshaws will
3 tyres.

Q. I want to store more than 10 objects in a remote server ? Which
methodology will follow ?
A. Send it through courier.

Q. Can I modify an object in CORBA ?
A. As you wish , I do not have any objections.

Q. How to communicate 2 threads each other ?
A. Non living things can't communicate.

Q. What is meant by flickering ?
A. Closing and opening of eyes at girls.

Q. Explain RMI Architecture?
A. I am a computer professional not an architect student.

Q. What is the use of Servlets ?
A. In hotels, they can replace servers.

Q. What is the dif ference between Process and Threads ?
A. Threads are small ropes. Make a rope from threads is an example for

Q. When is update method called ?
A. Who is update method?

Q. What is JAR file ?
A. File that can be kept inside a jar.

Q. What is JINI ?
A. A ghost which was Aladdin's friend.

Q. How will you call an Applet from a Java Script?
A. I will give invitation.

Q. How you can know about drivers and database information ?
A. I will go and enquire in the bus dep ot.

Q. What is serialization ?
A. Arranging one after the other from left to right.

Q. What is bean ? Where it can be used ?
A. A kind of vegetable. In kitchens for cooking they can be used.

Q. Write down how will you create a binary Tree ?
A. When we sow a binary seed , a binary tree will grow.

Q. What is the exact diffe rence between Unicast and Multicast object ?
A. If in a society, if there is only one caste, then it is Unicast, else
it is multicast

June 13, 2008

IIT's Extra effort - Free Online Classes

Dear All,

The IITs have taken up an initiative of starting online teaching and thus have started offering course materials online for every engineering stream.

Many professors from all the IITs have provided course materials for each chapter and each subject.

One has to register at the link provided below and can access the course material free of cost.

Every Chapter has been described with diagrams and charts. Please spread this message to everyone, as many can benefit from this program taken up by the government and IIT.

This is just a trial period going on and hence I request everyone to register at the link given.

1] Type the following address on internet explorer http://www.nptel.iitm.ac.in

2] Click on Courses

3] sign up as a NEW USER

4] And one can access any course material.

Please spread the word, so that this initiative benefits as many students as possible.

Why girls like guys and vice versa....

Well here are a few reasons that girls like guys

1. The way they always wear their favorite cologne (which happens to be the
one that you bought them for their birthday)
2. The way the run their hands through out hair
3. The way that they look at you and you want to die right then and there
4. The way that they casually put their arms around you
5. The way that they kiss away your tears
6. ...and the way that they then get mad at how they can't make your problem go
7. The way they show off around their friends, even though you both know that
you would love them even if they missed a basket or two
8. How there eyes light up at the result of 3 hours of preparing for your date
9. How they always know just what to say to make you blush
10. How they sometimes think that they know just what to say to make you feel
better, even if you think that it is the worst thing that they could say
11. The way they hold you close when you are cold
12. How they look at you when your mad at them and all your anger melts away
13. How they always smile when you are together
14. The way that they always let you win any game that you play together
15. ... and then when you point that out to them they pretend to not know what
you are talking about
16. The way that they smile at you
17. The way that you feel when they call to apologize after you had a big fight
18. The way that they say I love you
19. The way that they say I love you in front of their friends
20. The way that they touch and hold you so gently, like they are afraid that they
will break you
21. The way that they kiss you
22. The way that they open their arms to you when you are crying
23. The way that they never admit that you hurt them
24. The way that they try not to cry when they are afraid that they are losing you
25. The way that they think that they are your big protector, even though you
think that you are theirs
26. The way that they say I miss you, even though they hate to admit it
27. The way that you miss everything about them when they are gone
28. The way that they remember your special moments, or aniversaries when
you think that they forgot
29. The way that they apologize when they do forget
30. The way that they comfort you when you have a bad day
31. The way that you can't wait to get home and tell them all about your day
32. The way that they write you love letters even if they think that it is uncool
33. How they would rather be with you then their friends sometime
34. How you want to hug them even though they are all sweaty
35. Yet regardless if you love them, hate them, wish they would die or know that
you would die without them... it matters not. Because once in your life, whatever
they were to the world they become everything to you. When you look them in
the eyes, traveling to the depths of their souls and you say a million things
without a trace of sound, you know that your own life is inevitabley comsumed
within the rhythimic beatings of his heart. We love them for a million reasons,
No paper would do it justice. It is a thing a feeling, that is only felt.

WELL here's a few reasons why guys like girls

1. They will always smell good even if its just shampoo
2. The way their heads always find the right spot on our shoulder
3. How cute they look when they sleep
4. the ease in which they fit into our arms
5. the way they kiss you and all of a sudden everything is right in the world
6. How cute they are when they eat
7. The way they take hours to get dressed but in the end it makes it all worth
8. because they are always warm even when its minus 30 out side
9. the way they look good no matter what they wear
10. the way they fish for compliments even though you both know that you
think she's the most beautiful thing on this earth
11. How cute they are when they argue
12. the way her hand always finds yours
13. the way they smile
14. the way you feel when you see their name on the call ID after you just had a
big fight
15. the way she says "lets not fight anymore" even though you know that an
hour later....
16. the way they kiss when you do something nice for them
17. The way they kiss you when you say "I love you'
18. actually... just the way they kiss you...
19. the way they fall into your arms when they cry
20. then the way they apologize for crying over something that silly
21. The way they hit you and expect it to hurt
22. then the way apologize when it does hurt ..(even though we don't admit it!)
23. the way they say "I miss you"
24. the way you miss them
25. the way their tears make you want to change the world so that it doesn't hurt
her anymore.....Yet regardless if you love them, hate them, wish they would die
or know that you would die without them... it matters not. Because once in your
life, whatever they were to the world they become everything to you. When you
look them in the eyes, traveling to the depths of their souls and you say a million
things without trace of a sound, you know that your own life is inevitable
consumed within the rhythmic beatings of her very heart. We love them for a
million reasons, No paper would do it justice. It is a thing not of the mind but of
the heart. A feeling. Only felt.


Most interesting and colorful word in the English language

Perhaps one of the most interesting and colorful words in the English language
today is the word "fuck". It is the magical word which, just by its sound can
describe pain, pleasure, love, and hate.

In language, "fuck" falls into many grammatical catagories. It can beused as a
verb both transitive (John fucked Mary) and intransitive (Mary was fucked by
John). It can be an action verb (John really gives a fuck), a passive verb (Mary
really doesn't give a fuck), and adverb (Mary is fucking interested in John), or as
a noun (Mary is a terrific fuck). It can also be used as an interjection (Fuck! I'm
late for my date with Mary). It can even be used as a conjunction (Mary is easy,
fuck she's also stupid). As you can see there are very few words with the overall
versitility of the word "fuck".

Aside from its sexual connotations, this incredible word can be used To describe
many situations:

1)Greetings................"How the fuck are ya?"
2)Fraud...................."I got fucked by the car dealer."
3)Resignation.............."Oh, fuck it!"
4)Trouble.................."I guess I'm fucked now."
5)Aggression..............."FUCK YOU!"
6)Disgust.................."Fuck me."
7)Confusion................"What the fuck...?"
8)Difficulty..............."I don't understand this fucking shit!"
9)Despair.................."Fucked again..."
10)Pleasure................"I couldn't be any fucking happier!"
11)Displeasure............."Fucking shit man..."
12)Lost...................."Where the fuck are we?"
14)Retaliation............."Up your fucking ass!"
15)Denial.................."I didn't fucking do it, I swear!"
16)Perplexity.............."I know fuck about it."
17)Apathy.................."Who really gives a fuck anyway?"
18)Suspicion..............."Who the fuck are you?"
19)Panic..................."Let's get the fuck out of here!"
20)Directions.............."Fuck off."
21)Incomprehesion.........."How the fuck did you do that?"

It can be an anatomical description............."He's a fucking asshole."
It can be used to tell time....................."Its five fucking thirty."
It can be used in business.............."How did I wind up with this fucking
It can be maternal......................"MOTHERFUCKER!"
It can be political....................."Fuck Newt Gingrich!"

Lastly, it has been used by many notable people throughout history:

"What the fuck was that?"
--Mayor of Hiroshima--

"Where did all these fucking Indians come from?"
--General Custer--

"That's not a real fucking gun."
--John Lennon--

"Where the fuck is all this water coming from?"
--Captian of the Titanic--

"Who the fuck's gonna find out?"
--Richard Nixon--

"Heads are going to fucking roll!"
--Anne Boleyn--

"Any fucking idiot could understand that."
--Albert Einstein--

"It does so fucking look like her!"

"How the fuck did I work that out?"

"You want what on the fucking ceiling?"

"Fuck a duck."
--Walt Disney--

"What do you mean why...becuase its fucking there!"
--Edmund Hilary--

"Don't fucking light that..."
--Joan of Arc--

"Scattered fucking showers my ass."

"I need this parade like I need a fucking hole in my head."
--John F. Kennedy--

"Houston...we've got a big fucking problem..."
--Crew of Appollo 13-