पहले 10 प्रश्नों के उत्तर और हल यहीं खुले हैं; बाक़ी 19 के उत्तर और हल FliQi Question Bank app में।
भाषा
प्रश्न 1उत्तर + हल
यदि लक्ष्य ऑपरेंड का मान पता फ़ील्ड में ही रखा हो, तो उस एड्रेसिंग मोड को क्या कहते हैं?
If the value of the target operand is contained in the address field itself, the addressing mode is known as
Aइम्प्लाइड मोडImplied Mode
Bइमीडिएट मोडImmediate Mode
Cडायरेक्टDirect
Dरजिस्टर मोडRegister Mode
सही उत्तर / Answer: (B)
हल / Solution
Immediate मोड में निर्देश की पता फ़ील्ड में पता नहीं, ऑपरेंड का असली मान रखा जाता है। जैसे MOV R1, #25 में 25 ही ऑपरेंड है। इसलिए ऑपरेंड के लिए memory नहीं पढ़नी पड़ती। Direct मोड में उसी फ़ील्ड में ऑपरेंड का पता होता है, मान नहीं। Register मोड में ऑपरेंड किसी रजिस्टर में होता है। Implied मोड में ऑपरेंड निर्देश के अर्थ से ही तय होता है, कोई फ़ील्ड नहीं होती।
In immediate mode the address field of the instruction holds the actual value of the operand, not an address. In MOV R1, #25 the number 25 is the operand, so no memory read is needed to get it. In direct mode the same field holds the operand address, not the value. In register mode the operand is in a register. In implied mode the operand is fixed by the instruction itself, with no field.
प्रश्न 2उत्तर + हल
थ्री-एड्रेस निर्देश प्रारूप की तुलना में टू-एड्रेस प्रारूप का लाभ है……
Advantage of the two-address over the three-address instruction format is……
Aकम बिटless bits
Bकम प्रोग्रामless programs
Cबहुत अधिक बिटToo many bits
Dइनमें से कोई नहींNone
सही उत्तर / Answer: (A)
हल / Solution
Two-address निर्देश में तीन की जगह दो पता फ़ील्ड होती हैं। इसलिए हर निर्देश छोटा बनता है और उसे कम बिट चाहिए। जैसे ADD R1, R2 का अर्थ है R1 ← R1 + R2, यानी पहला ऑपरेंड ही destination बन जाता है। बदले में प्रोग्राम में निर्देश थोड़े बढ़ सकते हैं। 'बहुत अधिक बिट' three-address का नुक़सान है, two-address का लाभ नहीं। 'कम प्रोग्राम' का यहाँ कोई अर्थ नहीं बनता।
A two-address instruction has two address fields instead of three, so each instruction is shorter and needs fewer bits. In ADD R1, R2, meaning R1 ← R1 + R2, the first operand also serves as the destination. The cost is that a program may need a few more instructions. Too many bits is the drawback of the three-address format, not an advantage of two-address. The option 'less programs' means nothing here.
प्रश्न 3उत्तर + हल
किस एड्रेसिंग मोड में निर्देश CPU का एक रजिस्टर बताता है और उस रजिस्टर की सामग्री मेमोरी में ऑपरेंड का पता देती है?
In which addressing mode does the instruction specify a register in the CPU whose contents give the address of the operand in memory?
Aइम्प्लाइड मोडImplied Mode
Bइमीडिएट मोडImmediate Mode
Cरजिस्टर इनडायरेक्ट मोडRegister Indirect Mode
Dरजिस्टर मोडRegister Mode
सही उत्तर / Answer: (C)
हल / Solution
Register indirect मोड में निर्देश एक रजिस्टर का नाम देता है, पर उस रजिस्टर में डेटा नहीं, memory का पता रखा होता है। जैसे R1 में 500 है, तो ADD (R1) जगह 500 से ऑपरेंड लेगा। Register मोड में ऑपरेंड ख़ुद रजिस्टर के अंदर होता है, पता नहीं। Immediate में ऑपरेंड का मान निर्देश में होता है। Implied में ऑपरेंड निर्देश के अर्थ से तय होता है, कोई रजिस्टर नहीं बताया जाता।
In register indirect mode the instruction names a register, but that register holds a memory address instead of data. If R1 holds 500, then ADD (R1) takes its operand from location 500. In register mode the operand itself sits in the register, not an address. Immediate mode keeps the operand value in the instruction. Implied mode fixes the operand by the meaning of the instruction and names no register.
प्रश्न 4उत्तर + हल
किस एड्रेसिंग मोड में प्रभावी पता पाने के लिए प्रोग्राम काउंटर की सामग्री को निर्देश के पता भाग में जोड़ा जाता है?
In which addressing mode is the content of the program counter added to the address part of the instruction to obtain the effective address?
Aइनडायरेक्ट एड्रेसिंग मोडIndirect addressing mode
Bइंडेक्स एड्रेसिंग मोडIndex addressing mode
Cरिलेटिव एड्रेसिंग मोडRelative addressing mode
Dऑफ़सेट एड्रेसिंग मोडOffset addressing mode
सही उत्तर / Answer: (C)
हल / Solution
Relative मोड में प्रभावी पता EA = PC + पता भाग से बनता है। यहाँ पता भाग एक छोटा offset होता है, जो धनात्मक या ऋणात्मक हो सकता है। जैसे PC 1000 हो और offset 50 हो, तो EA 1050 होगा। Branch निर्देश इसी मोड में लिखे जाते हैं। Index मोड में PC नहीं, index रजिस्टर जुड़ता है। Indirect मोड में pointer से पता मिलता है। Offset मोड आम तौर पर base रजिस्टर में जोड़ता है।
In relative mode the effective address is EA = PC + address part. The address part is a small offset that can be positive or negative. If the PC is 1000 and the offset is 50, EA is 1050. Branch instructions are usually written this way. Index mode adds an index register, not the PC. Indirect mode gets the address through a pointer. Offset mode normally adds to a base register.
प्रश्न 5उत्तर + हल
जिस एड्रेसिंग मोड में ऑपरेंड मेमोरी में रहता है और उसका पता निर्देश की पता फ़ील्ड में दिया होता है, उसे _______ कहते हैं।
The addressing mode where the operand resides in memory and its address is given by the address field of the instruction is known as _______
AइमीडिएटImmediate
Bडायरेक्टDirect
Cडेफ़िनिटDefinite
DरिलेटिवRelative
सही उत्तर / Answer: (B)
हल / Solution
Direct मोड में निर्देश की पता फ़ील्ड में ऑपरेंड का असली memory पता लिखा होता है। जैसे LOAD 500 में CPU सीधे जगह 500 पर जाकर डेटा पढ़ लेता है। यानी EA वही है जो पता फ़ील्ड में है। Immediate मोड में पता नहीं, ऑपरेंड का मान ही निर्देश में होता है। Relative मोड में पता फ़ील्ड को PC में जोड़ना पड़ता है। Definite नाम का कोई मानक एड्रेसिंग मोड नहीं है।
In direct mode the address field of the instruction holds the real memory address of the operand. In LOAD 500 the CPU goes straight to location 500 and reads the data, so the effective address equals the address field. Immediate mode puts the operand value, not an address, in the instruction. Relative mode must add the address field to the PC. There is no standard mode called Definite.
प्रश्न 6उत्तर + हल
वन-एड्रेस निर्देश विधि में परिणाम _____ में रखे जाते हैं।
In the case of one-address instruction method, the results are stored in _____
Aरजिस्टरRegisters
Bएक्युमुलेटरAccumulators
Cपुश डाउन स्टैकPush down stack
DकैशCache
सही उत्तर / Answer: (B)
हल / Solution
One-address निर्देश में सिर्फ़ एक ऑपरेंड का पता दिया जाता है। दूसरा ऑपरेंड accumulator यानी AC में पहले से रहता है। काम पूरा होने पर नतीजा भी AC में ही रखा जाता है। जैसे ADD X का अर्थ है AC ← AC + M[X]। सामान्य रजिस्टर में नतीजा two या three-address निर्देश रखते हैं। Push down stack zero-address निर्देशों का ठिकाना है। Cache नतीजे की तय जगह नहीं है।
A one-address instruction gives the address of only one operand. The other operand is already in the accumulator, AC, and when the operation finishes the result is also kept in AC. For example, ADD X means AC ← AC + M[X]. Two and three-address instructions put results in general registers. The push down stack belongs to zero-address instructions, and cache is not a fixed place for results.
प्रश्न 7उत्तर + हल
जनरल रजिस्टर संगठन ……… CPU संगठन पर आधारित होता है।
General register organization is based on ……… CPU organization.
Aज़ीरो एड्रेसZero Address
Bवन एड्रेसOne Address
Cटू और थ्री एड्रेसTwo & Three Address
Dइनमें से कोई नहींNone of the mentioned
सही उत्तर / Answer: (C)
हल / Solution
General register संगठन में CPU के पास कई सामान्य प्रयोजन रजिस्टर होते हैं। इसलिए एक निर्देश में दो या तीन रजिस्टर का नाम लिखा जा सकता है, जैसे ADD R1, R2 या ADD R1, R2, R3। इसी कारण यह two और three address प्रारूप पर टिका है। Zero address stack संगठन का प्रारूप है। One address single accumulator संगठन का प्रारूप है, जहाँ एक ऑपरेंड हमेशा AC में रहता है।
In a general register organization the CPU has many general purpose registers. So one instruction can name two or three registers, as in ADD R1, R2 or ADD R1, R2, R3. That is why it rests on the two and three address formats. Zero address is the format of the stack organization. One address is the format of the single accumulator organization, where one operand always sits in AC.
प्रश्न 8उत्तर + हल
निर्देश प्रारूप (instruction format) में सबसे आम रूप से पाई जाने वाली फ़ील्ड होती हैं……
The most common fields found in an instruction format are……
Aमोड, ऑपकोड और ऑपरेंडmode, opcode & operand
Bऑपकोड और ऑपरेंडopcode & operand
Cमोड और ऑपकोडmode, opcode
Dइनमें से कोई नहींNone of the mentioned
सही उत्तर / Answer: (A)
हल / Solution
निर्देश प्रारूप में आम तौर पर तीन फ़ील्ड मिलती हैं। Opcode फ़ील्ड बताती है कि कौन सा काम करना है। Operand या address फ़ील्ड बताती है कि डेटा कहाँ है। Mode फ़ील्ड बताती है कि उस पते को किस तरह पढ़ना है, यानी कौन सा addressing mode लगेगा। 'ऑपकोड और ऑपरेंड' में mode फ़ील्ड छूट गई है और 'मोड और ऑपकोड' में ऑपरेंड। इसलिए तीनों फ़ील्ड वाला विकल्प ही पूरा है।
An instruction format usually has three fields. The opcode field tells which operation to perform. The operand or address field tells where the data is. The mode field tells how to read that address, that is, which addressing mode applies. The option 'opcode & operand' leaves out the mode field, and 'mode, opcode' leaves out the operand. So only the option with all three fields is complete.
प्रश्न 9उत्तर + हल
किस एड्रेसिंग मोड में रजिस्टर की सामग्री में एक स्थिर मान (constant) जोड़कर ऑपरेंड का प्रभावी पता बनाया जाता है?
In which addressing mode, the effective address of the operand is generated by adding a constant value to the contents of register?
Aएब्सोल्यूटAbsolute
Bइनडायरेक्टIndirect
CइमीडिएटImmediate
Dइंडेक्सIndex
सही उत्तर / Answer: (D)
हल / Solution
Index मोड में निर्देश एक स्थिर मान देता है और एक रजिस्टर बताता है। प्रभावी पता EA = constant + [R] से बनता है। जैसे रजिस्टर में 1000 और constant 50 हो, तो EA 1050 होगा। Array के तत्वों तक पहुँचने में यह बहुत काम आता है। Absolute यानी direct मोड में पूरा पता निर्देश में होता है। Indirect में pointer के सहारे पता मिलता है। Immediate में ऑपरेंड का मान ही निर्देश में होता है।
In index mode the instruction gives a constant and names a register, and the effective address is EA = constant + [R]. If the register holds 1000 and the constant is 50, EA is 1050. This is very handy for stepping through array elements. Absolute, or direct, mode puts the full address in the instruction. Indirect mode reaches the address through a pointer. Immediate mode holds the operand value itself.
प्रश्न 10उत्तर + हल
RISC का पूरा नाम क्या है?
RISC stands for -
AReduced Instruction Set Computer
BRisk Instruction Sequential Compilation
CRisk Instruction Source Compiler
Dइनमें से कोई नहींNone of these
सही उत्तर / Answer: (A)
हल / Solution
RISC का अर्थ Reduced Instruction Set Computer है। इसमें निर्देश कम और सरल होते हैं। ज़्यादातर निर्देश एक clock cycle में पूरे हो जाते हैं और सबकी लंबाई एक जैसी रहती है। Memory से सिर्फ़ LOAD और STORE बात करते हैं, बाक़ी काम registers पर होता है। इससे pipelining आसान हो जाती है। ARM इसका आम उदाहरण है। बाक़ी नामों में Risk शब्द गढ़ा हुआ है, इसलिए वे ग़लत हैं।
RISC stands for Reduced Instruction Set Computer. It uses a small set of simple instructions. Most of them finish in one clock cycle and all have the same length. Only LOAD and STORE touch memory, and the rest of the work happens in registers. This makes pipelining easy, and ARM is the common example. The other expansions use the made up word Risk, so they are wrong.
आगे के 19 प्रश्नों के उत्तर और हल app मेंFliQi Question Bank — अभ्यास, हल और आपकी प्रगति