Prog Riddles To Solve
Solving Prog Riddles
Here we've provide a compiled a list of the best prog puzzles and riddles to solve we could find.Our team works hard to help you piece fun ideas together to develop riddles based on different topics. Whether it's a class activity for school, event, scavenger hunt, puzzle assignment, your personal project or just fun in general our database serve as a tool to help you get started.
Here's a list of related tags to browse: Hat Riddles Long Riddles Riddle Of The Day Silly Riddles Corn Riddles Scavenger Hunt Riddles Fall Riddles Probability Riddles Math Riddles
The results compiled are acquired by taking your search "prog" and breaking it down to search through our database for relevant content.
Browse the list below:
Prisoner Hat Riddle
Four inmates are cleaning up a littered beach as part of a prisoner work program. The warden, who happens to be overseeing the work, decides to play a little game with the prisoners. He tells them that if they win the game he will let them go free! He then proceeds to bury each prisoner up to his neck in sand as shown.
There is a wall between prisoners C and D (which cannot be seen through or around). Prisoner A can see prisoners B and C (by moving his head to the side). Prisoner B can see prisoner C. Prisoners C and D see only the wall.
The prisoners are immobilized in the ground and can't twist their body to see the person behind them. The warden shows them two black hats and two white hats and then puts the hats in a bag to conceal them. He then stands behind each prisoner, chooses a hat from the bag, and puts it on their head. The color of each prisoner's hat is shown in the image above.
The rules are simple. If any prisoner can figure out the color of the hat on his head, all four prisoners will be set free. But they must be sure, if one of them simply guesses and is wrong, they will all be shot dead! The prisoners are not allowed to talk to each other and they have 10 seconds.
The warden counts down "ten, nine, eight, seven". All four prisoners are silent. The warden smiles, knowing that he put the hats on in such a way that no prisoner could possibly know the color of the hat they had on. He continues "six, five, four, thr.."
"I know the color of my hat!" one of the prisoners finally blurts out.
Which prisoner called out and why is he 100% certain of the color of his hat?
There is a wall between prisoners C and D (which cannot be seen through or around). Prisoner A can see prisoners B and C (by moving his head to the side). Prisoner B can see prisoner C. Prisoners C and D see only the wall.
The prisoners are immobilized in the ground and can't twist their body to see the person behind them. The warden shows them two black hats and two white hats and then puts the hats in a bag to conceal them. He then stands behind each prisoner, chooses a hat from the bag, and puts it on their head. The color of each prisoner's hat is shown in the image above.
The rules are simple. If any prisoner can figure out the color of the hat on his head, all four prisoners will be set free. But they must be sure, if one of them simply guesses and is wrong, they will all be shot dead! The prisoners are not allowed to talk to each other and they have 10 seconds.
The warden counts down "ten, nine, eight, seven". All four prisoners are silent. The warden smiles, knowing that he put the hats on in such a way that no prisoner could possibly know the color of the hat they had on. He continues "six, five, four, thr.."
"I know the color of my hat!" one of the prisoners finally blurts out.
Which prisoner called out and why is he 100% certain of the color of his hat?
Hint:
Prisoner B.
If prisoners B and C had the same color hat on, prisoner A would have know immediately that his hat was the other color (there are only two hats of each color). Since prisoner A was silent, prisoners B and C must have different colored hats. Prisoner B realized this and knew that his hat was not the same color as prisoner C, therefore his hat must be black! Did you answer this riddle correctly?
YES NO
If prisoners B and C had the same color hat on, prisoner A would have know immediately that his hat was the other color (there are only two hats of each color). Since prisoner A was silent, prisoners B and C must have different colored hats. Prisoner B realized this and knew that his hat was not the same color as prisoner C, therefore his hat must be black! Did you answer this riddle correctly?
YES NO
The Stage Manager Riddle
Hint:
Nights Getting Colder
As fall starts to progress along
And nights continue getting colder
This tasty food is something that
Can be eaten off a cob holder
What could it be?
And nights continue getting colder
This tasty food is something that
Can be eaten off a cob holder
What could it be?
Hint:
Little Billy's Calculator
Little Billy has a calculator with 15 buttons. He has 10 keys for 0-9, a key for addition, multiplication, division, and subtraction. Finally, he has an = sign. However, Mark the Meanie messed up the programming on Billy's calculator. Now, whenever Billy presses any of the number keys, it comes up with a random single-digit number. The same goes for the four operations keys (+,-,x, /). So whenever Billy tries to press the + button, the calculator chooses randomly between addition, multiplication, subtraction, and division. The only key left untouched was the = sign.
Now, if Billy were to press one number key, one operation key, then another number key, then the = button, what are the chances the answer comes out to 6?
Now, if Billy were to press one number key, one operation key, then another number key, then the = button, what are the chances the answer comes out to 6?
Hint: Think about how many ways he could possibly get 6.
There is a 4% chance.
There are 16 possible ways to get 6.
0+6
1+5
2+4
3+3
6+0
5+1
4+2
9-3
8-2
7-1
6-0
1x6
2x3
6x1
3x2
6/1
There are 400 possible button combinations.
When Billy presses any number key, there are 10 possibilities; when he presses any operation key, there are 4 possibilities.
10(1st#)x4(Operation)x10(2nd#)=400
16 working combinations/400 possible combinations= .04 or 4% Did you answer this riddle correctly?
YES NO
There are 16 possible ways to get 6.
0+6
1+5
2+4
3+3
6+0
5+1
4+2
9-3
8-2
7-1
6-0
1x6
2x3
6x1
3x2
6/1
There are 400 possible button combinations.
When Billy presses any number key, there are 10 possibilities; when he presses any operation key, there are 4 possibilities.
10(1st#)x4(Operation)x10(2nd#)=400
16 working combinations/400 possible combinations= .04 or 4% Did you answer this riddle correctly?
YES NO
Programmers And A Light Bulb Riddle
Hint:
Confused Programmers Riddle
Hint:
Husband, Wife And Mailman Riddle
A married couple went to the hospital to have their baby delivered. Upon their arrival, the doctor said he had invented a new machine that would transfer a portion of the mother's labor pain to the baby's father. He was asked if they were willing to try it out. They were both very much in favor of it.
The doctor set the pain transfer to 10% for starters, explaining that even 10% was probably more pain than the father had ever experienced before. However, as the labor progressed, the husband felt fine and asked the doctor to go ahead and kick it up a notch. The doctor then adjusted the machine to 20% pain transfer. The husband was still feeling fine. The doctor checked the husband's blood pressure and was amazed at how well he was doing. At this point, they decided to try out for 50%. The husband continued to feel quite well.
Since the pain transfer was obviously helping out the wife considerably, the husband encouraged the doctor to transfer all the pain to him. The wife delivered a healthy baby with virtually no pain. She and her husband were ecstatic. When they got home, the mailman was dead on the porch. What happened?
The doctor set the pain transfer to 10% for starters, explaining that even 10% was probably more pain than the father had ever experienced before. However, as the labor progressed, the husband felt fine and asked the doctor to go ahead and kick it up a notch. The doctor then adjusted the machine to 20% pain transfer. The husband was still feeling fine. The doctor checked the husband's blood pressure and was amazed at how well he was doing. At this point, they decided to try out for 50%. The husband continued to feel quite well.
Since the pain transfer was obviously helping out the wife considerably, the husband encouraged the doctor to transfer all the pain to him. The wife delivered a healthy baby with virtually no pain. She and her husband were ecstatic. When they got home, the mailman was dead on the porch. What happened?
Hint:
The machine transfers the pain to the baby's father. The wife cheated on her husband with the mailman and it was his baby. It never mentions that the husband is the baby's father. Did you answer this riddle correctly?
YES NO
YES NO
Java Light Bulb Riddle
Hint:
One, to generate a "ChangeLightBulb" event to the socket. Did you answer this riddle correctly?
YES NO
YES NO
Add Your Riddle Here
Have some tricky riddles of your own? Leave them below for our users to try and solve.
1