Word: Variable
Meaning: चर
Pronunciation: वेरिएबल
Short Description:
English: A variable is a storage location in programming that holds a value, which can be changed during program execution. It is used to store data like numbers, text, or Boolean values.
Hindi: वेरिएबल प्रोग्रामिंग में एक भंडारण स्थान होता है जो किसी मान (value) को धारण करता है और प्रोग्राम निष्पादन के दौरान इसे बदला जा सकता है। इसका उपयोग संख्या, पाठ, या बूलियन मान जैसी सूचनाओं को संग्रहीत करने के लिए किया जाता है।
Examples of ‘Variable’ in Sentences:
# | English Sentence | Hindi Translation |
---|---|---|
1 | A variable stores data that can change during execution. | एक वेरिएबल डेटा संग्रहीत करता है जो निष्पादन के दौरान बदल सकता है। |
2 | In Python, you can declare a variable without specifying a type. | पायथन में, आप बिना प्रकार निर्दिष्ट किए वेरिएबल घोषित कर सकते हैं। |
3 | Variables help in making programs more dynamic. | वेरिएबल्स प्रोग्राम को अधिक डायनामिक बनाने में मदद करते हैं। |
4 | A constant is different from a variable as it cannot be changed. | एक स्थिरांक (constant) वेरिएबल से अलग होता है क्योंकि इसे बदला नहीं जा सकता। |
5 | The value of a variable can be updated anytime in a program. | प्रोग्राम में किसी भी समय वेरिएबल के मान को अपडेट किया जा सकता है। |
6 | Using meaningful variable names makes the code more readable. | सार्थक वेरिएबल नामों का उपयोग कोड को अधिक पठनीय बनाता है। |
7 | In JavaScript, ‘let’ and ‘const’ are used for variable declaration. | जावास्क्रिप्ट में, ‘let’ और ‘const’ का उपयोग वेरिएबल घोषित करने के लिए किया जाता है। |
8 | Variables can hold different types of data like strings, integers, and floats. | वेरिएबल विभिन्न प्रकार के डेटा जैसे स्ट्रिंग, पूर्णांक और फ्लोट को धारण कर सकते हैं। |
9 | The scope of a variable determines where it can be accessed. | वेरिएबल का स्कोप यह निर्धारित करता है कि इसे कहां एक्सेस किया जा सकता है। |
10 | Declaring variables properly improves code efficiency. | सही तरीके से वेरिएबल घोषित करने से कोड की कार्यक्षमता बढ़ती है। |
Short Story Using ‘Variable’
Ravi was learning Python and wrote his first program using a variable named age
. He assigned it a value of 10 and later changed it to 15. This made him realize how variables help in storing and updating information dynamically in a program.