ASCII क्या है? ASCII का पूरा नाम, Characters, Table और Examples


ASCII क्या है? ASCII का पूरा नाम, Characters, Table और Examples

ASCII Full Form ASCII क्या होता है ASCII Table in Hindi ASCII Value ASCII Code Standard ASCII
जब हम Computer में A, B, C, 1, 2, 3, @, #, $ जैसे Characters type करते हैं, तो Computer उन्हें हमारी तरह सीधे अक्षरों के रूप में नहीं समझता। Computer के अंदर हर Character को एक खास Number के रूप में represent किया जाता है। इसी काम के लिए Computer में कई Character Encoding Systems का उपयोग होता है, जिनमें ASCII सबसे पुराने और महत्वपूर्ण systems में से एक है।

अगर आप Computer, Programming, Coding या SSC, Banking, Railway और दूसरे competitive exams की तैयारी कर रहे हैं, तो ASCII के बारे में जानना काफी उपयोगी है। खासकर ASCII value, ASCII table, ASCII code और ASCII characters से जुड़े सवाल अक्सर Computer और Programming के basic topics में दिखाई देते हैं।

सीधे शब्दों में कहें तो ASCII एक standard है जो Characters को Numbers के रूप में represent करता है। अब इसे एक आसान उदाहरण से समझते हैं।

ASCII क्या है?

ASCII का पूरा नाम American Standard Code for Information Interchange है। यह एक Character Encoding Standard है, जिसका उपयोग English letters, numbers और कुछ special characters को numeric codes देने के लिए किया जाता है।

उदाहरण के लिए ASCII में:

  • A = 65
  • B = 66
  • C = 67
  • a = 97
  • b = 98
  • 0 = 48
  • Space = 32

इसका मतलब यह नहीं है कि Computer में A को केवल 65 के रूप में ही store किया जाता है। ASCII standard यह बताता है कि Character A का corresponding numeric code 65 है। Computer इन values को अंत में Binary यानी 0 और 1 के रूप में process करता है।

ASCII का Full Form क्या है?

ASCII = American Standard Code for Information Interchange

इस नाम को याद रखने का आसान तरीका है कि ASCII का उद्देश्य अलग-अलग Computer systems के बीच text information को एक standard तरीके से represent करना था।

ASCII की जरूरत क्यों पड़ी?

Computer के शुरुआती दौर में एक बड़ी समस्या थी—Computer को Text और Characters को represent करने के लिए एक common standard चाहिए था। अलग-अलग systems अगर अलग तरीके से Characters को code करते, तो एक system पर लिखा text दूसरे system पर सही तरीके से दिखाई नहीं देता।

ASCII ने common character codes का एक standard set उपलब्ध कराया। इससे Computer systems के बीच basic English text को exchange करना आसान हुआ।

उदाहरण के लिए अगर एक system में A को एक code दिया गया और दूसरे system में किसी अलग Character को वही code दिया गया, तो data exchange के समय confusion हो सकता था। ASCII ने इस तरह की समस्या को काफी हद तक कम किया।

ASCII कितने Bits का होता है?

Standard ASCII को सामान्यतः 7-bit character code कहा जाता है। 7 bits से कुल:

27 = 128

अलग-अलग codes बनाए जा सकते हैं। इसलिए standard ASCII में 0 से 127 तक कुल 128 codes होते हैं।

इन 128 codes में English letters, digits, punctuation marks, special characters और control characters शामिल हैं।

Standard ASCII और Extended ASCII में अंतर

आपने कई जगह Extended ASCII के बारे में भी पढ़ा होगा। Extended ASCII को आमतौर पर 8-bit values के साथ जोड़ा जाता है और इसमें 128 से 255 तक additional character values हो सकती हैं। लेकिन महत्वपूर्ण बात यह है कि Extended ASCII कोई एक universal standard नहीं है। अलग-अलग code pages में 128–255 की values अलग Characters के लिए इस्तेमाल हो सकती हैं।

इसलिए exam में यदि पूछा जाए कि Standard ASCII कितने Characters को represent करता है? तो उत्तर 128 होगा।

ASCII Table क्या है?

