Computer AwarenessHardIBPS SO IT Officer

In a pipelined processor, an instruction needs the result of the instruction just ahead of it, but that result has not yet been written back. What kind of hazard is this?

  1. A. Structural hazard
  2. B. Control hazard
  3. C. Data hazard
  4. D. Cache-miss penalty

Correct answer: C. Data hazard

A data hazard arises when an instruction depends on a result still in the pipeline; forwarding or stalls fix it. Structural hazards are clashes over hardware, and control hazards come from branches.

हिंदी में

पाइपलाइन प्रोसेसर में, एक निर्देश को अपने ठीक आगे वाले निर्देश का परिणाम चाहिए, पर वह परिणाम अभी वापस लिखा नहीं गया है। यह किस प्रकार का हैज़र्ड है?

  1. A. स्ट्रक्चरल हैज़र्ड
  2. B. कंट्रोल हैज़र्ड
  3. C. डेटा हैज़र्ड
  4. D. कैश-मिस दंड

उत्तर: C. डेटा हैज़र्ड तब होता है जब कोई निर्देश ऐसे परिणाम पर निर्भर हो जो अभी पाइपलाइन में है; फ़ॉरवर्डिंग या स्टॉल इसे सुलझाते हैं। स्ट्रक्चरल हैज़र्ड हार्डवेयर पर टकराव हैं, और कंट्रोल हैज़र्ड ब्रांच से आते हैं।

More Computer Awareness questions

Exams that ask this topic