Computer AwarenessModerateSSC CGL · IBPS SO IT Officer

Rotary shaft encoders and Karnaugh-map labels use Gray code mainly because:

  1. A. It needs fewer bits than pure binary to cover the same range
  2. B. Successive values differ in exactly one bit, avoiding false readings
  3. C. Each decimal digit is coded separately, which eases display output
  4. D. It carries a built-in parity bit, so single-bit errors are detected

Correct answer: B. Successive values differ in exactly one bit, avoiding false readings

Adjacent Gray codes differ in a single bit, so a sensor caught between two positions cannot produce a wildly wrong code. It uses as many bits as binary and has no parity bit.

हिंदी में

रोटरी शाफ़्ट एनकोडर और कार्नो-मैप के लेबल मुख्यतः ग्रे कोड का प्रयोग क्यों करते हैं?

  1. A. यह उसी रेंज को कवर करने के लिए शुद्ध बाइनरी से कम बिट लेता है
  2. B. क्रमागत मान ठीक एक बिट में भिन्न होते हैं, जिससे गलत पाठ्यांक से बचाव होता है
  3. C. प्रत्येक दशमलव अंक अलग से कोडित होता है, जिससे डिस्प्ले आउटपुट आसान होता है
  4. D. इसमें अंतर्निहित पैरिटी बिट होता है, इसलिए एकल-बिट त्रुटियाँ पकड़ी जाती हैं

उत्तर: B. आसन्न ग्रे कोड एक ही बिट में भिन्न होते हैं, इसलिए दो स्थितियों के बीच फँसा सेंसर बहुत गलत कोड नहीं दे सकता। यह बाइनरी जितने ही बिट प्रयोग करता है और इसमें पैरिटी बिट नहीं होता।

More Computer Awareness questions

Exams that ask this topic