पहले 10 प्रश्नों के उत्तर और हल यहीं खुले हैं; बाक़ी 20 के उत्तर और हल FliQi Question Bank app में।
भाषा
प्रश्न 1उत्तर + हल
कोहेज़न मापक और कपलिंग मापक (cohesion and coupling metrics) डिज़ाइन के किस स्तर के मापक हैं?
Cohesion metrics and coupling metrics are metrics in which level of design?
Aयूज़र इंटरफ़ेस डिज़ाइनUser interface design
Bपैटर्न आधारित डिज़ाइनPattern-based design
Cआर्किटेक्चरल डिज़ाइनArchitectural design
Dकंपोनेंट-लेवल डिज़ाइनComponent-level design
सही उत्तर / Answer: (D)
हल / Solution
कोहेज़न बताता है कि एक कंपोनेंट के भीतर के काम आपस में कितने जुड़े हैं, और कपलिंग बताता है कि वह कंपोनेंट दूसरों पर कितना टिका है। दोनों की नाप कंपोनेंट के स्तर पर ही बनती है, इसलिए ये कंपोनेंट-लेवल डिज़ाइन के मापक हैं। आर्किटेक्चरल डिज़ाइन के मापक पूरे ढाँचे की बात करते हैं, और यूज़र इंटरफ़ेस डिज़ाइन के मापक परदे की बनावट तथा इस्तेमाल की आसानी नापते हैं।
Cohesion tells how closely the work inside one component hangs together, and coupling tells how much that component depends on others. Both measurements are taken at the level of a component, so they are component level design metrics. Architectural design metrics speak about the whole structure, while user interface design metrics measure the layout of the screen and how easy the interface is to use.
प्रश्न 2उत्तर + हल
कौन-सा डिज़ाइन लागू करने वाले हिस्से से जुड़ा है, जिसमें पिछले दो डिज़ाइनों का सिस्टम और उसके उप-सिस्टम दिखाए जाते हैं?
Which design deals with the implementation part in which it shows a system and its sub-systems in the previous two designs?
Aआर्किटेक्चरल डिज़ाइनArchitectural design
Bहाई-लेवल डिज़ाइनHigh-level design
Cविस्तृत डिज़ाइन (Detailed design)Detailed design
DA और B दोनोंBoth A & B
सही उत्तर / Answer: (C)
हल / Solution
डिज़ाइन तीन स्तरों पर चलता है। आर्किटेक्चरल डिज़ाइन पूरे सिस्टम का ढाँचा खींचता है। हाई-लेवल डिज़ाइन उसी ढाँचे को उप-सिस्टम और मॉड्यूलों में बाँटता है। विस्तृत डिज़ाइन (detailed design) सबसे नीचे आता है और लागू करने की बात करता है, यानी हर मॉड्यूल के भीतर का तर्क, डेटा की बनावट और इंटरफ़ेस। पिछले दोनों डिज़ाइनों का सारा ब्योरा यहीं खुलकर सामने आता है।
Design runs at three levels. Architectural design draws the frame of the whole system. High level design breaks that frame into subsystems and modules. Detailed design comes last and deals with the implementation part, that is the logic inside each module, the data structures and the interfaces. All the detail of the previous two designs is opened out here, so detailed design is the answer.
प्रश्न 3उत्तर + हल
मॉड्युलराइज़ेशन (modularization) की कमियाँ बताइए।
Give the disadvantages of modularization.
Aछोटे हिस्सों का रखरखाव आसान होता हैSmaller components are easier to maintain
Bप्रोग्राम को काम के हिसाब से बाँटा जा सकता हैProgram can be divided based on functional aspects
Cप्रोग्राम में अमूर्तन का मनचाहा स्तर लाया जा सकता हैDesired level of abstraction can be brought in the program
Dइनमें से कोई नहींNone of the above
सही उत्तर / Answer: (D)
हल / Solution
प्रश्न कमियाँ पूछ रहा है, पर तीनों विकल्प मॉड्युलराइज़ेशन के फ़ायदे गिना रहे हैं। छोटे हिस्सों का रखरखाव आसान रहता है, प्रोग्राम काम के हिसाब से बाँटा जा सकता है, और अमूर्तन (abstraction) का मनचाहा स्तर भी लाया जा सकता है। इसलिए इनमें कोई कमी नहीं है और उत्तर इनमें से कोई नहीं बनता। असली कमियाँ दूसरी हैं, जैसे मॉड्यूलों के बीच बुलावे का अतिरिक्त ख़र्च।
The question asks for disadvantages, but all three choices list advantages of modularization. Smaller components are easier to maintain, the program can be split along functional lines, and the desired level of abstraction can be brought into the program. None of them is a drawback, so none of the above is the answer. The real drawbacks lie elsewhere, for instance the overhead of calls between modules.
प्रश्न 4उत्तर + हल
सिस्टम डिज़ाइन में हम क्या करते हैं?
In system design, we do following ?
Aसॉफ़्टवेयर के बाद हार्डवेयर का डिज़ाइनHardware design after software
Bहार्डवेयर के बाद सॉफ़्टवेयर का डिज़ाइनSoftware design after hardware
Cहार्डवेयर और सॉफ़्टवेयर का डिज़ाइन साथ-साथParallel hardware and software design
Dहार्डवेयर डिज़ाइन की ज़रूरत ही नहींNo hardware design needed
सही उत्तर / Answer: (C)
हल / Solution
सिस्टम डिज़ाइन में हार्डवेयर और सॉफ़्टवेयर, दोनों का डिज़ाइन साथ-साथ चलता है। वजह यह है कि दोनों के फ़ैसले एक-दूसरे पर टिके होते हैं। कितनी मेमोरी और कितनी रफ़्तार चाहिए, यह सॉफ़्टवेयर की माँग से तय होता है, और सॉफ़्टवेयर की बनावट उपलब्ध हार्डवेयर से। एक को पूरा करके दूसरे पर जाने से बाद में काम दोबारा करना पड़ता है, और हार्डवेयर डिज़ाइन छोड़ देना तो ठीक ही नहीं।
In system design the hardware and the software are designed side by side. The reason is that the two sets of decisions lean on each other. How much memory and speed are needed follows from the demands of the software, while the structure of the software is shaped by the hardware that is available. Finishing one completely before starting the other causes rework later, and leaving hardware design out is not an option.
प्रश्न 5उत्तर + हल
विस्तृत डिज़ाइन (detailed design) किसके ज़रिए व्यक्त किया जाता है?
Detailed design is expressed by ?
ACSPEC
BPSPEC
CMINI SPEC
DCode SPEC
सही उत्तर / Answer: (C)
हल / Solution
विस्तृत डिज़ाइन में हर मॉड्यूल के भीतर का तर्क क़दम-दर-क़दम लिखा जाता है, और उसी लिखावट को मिनी स्पेसिफ़िकेशन (mini spec) कहते हैं। इसमें सूडोकोड या ढाँचागत अंग्रेज़ी से बताया जाता है कि मॉड्यूल करेगा क्या। कंट्रोल स्पेसिफ़िकेशन (CSPEC) सिस्टम के व्यवहार और नियंत्रण की बात करता है, PSPEC विश्लेषण मॉडल में DFD के बबल का ब्योरा देता है, और कोड स्पेक जैसी कोई चीज़ होती ही नहीं।
In detailed design the logic inside every module is written out step by step, and that write up is called a mini specification. Pseudocode or structured English is used to say what the module will do. A control specification, or CSPEC, deals with the behaviour and the control of the system, a PSPEC describes a bubble of the DFD in the analysis model, and there is no such thing as a code spec.
प्रश्न 6उत्तर + हल
डिज़ाइन चरण में ये काम होते हैं: 1. जो काम करने हैं उनकी पहचान 2. इनपुट, आउटपुट और फ़ाइल का डिज़ाइन 3. सिस्टम डिज़ाइन के बुनियादी मानदंड तय करना
Design Phase consists of 1. Identify the functions to be performed 2. Design the input/output and file design 3. Defining basic parameters for system design
A1 और 21 & 2
B2 और 32 & 3
C1 और 31 & 3
D1, 2 और 31, 2 & 3
सही उत्तर / Answer: (D)
हल / Solution
डिज़ाइन चरण में पहले यह तय होता है कि सिस्टम को कौन-कौन से काम करने हैं। इसके बाद इनपुट के फ़ॉर्म, आउटपुट की रिपोर्ट और फ़ाइल या डेटाबेस की बनावट डिज़ाइन की जाती है। सिस्टम डिज़ाइन के बुनियादी मानदंड भी इसी चरण में बाँधे जाते हैं, जैसे काम का भार, रफ़्तार और सुरक्षा। तीनों काम इसी चरण के हैं, इसलिए उत्तर 1, 2 और 3 बनता है।
The design phase first settles which functions the system has to perform. After that the input forms, the output reports and the structure of the files or the database are designed. The basic parameters for the system design, such as the expected volume, the speed and the security, are also fixed in this same phase. All three activities therefore belong here, which makes 1, 2 and 3 the right choice.
प्रश्न 7उत्तर + हल
सॉफ़्टवेयर के मॉड्यूलों के बीच कपलिंग की श्रेणियाँ ये हैं: I. कंटेंट कपलिंग II. कॉमन कपलिंग III. कंट्रोल कपलिंग IV. स्टैंप कपलिंग V. डेटा कपलिंग सबसे मज़बूत (सबसे ख़राब) से सबसे कमज़ोर (सबसे अच्छी) के क्रम में कपलिंग इस तरह रखी जा सकती है:
The coupling between different modules of a software is categorized as follows: I. Content coupling II. Common coupling III. Control coupling IV. Stamp coupling V. Data coupling Coupling between modules can be ranked in the order of strongest (least desirable) to weakest (most desirable) as follows:
AI - II - III - IV - V
BV - IV - III - II - I
CI - III - V - II - IV
DIV - II - V - III - I
सही उत्तर / Answer: (A)
हल / Solution
कपलिंग जितनी मज़बूत हो, मॉड्यूल एक-दूसरे पर उतने ही टिके रहते हैं और डिज़ाइन उतना ही ख़राब माना जाता है। मज़बूती का घटता क्रम है कंटेंट, कॉमन, कंट्रोल, स्टैंप और डेटा कपलिंग। कंटेंट कपलिंग में एक मॉड्यूल दूसरे के भीतर घुसकर उसका डेटा बदल देता है, इसलिए वह सबसे बुरी है। डेटा कपलिंग में सिर्फ़ ज़रूरी मान पास होते हैं, इसलिए वह सबसे अच्छी है।
The stronger the coupling, the more one module depends on another, and the poorer the design becomes. In decreasing order of strength the types run content, common, control, stamp and data coupling. In content coupling one module reaches inside another and changes its data, which is the worst case of all. In data coupling only the needed values are passed as parameters, which is the best case. So the order is I to V.
प्रश्न 8उत्तर + हल
विश्वसनीयता बढ़ाने के लिए सिस्टम में कई मॉड्यूल रखकर दोष-सहिष्णुता (fault tolerance) लाई जाती है। यदि समस्या 5 अलग-अलग मॉड्यूलों से हल हो सकती है और हर एक की सफलता की प्रायिकता 0.7 है, तो 4 मॉड्यूल असफल हो जाने पर भी समस्या हल होने की प्रायिकता लगभग कितनी है?
To increase reliability, fault tolerance is included in the system in the form of multiple modules. If the problem can be solved by 5 different modules, each with probability of success 0.7, the probability that it can be solved even if 4 modules fail is approximately
A0.3
B0.03
C0.49
D0.05
सही उत्तर / Answer: (B)
हल / Solution
चार मॉड्यूल असफल और ठीक एक सफल होना है। किसी एक ख़ास मॉड्यूल के सफल और बाक़ी चार के असफल होने की प्रायिकता 0.7 गुणा 0.3 की चौथी घात है, यानी 0.7 गुणा 0.0081, जो 0.00567 आती है। सफल मॉड्यूल पाँच में से कोई भी हो सकता है, इसलिए इसे पाँच से गुणा कीजिए। इससे 0.0284 मिलता है, जो लगभग 0.03 है। 0.3 तो एक मॉड्यूल की असफलता की प्रायिकता है।
Exactly one module has to succeed while the other four fail. For one chosen module that probability is 0.7 multiplied by 0.3 raised to the fourth power, which is 0.7 times 0.0081, or 0.00567. The successful module can be any one of the five, so multiply by five. That gives 0.0284, which is about 0.03. The value 0.3 is merely the failure probability of a single module.
प्रश्न 9उत्तर + हल
पुटनम (PUTNAM) के अनुसार परियोजना का श्रम (effort) विकास समय की चौथी घात के व्युत्क्रमानुपाती होता है। 100 पर्सन-मंथ (PM) की परियोजना का विकास समय दोगुना कर दें तो श्रम घटकर कितना रह जाएगा?
According to PUTNAM, project effort is inversely proportional to the fourth power of development time, Doubling the development schedule for a 100 Person-Month (PM) project would reduce the project effort to
A50 PM
B7.16 PM
C25 PM
D6.25 PM
सही उत्तर / Answer: (D)
हल / Solution
पुटनम का संबंध कहता है कि श्रम समय की चौथी घात के व्युत्क्रमानुपाती है। इसलिए समय दोगुना करने पर श्रम 2 की चौथी घात, यानी सोलह गुना घट जाता है। अब 100 पर्सन-मंथ को सोलह से भाग दीजिए, जिससे 6.25 पर्सन-मंथ आता है। 50 PM तब आता जब श्रम सीधे समय के व्युत्क्रमानुपाती होता, और 25 PM तब, जब वह समय के वर्ग के व्युत्क्रमानुपाती होता।
Putnam's relation says that effort varies inversely with the fourth power of the development time. Doubling the schedule therefore divides the effort by two raised to the fourth power, that is by sixteen. So 100 person months divided by sixteen gives 6.25 person months. The figure 50 PM would follow if effort were inversely proportional to time itself, and 25 PM if it were inversely proportional to the square of time.
प्रश्न 10उत्तर + हल
माना किसी प्रोग्राम ग्राफ़ में M एक if-then-else नोड है। इसके if भाग से अंत नोड तक रास्तों की संख्या y है और else भाग से अंत नोड तक z है। यदि आरंभ नोड से M तक रास्तों की संख्या x है, तो M से होकर जाने वाले कुल रास्ते कितने होंगे?
Let M be a node that represents a if-then-else node in a Program Graph. Let the number of paths from its if part to the end node is y, and from the else part to the end nodes is z. If the number of paths from the start node to the node M is x, then the total number of paths through M is
Axy + z
Bxz + y
Cx + y + z
Dx(y + z)
सही उत्तर / Answer: (D)
हल / Solution
M तक पहुँचने के x रास्ते हैं। M पर पहुँचने के बाद दो राहें खुलती हैं, यानी if भाग से y रास्ते और else भाग से z रास्ते। इसलिए M के आगे कुल y + z रास्ते बनते हैं। पहले वाले हर रास्ते के साथ आगे वाला कोई भी रास्ता जुड़ सकता है, इसलिए गिनती गुणा से निकलती है और उत्तर x(y + z) बनता है। सिर्फ़ जोड़ने पर आरंभ और अंत का यह जुड़ाव छूट जाता है।
There are x ways of reaching the node M. Once control is at M, two routes open up, y paths through the if part and z paths through the else part, so beyond M there are y + z paths in all. Each of the earlier paths can be followed by any of the later ones, so the count is a product and the answer is x(y + z). Simply adding the numbers would ignore that pairing.
आगे के 20 प्रश्नों के उत्तर और हल app मेंFliQi Question Bank — अभ्यास, हल और आपकी प्रगति
हैश एड्रेसिंग में यह हैश फलन इस्तेमाल किया गया है: h(x) = x mod 5 यदि हैश फलन बकेट संख्या देता है, तो इनमें से कौन-से अदिश अवयव (x) बकेट 2 में होंगे? ध्यान दीजिए: बकेट 0 से 4 तक गिने जाते हैं। mod पूर्णांक भाग के बाद बचा शेषफल देता है। अदिश अवयव 5, 12, 17, 19, 21, 23, 32, 40 और 44 हैं।
In hash addressing the following hash function is used h(x) = x mod 5 If the hash function gives the bucket number then which of the following scalar elements (x) will be in bucket 2. Note: Buckets are numbered from 0 to 4. Mod gives the remainder after integer division. The scaler elements are 5, 12, 17, 19, 21, 23, 32, 40 and 44
निम्नलिखित का मिलान कीजिए: 1. पब्लिक (Public) — a. वे घोषणाएँ जो क्लास के बाहर से भी पहुँच में हैं, यानी जो कोई इस क्लास के ऑब्जेक्ट तक पहुँच सकता है 2. प्रोटेक्टेड (Protected) — b. वे घोषणाएँ जो सिर्फ़ क्लास के भीतर से पहुँच में हैं 3. प्राइवेट (Private) — c. वे घोषणाएँ जो क्लास के भीतर से और उसकी उपक्लासों से पहुँच में हैं
Match the following: 1. Public — a. Declarations that are accessible from outside the class, anyone who can access an object of this class. 2. Protected — b. Declarations that are accessible only from within the class. 3. Private — c. Declarations that are accessible from within the class itself and from within subclasses.
निम्नलिखित का मिलान कीजिए: 1. कपलिंग (Coupling) — a. एक मॉड्यूल के भीतर के संबंधों की मज़बूती 2. स्पैन ऑफ़ कंट्रोल — b. मॉड्यूल बनाने वाले निर्देशों की संख्या 3. साइज़ — c. बुलाने वाले मॉड्यूल के अधीन मॉड्यूलों की संख्या d. मॉड्यूलों के बीच के संबंध की मज़बूती
Match the following: 1. Coupling — a. Strength of relations within a module 2. Span of control — b. Number of instructions composing a module 3. Size — c. Number of modules subordinate to calling module d. The strength of relation between modules
कौन-सा डिज़ाइन सॉफ़्टवेयर के बड़े संरचनात्मक अंगों के बीच संबंध तय करता है, और कौन-सा डिज़ाइन सॉफ़्टवेयर आर्किटेक्चर के संरचनात्मक अंगों को कंपोनेंटों के प्रक्रियात्मक विवरण में बदलता है?
Which design defines the relationship between major structural elements of the software and which design transforms structural elements of the software architecture into a procedural description of software components?
______ रूपरेखा-मॉडल (design model) के अलग-अलग पहलुओं को दर्ज करता है और जैसे-जैसे रूपरेखाकार सॉफ़्टवेयर का अपना चित्र साफ़ करता जाता है, वह पूरा होता जाता है।
__________ address different aspects of the design model and is completed as the designer refines his representation of the software.
रूपरेखा (design) में किसी वर्ग (class) को संसक्त (cohesive) कब कहा जाता है?
A class in a design is said to be cohesive if
Aजब वर्ग के सभी गुण (attributes) ज़रूरी नहीं कि हर विधि (method) में इस्तेमाल होंall the attributes in the class are not necessarily used by every method
Bजब वर्ग के सभी गुण कम से कम एक विधि में इस्तेमाल होंall the attributes in the class are used by at least one method
Cजब वर्ग के सभी गुण हर विधि में इस्तेमाल होंall the attributes in the class are used by every method