डाटा क्या है| What is Data – Data Types, Number System, Fixed Point Representation

By | September 8, 2022

What is Data – Data can be anything like a number, a name, notes in a musical composition, or the color in a photograph.

What is Data – Data can be anything like a number, a name, notes in a musical composition, or the color in a photograph.
What is Data

What is Data

डाटा क्या है – डेटा कुछ भी हो सकता है जैसे संख्या, नाम, संगीत रचना में नोट्स, या तस्वीर में रंग। डेटा प्रतिनिधित्व को उस रूप के रूप में संदर्भित किया जा सकता है जिसमें हमने डेटा संग्रहीत किया, इसे संसाधित किया और इसे प्रेषित किया। डेटा को डिजिटल फॉर्मेट में स्टोर करने के लिए हम कंप्यूटर, स्मार्टफोन और आईपैड जैसे किसी भी डिवाइस का उपयोग कर सकते हैं। संग्रहीत डेटा को संभालने के लिए इलेक्ट्रॉनिक सर्किटरी का उपयोग किया जाता है।

Data

Data can be anything like a number, a name, notes in a musical composition, or the color in a photograph. Data representation can be referred to as the form in which we stored the data, processed it and transmitted it. In order to store the data in digital format, we can use any device like computers, smartphones, and iPads. Electronic circuitry is used to handle the stored data.

What is Data Types

A data type, in programming, is a classification that specifies which type of value a variable has and what type of mathematical, relational or logical operations can be applied to it without causing an error. A string, for example, is a data type that is used to classify text and an integer is a data type used to classify whole numbers.

एक वर्गीकरण है जो Specify करता है कि एक Variable का किस प्रकार का Value है और बिना किसी Error के किस प्रकार के Mathematical, Relational या Logical Operations को लागू किया जा सकता है। उदाहरण के लिए एक स्ट्रिंग एक डेटा टाइप है जिसका उपयोग टेक्स्ट को Classify करने के लिए किया जाता है और एक Integer एक डेटा टाइप होता है जिसका उपयोग पूरें नंबर्स को Classify करने के लिए किया जाता है।

या

डेटा टाइप डेटा का एक Classification है जो compiler या interpreter को बताता है कि प्रोग्रामर डेटा का उपयोग कैसे करना चाहता है।

Types of Data

Data TypeUsed ForExample
StringAlphanumeric charactershello world, Alice, Bob123
IntegerWhole numbers7, 12, 999
Float (floating point)Number with a decimal point3.15, 9.06, 00.13
CharacterEncoding text numerically97 (in ASCII, 97 is a lower case ‘a’)
BooleanRepresenting logical valuesTRUE, FALSE

Number System

The number system is simply a system to represent or express numbers. There are various types of number systems and the most commonly used ones are decimal number system, binary number system, octal number system, and hexadecimal number system.

नंबर सिस्टम केवल नंबर्स को प्रेजेंट या एक्सप्रेस करने की एक सिस्टम है। विभिन्न प्रकार की नंबर सिस्टम हैं और सबसे अधिक उपयोग की जाने वाली डेसीमल नंबर सिस्टम, बाइनरी नंबर सिस्टम, ऑक्टल नंबर सिस्टम और हेक्साडेसिमल नंबर सिस्टम.

Decimal Number System

Decimal number system is a base 10 number system having 10 digits from 0 to 9. This means that any numerical quantity can be represented using these 10 digits. Decimal number system is also a positional value system. This means that the value of digits will depend on its position. Let us take an example to understand this.

डेसीमल नंबर सिस्टम का आधार (Base) 10 होता है जिसमें 0 से 9 तक 10 अंक होते हैं। इसका मतलब है कि इन 10 अंकों का उपयोग करके किसी भी संख्यात्मक मात्रा का प्रतिनिधित्व किया जा सकता है। डेसीमल नंबर सिस्टम भी एक स्थितीय मान प्रणाली है। इसका मतलब है कि अंकों का मान उसकी स्थिति पर निर्भर करेगा। इसे समझने के लिए आइए एक उदाहरण लेते हैं।

Say we have three numbers – 734, 971 and 207. The value of 7 in all three numbers is different−

In 734, value of 7 is 7 hundreds or 700 or 7 × 100 or 7 × 102
In 971, value of 7 is 7 tens or 70 or 7 × 10 or 7 × 101
In 207, value 0f 7 is 7 units or 7 or 7 × 1 or 7 × 100
The weightage of each position can be represented as follows −

105104103102101100