ASCII Table में Characters और उनकी corresponding ASCII values दी जाती हैं। नीचे कुछ सबसे उपयोगी ASCII values दी गई हैं:

Character ASCII Value Binary
Space320100000
0480110000
1490110001
9570111001
A651000001
B661000010
Z901011010
a971100001
b981100010
z1221111010

इस table को देखकर एक महत्वपूर्ण pattern भी समझ आता है। Capital A से Z की ASCII values 65 से 90 तक होती हैं, जबकि small a से z की values 97 से 122 तक होती हैं।

Capital और Small Letters की ASCII Value

ASCII से जुड़े questions में letters की values सबसे ज्यादा पूछी जाती हैं। इन्हें समझना बहुत आसान है।

  • A = 65
  • B = 66
  • C = 67
  • ...
  • Z = 90

Small letters के लिए:

  • a = 97
  • b = 98
  • c = 99
  • ...
  • z = 122

यहाँ एक useful trick है: Capital A = 65 और Small a = 97 याद कर लें। बाकी letters की values क्रम से आगे बढ़ती हैं।

उदाहरण: D की ASCII Value कैसे निकालें?

A की value 65 है। इसलिए:

A = 65
B = 66
C = 67
D = 68

इसलिए D की ASCII value 68 है।

Digits की ASCII Value

ASCII में numeric digit और उसकी actual numerical value एक ही चीज नहीं होती। यह point students अक्सर confuse कर देते हैं।

उदाहरण के लिए Character '5' की ASCII value 53 है। इसका मतलब यह नहीं है कि number 5 की value 53 है। यहां 53 केवल Character '5' का ASCII code है।

Digits की ASCII values इस तरह हैं:

  • '0' = 48
  • '1' = 49
  • '2' = 50
  • '3' = 51
  • ...
  • '9' = 57

ASCII में Control Characters क्या होते हैं?

ASCII के सभी codes printable Characters के लिए नहीं हैं। कुछ codes Control Characters के लिए reserved हैं। इनका उपयोग text के साथ control-related operations के लिए किया जाता था।

कुछ महत्वपूर्ण examples:

  • NULL = 0
  • Tab = 9
  • Line Feed (LF) = 10
  • Carriage Return (CR) = 13
  • Space = 32

पुराने communication और text-processing systems में ऐसे control codes का काफी महत्व था। Programming में भी newline और tab जैसी चीजों से इनका संबंध दिखाई देता है।

ASCII का Real-Life Example

मान लीजिए आपने Computer में CAT type किया। ASCII mapping के अनुसार:

C = 67
A = 65
T = 84

इसलिए Characters के corresponding ASCII codes होंगे:

CAT → 67 65 84

इसके बाद Computer इन numeric values को Binary form में process कर सकता है। यही basic idea हमें यह समझने में मदद करता है कि Computer text को internally किस तरह numeric data के रूप में handle करता है।

ASCII और Binary का क्या संबंध है?

Computer की basic language Binary है, जिसमें केवल 0 और 1 होते हैं। ASCII Character को एक numeric code देता है और उस code को Binary representation में बदला जा सकता है।

उदाहरण:

A = 65

65 का 7-bit Binary representation है:

1000001

इसलिए ASCII हमें Character और numeric representation के बीच एक standard mapping समझने में मदद करता है।

ASCII का उपयोग कहाँ होता है?

ASCII का historical और technical importance काफी बड़ा है। इसका concept आज भी Programming और Computer Science में दिखाई देता है।

  • Programming में Character comparison
  • Text processing
  • Data communication
  • Programming languages के basic operations
  • Legacy Computer systems
  • Text-based protocols और formats
  • Encoding और decoding concepts को समझने में

हालांकि modern applications में दुनिया की सभी languages के Characters के लिए ASCII पर्याप्त नहीं है। इसके लिए Unicode जैसी technologies अधिक suitable हैं।

ASCII और Unicode में अंतर

ASCII मुख्य रूप से basic English Characters और कुछ control/special characters के लिए बनाया गया था। लेकिन Internet और modern Software में Hindi, Chinese, Japanese, Arabic जैसी बहुत-सी languages का text इस्तेमाल होता है।

