Computer AwarenessModerateSSC CGL · IBPS SO IT Officer
Rotary shaft encoders and Karnaugh-map labels use Gray code mainly because:
- A. It needs fewer bits than pure binary to cover the same range
- B. Successive values differ in exactly one bit, avoiding false readings
- C. Each decimal digit is coded separately, which eases display output
- 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.
हिंदी में
रोटरी शाफ़्ट एनकोडर और कार्नो-मैप के लेबल मुख्यतः ग्रे कोड का प्रयोग क्यों करते हैं?
- A. यह उसी रेंज को कवर करने के लिए शुद्ध बाइनरी से कम बिट लेता है
- B. क्रमागत मान ठीक एक बिट में भिन्न होते हैं, जिससे गलत पाठ्यांक से बचाव होता है
- C. प्रत्येक दशमलव अंक अलग से कोडित होता है, जिससे डिस्प्ले आउटपुट आसान होता है
- D. इसमें अंतर्निहित पैरिटी बिट होता है, इसलिए एकल-बिट त्रुटियाँ पकड़ी जाती हैं
उत्तर: B. आसन्न ग्रे कोड एक ही बिट में भिन्न होते हैं, इसलिए दो स्थितियों के बीच फँसा सेंसर बहुत गलत कोड नहीं दे सकता। यह बाइनरी जितने ही बिट प्रयोग करता है और इसमें पैरिटी बिट नहीं होता।
More Computer Awareness questions
- Which code is self-complementing, so that inverting every bit of a digit's code gives the code of its 9's complement?
- The hexadecimal number 3FA is written in binary without leading zeros. How many bits does it have?
- The full contents of a 64-bit register are written out once in hexadecimal and once in octal. At most how many digits does each form need?
- 725 − 248 is worked out by adding the 10's complement of 248 to 725 and dropping the end carry. What are the 10's complement and the final…
- What is (0.8)₁₆ + (0.4)₈, written in decimal?
- What is the sum of the largest value a 4-bit UNSIGNED number can hold and the smallest value a 4-bit TWO'S-COMPLEMENT number can hold?