Computer AwarenessHardIBPS SO IT Officer

A user program divides an integer by zero. What does the processor generate?

  1. A. A hardware interrupt from an external device controller
  2. B. A trap (exception) raised by the CPU itself and handled by the OS
  3. C. A system call deliberately requested by the program
  4. D. A page fault serviced by loading a page from disk

Correct answer: B. A trap (exception) raised by the CPU itself and handled by the OS

An error inside the running instruction raises a synchronous trap, and the OS's handler takes over (often ending the program). Interrupts come from external devices; a system call is a deliberate request.

हिंदी में

एक उपयोगकर्ता प्रोग्राम किसी पूर्णांक को शून्य से भाग देता है। प्रोसेसर क्या उत्पन्न करता है?

  1. A. बाहरी डिवाइस कंट्रोलर से हार्डवेयर इंटरप्ट
  2. B. CPU द्वारा स्वयं उठाया गया ट्रैप (अपवाद), जिसे OS संभालता है
  3. C. प्रोग्राम द्वारा जानबूझकर माँगी गई सिस्टम कॉल
  4. D. पेज फ़ॉल्ट, जिसे डिस्क से पेज लोड करके सुलझाया जाता है

उत्तर: B. चल रहे निर्देश के भीतर की त्रुटि समकालिक ट्रैप उठाती है, और OS का हैंडलर कमान सँभालता है (अक्सर प्रोग्राम को समाप्त कर देता है)। इंटरप्ट बाहरी उपकरणों से आते हैं; सिस्टम कॉल जानबूझकर किया गया अनुरोध है।

More Computer Awareness questions

Exams that ask this topic