All Puzzles
-
What will be the output of the program-
print(5);
void print (int n){ if (n>0){ printf(“hello”); print(n-1); } printf(“world”); }
View SolutionSubmit Solution- 1,475.1K views
- 3 answers
- 1 votes
-
3 + 3 = 3
5 + 4 = 4
1 + 0 = 3
2 + 3 = 4
3 + 4 = 5
1 + 7 = ?View SolutionSubmit Solution- 1,505.8K views
- 3 answers
- 7 votes
-
Grasshopper falls in pond and multiplies to 15 in an hour, how many will be in pond after 3 hours?
View SolutionSubmit Solution- 1,490.5K views
- 4 answers
- 0 votes
-
A 120 wire cable has been laid firmly underground between two telephone exchanges located 10 km apart.
Unfortunately after the cable was laid it was discovered to be the wrong type, the problem is the individual wires are not labeled. There is no visual way of knowing which wire is which and thus connections at either end is not immediately possible.You are a trainee technician and your boss has asked you to identify and label the wires at both ends without ripping it all up. You have no transport and only a battery and light bulb to test continuity. You do have tape and pen for labeling the wires.
What is the shortest distance in kilometers you will need to walk to correctly identify and label each wire?
View SolutionSubmit Solution- 1,521.0K views
- 2 answers
- 0 votes
-
In your bedroom, you have a drawer with 2 red, 4 yellow, 6 purple, 8 brown, 10 white, 12 green, 14 black, 16 blue, 18 grey and 20 orange socks. It is dark in your bedroom, so you cannot distinguish between the colors of the socks.
How many socks do you need to take out of the drawer to be sure that you have at least three pairs of socks of the same color?
View SolutionSubmit Solution- 1,531.2K views
- 4 answers
- 0 votes
-
You have ten chocolate boxes containing 10 chocolate each and an electronic weighing machine.
In those ten boxes,
you have chocolates. Each chocolate weigh 20 grams. But in one box the chocolates are defective and each weigh 19 grams exactly.Now you can weigh in the electronic weighing machine but you can use that machine just once.
How will you find out which box has the defected chocolates.View SolutionSubmit Solution- 1,545.5K views
- 1 answers
- 1 votes