Binary Number System

The easiest way to vary instructions through electric signals is two-state system – on and off. On is represented as 1 and off as 0, though 0 is not actually no signal but signal at a lower voltage. The number system having just these two digits – 0 and 1 – is called binary number system.

इलेक्ट्रिक सिग्नल्स के माध्यम से इंस्ट्रक्शन को बदलने का सबसे आसान तरीका two-state system है – ऑन और ऑफ। ऑन को 1 के रूप में और ऑफ को 0 के रूप में दर्शाया जाता है, हालांकि 0 वास्तव में कोई सिग्नल नहीं है बल्कि कम वोल्टेज पर सिग्नल है। केवल इन दो अंकों – 0 और 1 – वाली नंबर सिस्टम को बाइनरी नंबर सिस्टम कहा जाता है.

Each binary digit is also called a bit. Binary number system is also positional value system, where each digit has a value expressed in powers of 2, as displayed here.

प्रत्येक बाइनरी अंक को बिट भी कहा जाता है। बाइनरी नंबर सिस्टम भी पोजिशनल वैल्यू सिस्टम है, जहां प्रत्येक अंक में 2 की शक्तियों में व्यक्त मूल्य होता है, जैसा कि यहां दिखाया गया है।

252423222120

In any binary number, the rightmost digit is called least significant bit (LSB) and leftmost digit is called most significant bit (MSB).

किसी भी बाइनरी संख्या में, सबसे दाहिने अंक को least significant bit (LSB) कहा जाता है और सबसे बाएं अंक को most significant bit (MSB) कहा जाता है।

1
MSB
1010
LSB

And decimal equivalent of this number is sum of product of each digit with its positional value.

और इस संख्या का दशमलव तुल्यांक प्रत्येक अंक के गुणनफल का योग उसके स्थितीय मान के साथ होता है।

110102 = 1×24 + 1×23 + 0×22 + 1×21 + 0×20

= 16 + 8 + 0 + 2 + 0

= 2610

Computer memory is measured in terms of how many bits it can store. Here is a chart for memory capacity conversion.

कंप्यूटर मेमोरी को इस बात से मापा जाता है कि वह कितने बिट्स को स्टोर कर सकता है। यहाँ मेमोरी कैपेसिटी कन्वर्शन के लिए एक चार्ट है।

1 byte (B) = 8 bits
1 Kilobytes (KB) = 1024 bytes
1 Megabyte (MB) = 1024 KB
1 Gigabyte (GB) = 1024 MB
1 Terabyte (TB) = 1024 GB
1 Exabyte (EB) = 1024 PB
1 Zettabyte = 1024 EB
1 Yottabyte (YB) = 1024 ZB

Octal Number System

Octal number system has eight digits – 0, 1, 2, 3, 4, 5, 6 and 7. Octal number system is also a positional value system with where each digit has its value expressed in powers of 8, as shown here −

ऑक्टल नंबर सिस्टम में आठ अंक होते हैं – 0, 1, 2, 3, 4, 5, 6 और 7. ऑक्टल नंबर सिस्टम भी एक पोजीशनल वैल्यू सिस्टम है जहां प्रत्येक अंक का अपना मान 8 की शक्तियों (पॉवर) में व्यक्त किया जाता है, जैसा कि यहां दिखाया गया है –

858483828180

Decimal equivalent of any octal number is sum of product of each digit with its positional value.

किसी भी ऑक्टल नंबर का दशमलव तुल्यांक प्रत्येक अंक के गुणनफल का योग उसके पोजीशनल वैल्यू के साथ होता है।

7268 = 7×82 + 2×81 + 6×80

= 448 + 16 + 6

= 47010

Hexadecimal Number System

Hexadecimal Number System has 16 symbols – 0 to 9 and A to F where A is equal to 10, B is equal to 11 and so on till F. Hexadecimal number system is also a positional value system with where each digit has its value expressed in powers of 16, as shown here −

हेक्साडेसिमल नंबर सिस्टम में 16 प्रतीक हैं – 0 से 9 और A से F जहां A 10 के बराबर है, B 11 के बराबर है और इसी तरह F तक। हेक्साडेसिमल नंबर सिस्टम भी एक स्थितीय मान प्रणाली (positional value system) है जहां प्रत्येक अंक का अपना Value 16 के पॉवर से व्यक्त किया जाता है, जैसा कि यहाँ दिखाया गया है –

165164163162161160

Decimal equivalent of any hexadecimal number is sum of product of each digit with its positional value.

