Skip to content
- Tutorials
- Python Tutorial
- Taking Input in Python
- Python Operators
- Python Data Types
- Python Loops and Control Flow
- Python Functions
- Python OOPS Concept
- Python Data Structures
- Python Exception Handling
- Python File Handling
- Python Exercises
- Java
- Java Programming Language
- Java Collections
- Java 8 Tutorial
- Java Programs
- Java Interview Questions
- Java Exercises
- Java Quiz
- Java Projects
- Advance Java
- Programming Languages
- System Design
- Interview Corner
- Computer Science Subjects
- DevOps
- Linux
- Software Testing
- Databases
- Android
- Excel
- Mathematics
- Python Tutorial
- DSA
- Data Structures
- Algorithms
- Analysis of Algorithms
- Searching Algorithms
- Sorting Algorithms
- Greedy Algorithms
- Dynamic Programming
- Graph Algorithms
- Pattern Searching
- Recursion
- Backtracking
- Divide and Conquer
- Mathematical Algorithms
- Geometric Algorithms
- Bitwise Algorithms
- Randomized Algorithms
- Branch and Bound
- Algorithms Tutorial
- DSA Tutorial
- Practice
- All DSA Problems
- Problem of the Day
- Company Wise Coding Practice
- GfG SDE Sheet
- Practice Problems Difficulty Wise
- Language Wise Coding Practice
- Curated DSA Lists
- Competitive Programming
- Company Wise SDE Sheets
- DSA Cheat Sheets
- Top Interview Questions
- Puzzles
- Data Science
- Web Tech
- Courses
-
Last Updated : 06 Feb, 2024
Summarize
Comments
Improve
Question: What has keys but can’t open locks?
Answer: “A Piano” is the correct answer. A piano is a musical instrument with many keys but can’t open a single lock. A keyboard is another answer to this. It has keys but no locks.
Here are a few more answers for the riddle “What has keys but can’t open locks?”: Keyboard, Map, Calculator, Keypad.
A keyboard – It refers to a computer keyboard, which has keys but cannot open physical locks.
A map – In a metaphorical sense, a map contains “keys” or legends that help you navigate but cannot open locks.
A calculator – It has keys for operations but cannot open locks.
A keypad – Used for input on devices, security systems, etc., but by itself, it can’t open locks without the correct code.
Please Login to comment...
Similar Reads
What is something you can see and feel but can't touch or Hear?
Question: What is something you can see and feel but can't touch or Hear? Answer: Shadow. There can be many more correct answers, like - Sunlight, Rainbow, Music. Things You Can See but cannot TouchHere are some other things you can see but can't touch: Air, Sounds, Light, Personality, Pride, Joy, Sadness Air - While you can feel the air, but you c
1 min read
What can you catch, but not throw?
Question: What can you catch, but not throw?Answer: "A Cold" or "Illness". You can catch a cold or illness, but you cannot just throw it like any other object.This is a beautiful riddle which shows humor and the application of common sense. There can be one more answer possible for this riddle: "Your Breathe". Like catching a cold, you can "catch y
2 min read
How many Earths can fit in the Sun?
Answer: The Sun is immensely larger than the Earth. In terms of volume, approximately 1.3 million Earths could fit inside the Sun.The sun is the most massive star in our solar system. It is much larger than our planet Earth in terms of volume as well as size. The Sun weighs about 333,000 times more than Earth's mass. It would take 1.3 million Earth
1 min read
How many Earths can fit in Jupiter?
Answer: Approximately 1,321 Earths can fit inside Jupiter.Jupiter is the largest planet in our solar system and its immense size is often compared to that of Earth. The volume of Jupiter is so vast that it could fit approximately 1,321 Earths inside it. This estimation is based on the comparison of their mean diameters. Jupiter's diameter is about
1 min read
What has to be broken before you can use it?
Question: What has to be broken before you can use it? Answer: Egg.The answer to the riddle "What has to be broken before you can use it?" is an Egg. Because The Egg must be broken to be Cooked, eaten, or Hatched. What has to be broken before you can use it? - When Egg is not answered?If we interpret these answers creatively, here are more answers
1 min read
At present how many Fundamental Duties are in the Constitution of India?
Fundamental duties are enshrined in Part IVA of the Indian Constitution under Article 51(A). When the Constitution was drafted, fundamental duties were not part of the Constitution. They were added on the recommendations given by the Swaran Singh Committee. These duties were taken from the Constitution of Russia. 42nd Amendment Act, 1976 added 10 f
4 min read
How Many Seconds Are In a Year?
There are 31,536,000 seconds in a year. People often get confused about how they can calculate Seconds in a year. To figure out how many seconds in a billion year or a year, we will need to know a little bit of math. To convert a certain quantity to a different unit of measure, we need to figure out the conversion factor. Here is a detailed explana
2 min read
How Many Weeks in a Year?
There are 52 weeks in a year. We often get confused about how we can calculate weeks in a year. So, there is a simple calculation to calculate how many weeks in a year. We have explained the solution for weeks in a year. How Many Weeks Are There in a Year?Have you ever asked yourself, "How many weeks are in a year?" - Well, the simple answer is 52
5 min read
How Many Feet Are In a Yard?
We often think about how tall things are when we see heights like hills, towers, buildings, tall trees, bridges, railways, and so on. In times like these, we regularly measure the height of the relevant objects. This height is, from time to time, known as the length of a specific thing. And vice versa, the length of a given thing is frequently call
See Also3 Ways to Cut Locks - wikiHow4 min read
How Many Days Are 72 Hours?
A full day consists of 24 hours, as we are all aware. It can also be said that 1440 minutes, or 86,400 seconds, are in a day. Do you recognize how many days constitute 72 hours? Well, it’s simple arithmetic. In this blog, we will calculate the number of days there are in 72 hours. Table of Content What is the Definition of a Day?What Is the Definit
5 min read
How many Countries are in Africa?
Africa is one of the largest continents on the planet and is filled with great minerals and resources. It is also the second-most-populated continent on the planet. There are 54 countries in Africa. Algeria is the largest country on the continent, whereas Nigeria is the most populated country on the African continent. The African continent is the s
6 min read
How Many Days in a Year?
How many days are there in a calendar year as a whole? People often ask this question. The answer seems simple: The number of Days in a Year is 365(days) But the truth is a little more complicated. Most years have 365 days, but a few have 366 days. The years that have a total of 366 days are called Leap Years. The event takes place every four years
7 min read
How Many Galaxies are in the Universe?
Years ago when the great astronomer Galileo looked through his telescope into an ocean of stars, we were first introduced to our galaxy, The Milky Way. Since then the mere size of our universe has continued to baffle us. Later in 1924, Edwin Hubble detected more fainter stars around nebulae. On further observation through this 100-inch telescope, h
3 min read
How Many Calories Should I Eat a Day?
Ever wondered how many calories you should consume each day? It's not just a number; it's about understanding your body's needs. Whether you're aiming to maintain, lose, or gain weight, knowing your daily calorie requirements is crucial. This guide demystifies the calorie counting process, tailoring it to your lifestyle. Dive in to find out how age
10 min read
How Many Carbs in a Banana
Whether you're looking for a little grab-and-go snack or need to add a bit of sweetness to a smoothie or bowl of yogurt, bananas fit the description. Bananas are one of the world's most well-known fruits. Not only are they sweet and less expensive, but they're also full of vitamins. Although bananas have a bad reputation for their high sugar and st
7 min read
How Many Oceans are There?
An ocean is a vast, interconnected body of salt water that covers over 70% of the Earth's surface and plays a critical role in regulating the planet's climate and weather patterns, supporting a diverse array of marine life, and providing numerous economic and social benefits to human populations. It is a unique and complex ecosystem that is shaped
13 min read
How Many Fluid Ounces Are In a Canadian Gallon?
There are approximately 153.72 fluid ounces in a Canadian gallon. This means if you have a Canadian gallon of liquid, it would be equivalent to about 153.72 fluid ounces. In Canada, a gallon is different from the gallon used in the United States. To find out how many fluid ounces are in a Canadian gallon, here's what you need to know: Canadian Gall
1 min read
How Many Credit Cards Should I Have in 2024?
How Many Credit Cards Should I Have in 2024- There's no specific number of credit cards to pursue, but some hints can help you navigate your way to stable financial ground. The number of cards you have and their combined credit score limits can affect your credit scores, which then influences your capability to secure essential things such as autom
9 min read
How Many Total Inches is 5′7″?
Answer: 5 feet 7 inches is equal to 67 inches in total. To find out how many inches are in 5 feet 7 inches, you need to convert both measurements to inches and then add them together. Convert Feet to Inches:There are 12 inches in 1 foot.So, to convert feet to inches, we multiply the number of feet by 12.In this case, we have 5 feet. So, 5×12=605×1
1 min read
How Many Cups of Water Equal a Liter?
Answer: There are approximately 4.17 standard US cups in a liter. This means if you need to measure out a liter of water, you would fill a standard cup a little more than four times. To find out how many cups of water equal a liter, you need to know the standard cup size. In simple terms: Standard Cup Size: Usually, when we talk about cups, we're r
1 min read
How Many Time Zones are In Thailand?
Answer: Thailand has just one time zone. In simple terms, the whole country of Thailand follows the same time, no matter where you are in the country. This time zone is known as Indochina Time (ICT), which is 7 hours ahead of Coordinated Universal Time (UTC+7). So, whether you're in Bangkok, Chiang Mai, phu*ket, or any other part of Thailand, the ti
1 min read
How Many ml is 16 oz?
Answer: 16 ounces is roughly equal to 473.176 milliliters. This conversion is commonly used in cooking and liquid measurements. To convert 16 ounces (oz) to milliliters (ml), you need to know the conversion factor. Here's how you do it: The Conversion Factor1 Ounce to Milliliters: The key to converting ounces to milliliters is the conversion factor
1 min read
How many kids does Rihanna have?
Answer: Rihanna currently has two children, both are boys and she is proud of them. Rihanna is a Barbadian singer, actress, and businesswoman. She is known for her successful career in the music and fashion industries. Rihanna's dream of becoming a mother came true after three years when she gave birth to her first child, a baby boy whose name is R
1 min read
How many moons does Saturn have?
Answer: Saturn currently has 146 moons, confirmed by the International Astronomical Union.As of 8 June 2023, Saturn has 146 moons. The number of moons increased substantially in May 2023 when 62 new moons were discovered by a team led by Edward Ashton. These new findings make the second largest planet in the solar system, Saturn, the "Moon King" of
2 min read
How many moons does Mars have?
Answer: The red planet, Mars, has only 2 moons.Earth has only one natural satellite and that is the Moon but Mars has 2 natural satellites. The moons are Phobos and Deimos. These moons are quite small and irregularly shaped, unlike our own spherical Moon. Both are thought to be captured asteroids, meaning they weren't formed alongside Mars but were
2 min read
How many grammys does Beyonce have?
Answer: Beyonce also known as Queen Bey has won 32 Grammys and holds the title of the most awarded artist in Grammy history. The music megastar, Beyonce, has a record of 32 Grammys in her career. She has worked with many great music stars and won Grammys. She gave many hit albums which led her to her success and create her own success stories and s
1 min read
How many moons does Jupiter have?
Answer: Jupiter has 95 moons, confirmed by the International Astronomical Union.Jupiter is the largest planet in our solar system. It is orbited by a vast number of moons. Saturn has 146 moons whereas Jupiter has 95 moons. Jupiter's moons vary significantly in size, composition, and orbital characteristics. The moons are divided into categories. Le
2 min read
How many moons does Earth have?
Answer: Earth has only one moon and we call it "The Moon". It is the fifth-largest moon in the solar system and has played a significant role in shaping Earth's history and the development of life. The Moon is approximately 1/6th the size of Earth and exerts gravitational forces that influence tides on our planet. It is responsible for high tides a
1 min read
How many grains of sand on Earth?
Answer: Scientists estimate that the Earth contains 7.5 sextillion sand grains.Estimating the exact number of grains of sand on Earth is an exceedingly challenging task due to the vastness and complexity of sand formations. Earth has a diverse range of environments including deserts, beaches, and dunes, each containing varying quantities and sizes
1 min read
How many miles around is Earth?
Answer: If we measure distance from the equator then the Earth is approximately 24,901 miles and from the poles it is about 24,859 miles.The distance around the earth depends on the locations. Our home planet Earth is very big with a radius of 3,958.8 miles or 6,371 km and a diameter of 7,926 miles or 12,756 km. We can measure the earth from two lo
2 min read
Article Tags :
Trending in News
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
'); $('.spinner-loading-overlay').show(); jQuery.ajax({ url: writeApiUrl + 'create-improvement-post/?v=1', type: "POST", contentType: 'application/json; charset=utf-8', dataType: 'json', xhrFields: { withCredentials: true }, data: JSON.stringify({ gfg_id: post_id, check: true }), success:function(result) { jQuery.ajax({ url: writeApiUrl + 'suggestions/auth/' + `${post_id}/`, type: "GET", dataType: 'json', xhrFields: { withCredentials: true }, success: function (result) { $('.spinner-loading-overlay:eq(0)').remove(); var commentArray = result; if(commentArray === null || commentArray.length === 0) { // when no reason is availaible then user will redirected directly make the improvment. // call to api create-improvement-post $('body').append('
'); $('.spinner-loading-overlay').show(); jQuery.ajax({ url: writeApiUrl + 'create-improvement-post/?v=1', type: "POST", contentType: 'application/json; charset=utf-8', dataType: 'json', xhrFields: { withCredentials: true }, data: JSON.stringify({ gfg_id: post_id, }), success:function(result) { $('.spinner-loading-overlay:eq(0)').remove(); $('.improve-modal--overlay').hide(); $('.unlocked-status--improve-modal-content').css("display","none"); $('.create-improvement-redirection-to-write').attr('href',writeUrl + 'improve-post/' + `${result.id}` + '/', '_blank'); $('.create-improvement-redirection-to-write')[0].click(); }, error:function(e) { $('.spinner-loading-overlay:eq(0)').remove(); var result = e.responseJSON; if(result.detail.non_field_errors.length){ $('.improve-modal--improve-content .improve-modal--improve-content-modified').text(`${result.detail.non_field_errors}.`); jQuery('.improve-modal--overlay').show(); jQuery('.improve-modal--improvement').show(); $('.locked-status--impove-modal').css("display","block"); $('.unlocked-status--improve-modal-content').css("display","none"); $('.improve-modal--improvement').attr("status","locked"); $('.improvement-reason-modal').hide(); } }, }); return; } var improvement_reason_html = ""; for(var comment of commentArray) { // loop creating improvement reason list markup var comment_id = comment['id']; var comment_text = comment['suggestion']; improvement_reason_html += `
${comment_text}
`; } $('.improvement-reasons_wrapper').html(improvement_reason_html); $('.improvement-bottom-btn').html("Create Improvement"); $('.improve-modal--improvement').hide(); $('.improvement-reason-modal').show(); }, error: function(e){ $('.spinner-loading-overlay:eq(0)').remove(); // stop loader when ajax failed; }, }); }, error:function(e) { $('.spinner-loading-overlay:eq(0)').remove(); var result = e.responseJSON; if(result.detail.non_field_errors.length){ $('.improve-modal--improve-content .improve-modal--improve-content-modified').text(`${result.detail.non_field_errors}.`); jQuery('.improve-modal--overlay').show(); jQuery('.improve-modal--improvement').show(); $('.locked-status--impove-modal').css("display","block"); $('.unlocked-status--improve-modal-content').css("display","none"); $('.improve-modal--improvement').attr("status","locked"); $('.improvement-reason-modal').hide(); } }, }); } else { if(loginData && !loginData.isLoggedIn) { $('.improve-modal--overlay').hide(); if ($('.header-main__wrapper').find('.header-main__signup.login-modal-btn').length) { $('.header-main__wrapper').find('.header-main__signup.login-modal-btn').click(); } return; } } }); $('.left-arrow-icon_wrapper').on('click',function(){ if($('.improve-modal--suggestion').is(":visible")) $('.improve-modal--suggestion').hide(); else{ $('.improvement-reason-modal').hide(); } $('.improve-modal--improvement').show(); }); function loadScript(src, callback) { var script = document.createElement('script'); script.src = src; script.onload = callback; document.head.appendChild(script); } function suggestionCall() { var suggest_val = $.trim($("#suggestion-section-textarea").val()); var array_String= suggest_val.split(" ") var gCaptchaToken = $("#g-recaptcha-response-suggestion-form").val(); var error_msg = false; if(suggest_val != "" && array_String.length >=4){ if(suggest_val.length <= 2000){ var payload = { "gfg_post_id" : `${post_id}`, "suggestion" : `
${suggest_val}
`, } if(!loginData || !loginData.isLoggedIn) // User is not logged in payload["g-recaptcha-token"] = gCaptchaToken jQuery.ajax({ type:'post', url: "https://apiwrite.geeksforgeeks.org/suggestions/auth/create/", xhrFields: { withCredentials: true }, crossDomain: true, contentType:'application/json', data: JSON.stringify(payload), success:function(data) { jQuery('.spinner-loading-overlay:eq(0)').remove(); jQuery('#suggestion-section-textarea').val(""); jQuery('.suggest-bottom-btn').css("display","none"); // Update the modal content const modalSection = document.querySelector('.suggestion-modal-section'); modalSection.innerHTML = `
Thank You!
Your suggestions are valuable to us.
You can now also contribute to the GeeksforGeeks community by creating improvement and help your fellow geeks.
`; }, error:function(data) { jQuery('.spinner-loading-overlay:eq(0)').remove(); jQuery('#suggestion-modal-alert').html("Something went wrong."); jQuery('#suggestion-modal-alert').show(); error_msg = true; } }); } else{ jQuery('.spinner-loading-overlay:eq(0)').remove(); jQuery('#suggestion-modal-alert').html("Minimum 5 Words and Maximum Character limit is 2000."); jQuery('#suggestion-modal-alert').show(); jQuery('#suggestion-section-textarea').focus(); error_msg = true; } } else{ jQuery('.spinner-loading-overlay:eq(0)').remove(); jQuery('#suggestion-modal-alert').html("Enter atleast four words !"); jQuery('#suggestion-modal-alert').show(); jQuery('#suggestion-section-textarea').focus(); error_msg = true; } if(error_msg){ setTimeout(() => { jQuery('#suggestion-section-textarea').focus(); jQuery('#suggestion-modal-alert').hide(); }, 3000); } } document.querySelector('.suggest-bottom-btn').addEventListener('click', function(){ jQuery('body').append('
'); jQuery('.spinner-loading-overlay').show(); if(loginData && loginData.isLoggedIn) { suggestionCall(); return; } // load the captcha script and set the token loadScript('https://www.google.com/recaptcha/api.js?render=6LdMFNUZAAAAAIuRtzg0piOT-qXCbDF-iQiUi9KY',[], function() { setGoogleRecaptcha(); }); }); $('.improvement-bottom-btn.create-improvement-btn').click(function() { //create improvement button is clicked $('body').append('
'); $('.spinner-loading-overlay').show(); // send this option via create-improvement-post api jQuery.ajax({ url: writeApiUrl + 'create-improvement-post/?v=1', type: "POST", contentType: 'application/json; charset=utf-8', dataType: 'json', xhrFields: { withCredentials: true }, data: JSON.stringify({ gfg_id: post_id }), success:function(result) { $('.spinner-loading-overlay:eq(0)').remove(); $('.improve-modal--overlay').hide(); $('.improvement-reason-modal').hide(); $('.create-improvement-redirection-to-write').attr('href',writeUrl + 'improve-post/' + `${result.id}` + '/', '_blank'); $('.create-improvement-redirection-to-write')[0].click(); }, error:function(e) { $('.spinner-loading-overlay:eq(0)').remove(); var result = e.responseJSON; if(result.detail.non_field_errors.length){ $('.improve-modal--improve-content .improve-modal--improve-content-modified').text(`${result.detail.non_field_errors}.`); jQuery('.improve-modal--overlay').show(); jQuery('.improve-modal--improvement').show(); $('.locked-status--impove-modal').css("display","block"); $('.unlocked-status--improve-modal-content').css("display","none"); $('.improve-modal--improvement').attr("status","locked"); $('.improvement-reason-modal').hide(); } }, }); });