Computer AwarenessHardIBPS SO IT Officer
A user program divides an integer by zero. What does the processor generate?
- A. A hardware interrupt from an external device controller
- B. A trap (exception) raised by the CPU itself and handled by the OS
- C. A system call deliberately requested by the program
- 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.
हिंदी में
एक उपयोगकर्ता प्रोग्राम किसी पूर्णांक को शून्य से भाग देता है। प्रोसेसर क्या उत्पन्न करता है?
- A. बाहरी डिवाइस कंट्रोलर से हार्डवेयर इंटरप्ट
- B. CPU द्वारा स्वयं उठाया गया ट्रैप (अपवाद), जिसे OS संभालता है
- C. प्रोग्राम द्वारा जानबूझकर माँगी गई सिस्टम कॉल
- D. पेज फ़ॉल्ट, जिसे डिस्क से पेज लोड करके सुलझाया जाता है
उत्तर: B. चल रहे निर्देश के भीतर की त्रुटि समकालिक ट्रैप उठाती है, और OS का हैंडलर कमान सँभालता है (अक्सर प्रोग्राम को समाप्त कर देता है)। इंटरप्ट बाहरी उपकरणों से आते हैं; सिस्टम कॉल जानबूझकर किया गया अनुरोध है।
More Computer Awareness questions
- Why do processors provide separate user mode and kernel (supervisor) mode?
- Which scheduler swaps partly executed processes out of memory to the disk, and later back in, to adjust the degree of multiprogramming?
- Defragmenting a hard disk drive usually speeds up file access because it:
- Match the OSI layer with the name of its data unit: 1. Transport 2. Network 3. Data link 4. Physical; a. Frame b. Bits c. Segment d. Packet
- The four-layer TCP/IP model has a single Application layer. Which OSI layers does it combine?
- A computer knows the IP address of another machine on the same LAN but needs that machine's MAC address to send it a frame. Which protocol…