किसी भी हेक्साडेसिमल नंबर का डेसीमल तुल्यांक, प्रत्येक अंक के गुणनफल का योग उसके स्थितीय मान (Positional Value) के साथ होता है।

27FB16 = 2×163 + 7×162 + 15×161 + 10×160

= 8192 + 1792 + 240 +10

= 1023410

Number System Relationship

HEXADECIMALDECIMALOCTALBINARY
0000000
1110001
2220010
3330011
4440100
5550101
6660110
7770111
88101000
99111001
A10121010
B11131011
C12141100
D13151101
E14161110
F15171111
What is Data

Fixed Point Representation

Fixed Point Representation is a method through which numbers are defined. Fixed number representation is more important because it is used to convert the data into binary data so that the computer can store and process the data. Fixed point representation is stored in memory so it represents a fractional number.

Fixed Point Representation एक ऐसी विधि (method) है जिसके माध्यम से numbers को परिभाषित किया जाता है। फिक्स्ड नंबर रिप्रजेंटेशन अधिक महत्वपूर्ण होता है क्योकि इसका उपयोग करके डेटा को बाइनरी डेटा में कन्वर्ट किया जाता है ताकि कंप्यूटर डेटा को स्टोर और प्रोसेस कर सके। फिक्स्ड पॉइंट रिप्रजेंटेशन मेमोरी में स्टोर होता है इसलिए यह fractional number को दर्शाता (represent) है।

Its representations:

Sign bit – Sign bit is used in fixed point number in binary. A positive number has a sign bit of 0 and a negative number has a 1.

Sign bit का इस्तेमाल बाइनरी में फिक्स्ड पॉइंट नंबर में किया जाता है। एक सकारात्मक संख्या (positive number) में साइन बिट 0 होता है और एक नकारात्मक संख्या (negative number) में 1 होता है।

Integral Part – It is a type of part whose length is different in different places. That is, different lengths at different places. The size of the integral part depends on the register. For example, it is 4 bits in an 8-bit register.

यह एक प्रकार का हिस्सा होता है जिसकी लम्बाई अलग-अलग जगहों पर अलग होती है। यानी अलग स्थान पर अलग लम्बाई। इंटीग्रल पार्ट का आकार रजिस्टर पर निर्भर होता है। उदहारण के लिए 8-बिट रजिस्टर में यह 4 bits का होता है।

Fractional part – This is also a type of part whose length is different. The size of the fractional part depends on the size of the register. For example, in an 8-bit register, the integral part will be of 3 bits.

यह भी एक प्रकार का हिस्सा है जिसकी लम्बाई अलग अलग होती है। fractional part का आकार रजिस्टर के आकार पर निर्भर होता है। उदहारण के लिए 8-बिट रजिस्टर में इंटीग्रल पार्ट 3 बिट्स का होगा।

Advantages of Fixed Point Representation

  1. This is a good method to represent an integer in a register. रजिस्टर में integer को रिप्रेजेंट करने के लिए यह एक अच्छी विधि है।
  2. Fixed point representations are easy to represent. फिक्स्ड पॉइंट रिप्रजेंटेशन को represent करना आसान है।
  3. It provides better experience to the user while developing the application. यह एप्लीकेशन को विकसित (develop) करते समय यूजर को बेहतर अनुभव (experience) प्रदान करता है।

Disadvantages of Fixed Point Representation

  1. It is difficult to represent fractional numbers in this. इसमें fractional number को रिप्रेजेंट करना मुश्किल होता है।
  2. In this, sometimes the user has to face confusion while representing the number. इसमें कभी कभी यूजर को संख्या को रिप्रेजेंट करते वक़्त confusion का सामना करना पड़ता है।

Difference Between Fixed Point & Floating Point Representation

Fixed Point RepresentationFloating Point Representation
It is used to represent the values in a limited range.
इसका उपयोग values को सिमित सीमा (limited range) में रिप्रेजेंट करने के लिए किया जाता है।
It is used to represent values in a wider range.
इसका उपयोग values को wider range में रिप्रेजेंट करने के लिए किया जाता है।
Its performance is good as compared to floating point.
फ्लोटिंग पॉइंट की तुलना में इसकी performance अच्छी है।
Its performance is less good.
इसकी performance कम अच्छी है।
It is more flexible.
यह अधिक लचीला (flexible) है।
It is less flexible.
यह कम लचीला (flexible) है।

Jobs Alert in Hindi

Leave a Reply

Your email address will not be published. Required fields are marked *