ऐसी स्थिति में केवल ASCII पर्याप्त नहीं है। Unicode बहुत बड़े range के Characters को represent करने की सुविधा देता है।

Feature ASCII Unicode
Standard ASCII Codes128बहुत बड़ा Character set
मुख्य उद्देश्यBasic English textदुनिया की अनेक languages के Characters
Standard ASCII7-bitअलग-अलग encoding forms उपलब्ध
Hindi Supportनहींहाँ

Programming में ASCII का Practical Example

कई Programming languages में Character को उसकी numeric code value से compare या convert किया जा सकता है। उदाहरण के लिए Python में:

print(ord('A'))
print(ord('a'))
print(ord('0'))

इसका output होगा:

65
97
48

इसी तरह numeric ASCII value को Character में बदलने के लिए Python में chr() function इस्तेमाल किया जा सकता है:

print(chr(65))
print(chr(97))

Output:

A
a

यह छोटा सा experiment ASCII और Character encoding के concept को practically समझने का अच्छा तरीका है।

ASCII से जुड़े Common Mistakes

1. ASCII को केवल Binary समझना

ASCII Binary language नहीं है। यह एक Character Encoding Standard है, जो Characters को numeric codes assign करता है। इन codes को Binary में represent किया जा सकता है।

2. '5' और 5 को एक समझना

Character '5' की ASCII value 53 है। लेकिन numerical value 5 अलग concept है। Programming में quotes का यह अंतर महत्वपूर्ण होता है।

3. Capital और Small letters की value समान मानना

'A' = 65, जबकि 'a' = 97। दोनों अलग Characters हैं और उनकी ASCII values भी अलग हैं।

4. Extended ASCII को universal मानना

128 से 255 तक के codes के लिए अलग-अलग historical code pages में अलग mappings मिल सकती हैं। इसलिए exam में Standard ASCII = 128 codes याद रखना ज्यादा सुरक्षित है।

ASCII के Important Key Points

  • ASCII का Full Form American Standard Code for Information Interchange है।
  • Standard ASCII एक 7-bit encoding standard है।
  • Standard ASCII में कुल 128 codes होते हैं।
  • ASCII values की range 0 से 127 होती है।
  • Capital A की ASCII value 65 है।
  • Capital Z की ASCII value 90 है।
  • Small a की ASCII value 97 है।
  • Small z की ASCII value 122 है।
  • Character 0 की ASCII value 48 है।
  • Space की ASCII value 32 है।
  • ASCII और Unicode एक ही चीज नहीं हैं।

ASCII पर Interview Questions

  1. ASCII का Full Form क्या है?
    American Standard Code for Information Interchange.
  2. Standard ASCII कितने bits का है?
    7-bit.
  3. Standard ASCII में कितने codes होते हैं?
    128.
  4. A की ASCII value क्या है?
    65.
  5. a की ASCII value क्या है?
    97.
  6. 0 Character की ASCII value क्या है?
    48.
  7. ASCII की range क्या है?
    0 से 127.

ASCII पर MCQ Questions

Question 1

Standard ASCII कितने Characters को represent करता है?

  1. 64
  2. 128
  3. 256
  4. 512

Answer: B) 128

Question 2

Capital 'A' की ASCII value क्या है?

  1. 63
  2. 64
  3. 65
  4. 66

Answer: C) 65

Question 3

Small 'a' की ASCII value क्या है?

  1. 95
  2. 96
  3. 97
  4. 98

Answer: C) 97

Question 4

Standard ASCII कितने bits का होता है?

  1. 4-bit
  2. 7-bit
  3. 8-bit
  4. 16-bit

Answer: B) 7-bit

Question 5

Character '0' की ASCII value क्या है?

  1. 0
  2. 32
  3. 48
  4. 65

Answer: C) 48

Practical Exercise: खुद ASCII Values निकालकर देखें

अब बिना table देखे इन Characters की ASCII values निकालने की कोशिश करें:

  1. B
  2. F
  3. M
  4. c
  5. z
  6. 3
  7. 7

