पहले 10 प्रश्नों के उत्तर और हल यहीं खुले हैं; बाक़ी 20 के उत्तर और हल FliQi Question Bank app में।
भाषा
प्रश्न 1उत्तर + हल
____________ एड्रेसिंग तकनीक में मेमोरी और I/O डिवाइस के लिए अलग-अलग एड्रेस स्पेस इस्तेमाल होता है:
In ____________ addressing technique, separate address spaces are used for memory and I/O devices:
Aमेमोरी-मैप्ड I/OMemory-mapped I/O
Bआइसोलेटेड I/OIsolated I/O
Cमेमोरी-मैप्ड I/O और आइसोलेटेड I/O दोनोंBoth memory-mapped I/O and isolated I/O
Dइनमें से कोई नहींNone of these
सही उत्तर / Answer: (B)
हल / Solution
आइसोलेटेड I/O में I/O डिवाइस का एड्रेस स्पेस मेमोरी से अलग रहता है। एक ही संख्या वाला पता मेमोरी का भी हो सकता है और पोर्ट का भी। फ़र्क़ निर्देश से पता चलता है, जैसे 8085 में IN/OUT। इसलिए उत्तर विकल्प 2 है। मेमोरी-मैप्ड I/O में इसका उलटा होता है, दोनों एक ही एड्रेस स्पेस बाँटते हैं। इसलिए विकल्प 1 और 3 ग़लत हैं।
In isolated I/O, the address space of I/O devices is kept separate from memory. The same number can be both a memory address and a port address; the instruction type, such as IN or OUT in the 8085, tells them apart. So option 2 is correct. Memory-mapped I/O is the opposite, where both share one address space, so options 1 and 3 are wrong.
प्रश्न 2उत्तर + हल
मेमोरी और I/O डिवाइस में एड्रेसिंग कितने तरीक़ों से की जा सकती है?
In how many ways can addressing be done in memory and I/O devices?
A1
B2
C3
Dकोई नहींNone
सही उत्तर / Answer: (B)
हल / Solution
मेमोरी और I/O डिवाइस को पता देने के दो तरीक़े हैं। पहला, मेमोरी-मैप्ड I/O, जिसमें दोनों एक ही एड्रेस स्पेस बाँटते हैं। दूसरा, आइसोलेटेड (I/O-मैप्ड) I/O, जिसमें I/O का अलग एड्रेस स्पेस होता है और IN/OUT जैसे अलग निर्देश लगते हैं। इसलिए संख्या 2 है, यानी विकल्प 2। एक गिनने पर कोई तरीक़ा छूटता है, और तीसरा मानक तरीक़ा है ही नहीं।
There are two ways to assign addresses to memory and I/O devices. The first is memory-mapped I/O, where both share one address space. The second is isolated (I/O-mapped) I/O, where I/O has its own address space and needs separate instructions such as IN and OUT. So the count is 2, which is option 2. Counting 1 leaves a method out, and there is no standard third method.
प्रश्न 3उत्तर + हल
जब CPU किसी सबरूटीन को बुलाता है, तो वह ये काम करता है:
When the CPU invokes a subroutine, it performs the following functions:
Aअपडेट किए गए PC का मान (रिटर्न एड्रेस) स्टैक पर पुश करता हैPushes updated PC content (return address) on stack
BPC में सबरूटीन का शुरुआती पता लोड करता हैLoads PC with starting address of subroutine
CPC में ALU का शुरुआती पता लोड करता हैLoads PC with starting address of ALU
Dरिटर्न एड्रेस स्टैक पर पुश करता है और सबरूटीन का पता PC में लोड करता है — दोनोंBoth pushes the return address on the stack and loads the PC with the subroutine address
सही उत्तर / Answer: (D)
हल / Solution
सबरूटीन कॉल में CPU दो काम करता है। पहला, PC में रखा अगला पता, यानी रिटर्न एड्रेस, स्टैक पर रखता है, ताकि लौटकर वहीं से काम शुरू हो। दूसरा, PC में सबरूटीन का शुरुआती पता डालता है, ताकि अमल वहीं कूद जाए। दोनों ज़रूरी हैं, इसलिए उत्तर विकल्प 4 है। ALU का कोई 'शुरुआती पता' नहीं होता, इसलिए विकल्प 3 बेमानी है।
A subroutine call makes the CPU do two things. First, it pushes the next address held in the PC, the return address, onto the stack, so it can come back to the right place. Second, it loads the PC with the subroutine's starting address, so execution jumps there. Both are needed, so option 4 is correct. The ALU has no starting address, so option 3 makes no sense.
प्रश्न 4उत्तर + हल
IOP द्वारा मेमोरी से पढ़े जाने वाले निर्देश ____________ कहलाते हैं:
Instructions that are read from memory by an IOP are called ____________:
AकमांडCommands
Bब्लॉक डायग्रामBlock diagram
Cइंटरप्टInterrupt
Dइनमें से कोई नहींNone of these
सही उत्तर / Answer: (A)
हल / Solution
IOP अपना प्रोग्राम ख़ुद मेमोरी से पढ़कर चलाता है। उसके निर्देशों को CPU के निर्देशों से अलग पहचानने के लिए कमांड कहा जाता है। CPU बस IOP को शुरू करता है, फिर IOP इन कमांड के सहारे ट्रांसफर करता है। इसलिए उत्तर विकल्प 1 है। ब्लॉक डायग्राम तो चित्र है, निर्देश नहीं। इंटरप्ट एक संकेत है जो काम पूरा होने पर भेजा जाता है।
An IOP fetches and runs its own program from memory. Its instructions are called commands, to tell them apart from the instructions the CPU executes. The CPU only starts the IOP, and the IOP then performs the transfer using these commands. So option 1 is correct. A block diagram is a drawing, not an instruction. An interrupt is a signal sent when the job is done.
प्रश्न 5उत्तर + हल
किसे I/O डिवाइस से संपर्क करने वाले, प्रत्यक्ष मेमोरी एक्सेस क्षमता वाले प्रोसेसर के रूप में वर्गीकृत किया जा सकता है?
Which may be classified as a processor with direct memory access capability that communicates with I/O devices:
ADCP
BIOP
CDCP और IOP दोनोंBoth DCP and IOP
Dकोई नहींNone
सही उत्तर / Answer: (B)
हल / Solution
Mano की किताब में IOP यानी इनपुट-आउटपुट प्रोसेसर की परिभाषा यही है: ऐसा प्रोसेसर जिसमें DMA क्षमता हो और जो I/O डिवाइस से संपर्क करे। इसलिए उत्तर विकल्प 2 है। DCP यानी डेटा कम्युनिकेशन प्रोसेसर एक ख़ास तरह का I/O प्रोसेसर है। उसका काम दूर के टर्मिनलों और संचार लाइनों से डेटा जुटाना और बाँटना है। इसलिए सामान्य परिभाषा IOP की है, DCP की नहीं।
In Mano's text, this is the definition of the IOP, the input-output processor: a processor with direct memory access capability that communicates with I/O devices. So option 2 is correct. A DCP, or data communication processor, is a special kind of I/O processor built to collect and distribute data over communication lines to remote terminals. The general definition therefore belongs to the IOP, not the DCP.
प्रश्न 6उत्तर + हल
VAD का पूरा रूप है:
VAD stands for:
Aवेक्टर एड्रेसVector address
Bसिंबल एड्रेसSymbol address
Cलिंक एड्रेसLink address
Dइनमें से कोई नहींNone of these
सही उत्तर / Answer: (A)
हल / Solution
डेज़ी चेन और वेक्टर्ड इंटरप्ट में VAD का अर्थ वेक्टर एड्रेस है। इंटरप्ट-एक्नॉलेज मिलने पर डिवाइस अपना VAD डेटा बस पर रखता है। प्रोसेसर इसी पते से उस डिवाइस के सर्विस रूटीन तक पहुँचता है। इसलिए उत्तर विकल्प 1 है। सिंबल एड्रेस और लिंक एड्रेस असेंबलर या लिंकर से जुड़े शब्द हैं, इंटरप्ट से नहीं।
In daisy-chain and vectored interrupts, VAD means vector address. When a device receives the interrupt acknowledge, it places its VAD on the data bus. The processor uses this address to reach that device's service routine. So option 1 is correct. Symbol address and link address are terms linked with assemblers and linkers, not with interrupt handling, so options 2 and 3 are wrong.
प्रश्न 7उत्तर + हल
यूज़र प्रोग्राम I/O डिवाइस से किसके माध्यम से संपर्क करते हैं?
User programs interact with I/O devices through:
Aऑपरेटिंग सिस्टमOperating system
Bहार्डवेयरHardware
CCPU
Dमाइक्रोप्रोसेसरMicroprocessor
सही उत्तर / Answer: (A)
हल / Solution
यूज़र प्रोग्राम सीधे डिवाइस के रजिस्टर नहीं छूते। वे ऑपरेटिंग सिस्टम से सिस्टम कॉल के ज़रिए सेवा माँगते हैं। OS अपने डिवाइस ड्राइवर से असली I/O करता है, डिवाइस साझा करता है और सुरक्षा बनाए रखता है। इसलिए उत्तर विकल्प 1 है। CPU और माइक्रोप्रोसेसर तो निर्देश चलाने वाले हैं, बीच की परत नहीं। हार्डवेयर ख़ुद वह चीज़ है जिस तक पहुँचना है।
User programs do not touch device registers directly. They ask the operating system for service through system calls. The OS uses its device drivers to do the real I/O, shares devices among programs and keeps them protected. So option 1 is correct. The CPU and microprocessor simply execute instructions; they are not the middle layer. The hardware is the very thing being reached, not the path to it.
प्रश्न 8उत्तर + हल
एक्सेप्शन (अपवाद) के प्रकार हैं:
Types of exceptions are:
Aइंटरप्ट अनुरोधInterrupt request
Bट्रैपTraps
Cसिस्टम कॉलSystem calls
Dये सभीAll of these
सही उत्तर / Answer: (D)
हल / Solution
कंप्यूटर संगठन में एक्सेप्शन उस हर घटना को कहते हैं जो चलते प्रोग्राम को रोककर प्रोसेसर को किसी ख़ास रूटीन पर भेज दे। I/O डिवाइस का इंटरप्ट अनुरोध ऐसी ही घटना है। ट्रैप किसी त्रुटि या डिबगिंग से पैदा होता है। सिस्टम कॉल में प्रोग्राम ख़ुद OS की सेवा माँगता है। तीनों इस परिभाषा में आते हैं, इसलिए उत्तर विकल्प 4 है।
In computer organization, an exception is any event that interrupts the running program and sends the processor to a special routine. An interrupt request from an I/O device is one such event. A trap comes from an error or from debugging. A system call is the program itself asking the OS for a service. All three fit this definition, so option 4 is correct, and picking one alone is incomplete.
प्रश्न 9उत्तर + हल
_________ एक समर्पित प्रोसेसर है जो इंटरफेस यूनिट और DMA को एक इकाई में जोड़ता है:
_________ is a dedicated processor that combines interface unit and DMA as one unit:
Aइनपुट-आउटपुट प्रोसेसरInput-Output Processor
Bकेवल इनपुट प्रोसेसरOnly input processor
Cकेवल आउटपुट प्रोसेसरOnly output processor
Dइनमें से कोई नहींNone of these
सही उत्तर / Answer: (A)
हल / Solution
इनपुट-आउटपुट प्रोसेसर (IOP) एक अलग प्रोसेसर होता है, जो I/O का काम CPU से ले लेता है। उसमें डिवाइस से बात करने वाला इंटरफेस भी होता है और मेमोरी तक सीधी पहुँच, यानी DMA, भी। इस तरह दोनों एक ही इकाई में आ जाते हैं। इसलिए उत्तर विकल्प 1 है। IOP इनपुट और आउटपुट दोनों सँभालता है, इसलिए 'केवल इनपुट' या 'केवल आउटपुट' ग़लत हैं।
An input-output processor (IOP) is a separate processor that takes I/O work off the CPU. It contains the interface logic that talks to devices and also has direct memory access, so both functions sit in one unit. So option 1 is correct. An IOP handles both input and output, so calling it an input-only or output-only processor is wrong, and option 4 does not apply.
प्रश्न 10उत्तर + हल
____________ ऑपरेशन उन I/O निर्देशों का नतीजा होते हैं जो कंप्यूटर प्रोग्राम में लिखे होते हैं:
____________ operations are the result of I/O instructions written in the computer program:
Aप्रोग्राम्ड I/OProgrammed I/O
BDMA
CहैंडशेकिंगHandshaking
Dस्ट्रोबStrobe
सही उत्तर / Answer: (A)
हल / Solution
प्रोग्राम्ड I/O में हर ट्रांसफर प्रोग्राम में लिखे I/O निर्देशों से होता है। प्रोसेसर उन निर्देशों को चलाकर स्टेटस देखता है और डेटा ले जाता है। इसलिए ये ऑपरेशन सीधे प्रोग्राम का नतीजा हैं, और उत्तर विकल्प 1 है। DMA में ट्रांसफर के दौरान प्रोसेसर निर्देश नहीं चलाता, कंट्रोलर काम करता है। हैंडशेकिंग और स्ट्रोब तो असिंक्रोनस तालमेल के संकेत हैं।
In programmed I/O, every transfer is carried out by I/O instructions written in the program. The processor runs these instructions to check the status and move the data. So these operations come directly from the program, and option 1 is correct. In DMA, the controller does the transfer while the processor runs no I/O instructions. Handshaking and strobe are only timing signals for asynchronous transfer.
आगे के 20 प्रश्नों के उत्तर और हल app मेंFliQi Question Bank — अभ्यास, हल और आपकी प्रगति
Aकोई पक्का नहीं कि स्रोत के डेटा हटाने से पहले गंतव्य ने उसे पा लियाNo surety that destination received data before source removes it
Bगंतव्य इकाई बिना जाने ट्रांसफर लेती है कि स्रोत ने डेटा बस पर रखा या नहींDestination unit transfers without knowing whether source placed data on data bus
Cउपरोक्त दोनों कथन सही हैंBoth of the above statements are true