Answers: B = 66, F = 70, M = 77, c = 99, z = 122, 3 = 51 और 7 = 55.

Quick Quiz

अगर A = 65 है, तो H की ASCII value कितनी होगी?

A से H तक 7 positions का difference है। इसलिए:

65 + 7 = 72

अर्थात H = 72। ऐसे questions को calculation के बिना भी जल्दी solve किया जा सकता है, बस A = 65 और a = 97 याद होना चाहिए।

ASCII के Notes PDF के लिए क्या याद रखें?

अगर आप exam preparation के लिए ASCII के short notes बना रहे हैं, तो इन values को अपनी notebook या PDF Notes में जरूर रखें:

ASCII = American Standard Code for Information Interchange
Standard ASCII = 7-bit
Total Codes = 128
Range = 0–127
A = 65
Z = 90
a = 97
z = 122
0 = 48
9 = 57
Space = 32

ASCII को एक लाइन में समझें

ASCII एक Character Encoding Standard है, जो Computer में basic Characters को numeric codes के जरिए represent करने का standard तरीका प्रदान करता है।

FAQs: ASCII से जुड़े सवाल

1. ASCII क्या है?

ASCII यानी American Standard Code for Information Interchange एक Character Encoding Standard है। इसमें basic English letters, digits, punctuation और control characters के लिए numeric codes निर्धारित किए गए हैं। Standard ASCII में 0 से 127 तक कुल 128 codes होते हैं।

2. ASCII का Full Form क्या है?

ASCII का Full Form American Standard Code for Information Interchange है। यह Computer Science में इस्तेमाल होने वाले पुराने और महत्वपूर्ण Character Encoding standards में से एक है।

3. A की ASCII value कितनी होती है?

Capital letter A की ASCII value 65 होती है। इसके बाद B = 66, C = 67 और इसी क्रम में Z = 90 होता है।

4. Small a की ASCII value कितनी है?

Small letter a की ASCII value 97 है। Small letters a से z की ASCII values 97 से 122 तक होती हैं।

5. क्या ASCII 8-bit होता है?

Standard ASCII को 7-bit Character Encoding माना जाता है और इसमें 128 codes होते हैं। 8-bit systems से जुड़ी 128–255 वाली values को अक्सर Extended ASCII कहा जाता है, लेकिन उसकी mapping universal नहीं है।

6. क्या Hindi के लिए ASCII का उपयोग किया जाता है?

Standard ASCII में Hindi Characters के लिए codes नहीं हैं। Hindi जैसे Characters को represent करने के लिए Unicode और उसकी अलग-अलग encodings का उपयोग किया जाता है।

7. ASCII और Unicode में क्या अंतर है?

ASCII basic English Characters और कुछ control/special characters तक सीमित है, जबकि Unicode बहुत बड़ी संख्या में languages और symbols के Characters को represent करने के लिए बनाया गया है। इसलिए modern multilingual applications में Unicode ज्यादा उपयोगी है।

8. Programming में ASCII क्यों महत्वपूर्ण है?

Programming में Characters को compare, sort, convert और process करने के दौरान उनके numeric code concepts उपयोगी होते हैं। कई programming languages में Character की numeric representation प्राप्त करने के लिए built-in functions भी उपलब्ध होते हैं।

निष्कर्ष

ASCII को समझना मुश्किल नहीं है। बस इतना याद रखें कि Computer के लिए Characters को एक standard numeric code दिया जा सकता है और ASCII इसी mapping का एक महत्वपूर्ण standard है। Standard ASCII 7-bit है और इसमें 0 से 127 तक कुल 128 codes होते हैं।

Exam की तैयारी के लिए A = 65, a = 97, 0 = 48 और Space = 32 जैसी important values जरूर याद रखें। साथ ही यह confusion न करें कि Character '5' और number 5 एक ही चीज हैं।

अगर ASCII का यह concept clear हो गया है, तो अगला step Unicode, UTF-8 और Character Encoding को समझना होगा। इन्हें समझने के बाद यह और साफ हो जाएगा कि Computer Hindi, English, Emoji और दुनिया की दूसरी languages के text को किस तरह handle करता है।


टिप्पणियाँ