पहले 10 प्रश्नों के उत्तर और हल यहीं खुले हैं; बाक़ी 20 के उत्तर और हल FliQi Question Bank app में।
भाषा
प्रश्न 1उत्तर + हल
दस्तावेज़ को स्वरूपित करने के लिए XSL में block container का काम क्या है?
XSL has a block container for formatting the document. Its work is
Aशीर्षकों को स्वरूपित करने के लिए display block बनानाto create a display block to format the titles
Bअनुच्छेदों को स्वरूपित करने के लिए display block बनानाto create a display block to format the paragraphs
Cशीर्षक और आकृतियों को स्वरूपित करने के लिए display block बनानाto create a display block to format the headlines and figures
Dblock स्तर का reference area बनानाto create a block level reference area
सही उत्तर / Answer: (D)
हल / Solution
XSL-FO में block container का काम एक reference area बनाना है। reference area वह क्षेत्र होता है जिसके भीतर लिखने की दिशा और नाप अलग से तय की जा सकती है, इसलिए उसी में किसी हिस्से को घुमाकर या अलग चौड़ाई देकर रखा जाता है। यही चौथे विकल्प में लिखा है। साधारण अनुच्छेद, शीर्षक या आकृति के नीचे का कैप्शन बनाने का काम block नाम का ऑब्जेक्ट करता है, इसलिए पहले तीन विकल्प block container का वर्णन नहीं करते।
In XSL-FO the work of a block container is to create a reference area. A reference area is a region inside which the writing direction and the measurements can be set separately, so a part of the page may be rotated or given its own width within it. This is what option 4 states. Ordinary paragraphs, titles and captions under figures are formatted by the object called block, so the first three choices describe that object instead.
प्रश्न 2उत्तर + हल
XML के अनुप्रयोग के बारे में सबसे सटीक कथन कौन सा है?
Identify the most accurate statement about the application of XML:
AXML और HTML आउटपुट बनाने के लिए XML का प्रयोग होना ही चाहिएXML must be used to produce XML and HTML output.
BXML प्रदर्शन की जानकारी न बता सकता है न रख सकता हैXML cannot specify or contain presentation information.
CXML का प्रयोग पदानुक्रम में सजी जानकारी का वर्णन करने के लिए होता हैXML is used to describe hierarchically organized information.
DXML अलग-अलग ई-बिज़नेस एप्लिकेशनों के बीच जानकारी का रूपांतरण करता हैXML performs the conversion of information between different e-business applications.
सही उत्तर / Answer: (C)
हल / Solution
XML का मूल काम जानकारी को पेड़ जैसे ढाँचे में लिखना है, जहाँ एक element दूसरे के भीतर बैठ सकता है। इसी से माता-पिता और संतान का सम्बन्ध बनता है, इसलिए तीसरा कथन सबसे सटीक है। पहला विकल्प ज़रूरत से ज़्यादा कह देता है। दूसरा भी ग़लत है, क्योंकि प्रदर्शन की जानकारी XML में रखी तो जा सकती है, बस वह ख़ुद उसे लागू नहीं करता। रूपांतरण का काम XSLT या कोई एप्लिकेशन करती है, XML नहीं।
The basic work of XML is to write information in a tree like structure, where one element can sit inside another. This is what creates parent and child relations, so option 3 is the most accurate statement. Option 1 claims far more than is true. Option 2 is also wrong, because presentation details can be stored inside XML; XML merely does not apply them. Conversion between applications is done by XSLT or by a program, not by XML.
प्रश्न 3उत्तर + हल
XML विनिर्देश में PI का अर्थ क्या है?
PI in the XML specification stands for
A3.14
Bpriceless instruction
Cprocessing instruction
Dpolymorphic inheritance
सही उत्तर / Answer: (C)
हल / Solution
XML में PI का मतलब processing instruction है। यह <? से शुरू होकर ?> पर ख़त्म होती है और उस एप्लिकेशन के लिए संदेश होती है जो दस्तावेज़ को पढ़ रही है, जैसे स्टाइलशीट जोड़ने वाली पंक्ति। parser इसे डेटा नहीं मानता, बस आगे पहुँचा देता है। इसलिए तीसरा विकल्प सही है। पहला विकल्प तो गणित का एक मान है, और बाक़ी दो नाम केवल भटकाने के लिए रखे गए हैं।
In XML, PI stands for processing instruction. It begins with <? and ends with ?>, and it carries a message for the application that is reading the document, such as the line that attaches a stylesheet. The parser does not treat it as data; it only passes it on. So option 3 is correct. Option 1 is a value from mathematics, and the remaining two names have been placed there only to mislead the reader.
प्रश्न 4उत्तर + हल
नीचे दी गई XML घोषणा में क्या ग़लत है? <?xml version="1.0" standalone="yes" encoding="UTF-8" ?>
What is wrong in the XML declaration given below? <?xml version="1.0" standalone="yes" encoding="UTF-8" ?>
Aयह दिखाती है कि संस्करण 1.0 हैit shows that the version is 1.0
Bयह दिखाती है कि दस्तावेज़ standalone हैit shows that it is standalone
Cstandalone वाला भाग ग़लत जगह पर हैthe standalone part is in the wrong place
Dversion विशेषता XML में होती ही नहींthe version attribute is not in XML
सही उत्तर / Answer: (C)
हल / Solution
XML घोषणा में विशेषताओं का क्रम तय है — पहले version, फिर encoding और सबसे अंत में standalone। यहाँ standalone को encoding से पहले लिख दिया गया है, इसलिए यही भाग ग़लत है और तीसरा विकल्प सही उत्तर है। संस्करण 1.0 दिखना या standalone का मान yes होना अपने आप में कोई ग़लती नहीं, इसलिए पहला और दूसरा विकल्प प्रश्न का उत्तर नहीं देते। version तो हर घोषणा में ज़रूरी है, इसीलिए चौथा विकल्प भी ग़लत है।
The order of attributes in an XML declaration is fixed: version comes first, then encoding, and standalone at the end. Here standalone has been written before encoding, so that part is the mistake and option 3 is the answer. Showing the version as 1.0 or setting standalone to yes is no error in itself, so options 1 and 2 do not answer the question. Every declaration needs the version attribute, so option 4 is wrong as well.
प्रश्न 5उत्तर + हल
कोई पाठ्य वस्तु तभी well-formed XML दस्तावेज़ कहलाती है जब (i) पूरी वस्तु document नाम की production से मेल खाए। (ii) उसके भीतर सीधे या घुमाकर संदर्भित हर parsed entity ख़ुद भी well-formed हो।
A textual object is a well-formed XML document if (i) taken as a whole it matches the production labeled document. (ii) each of the parsed entities referenced directly or indirectly within the document is itself well formed.
A(i) सही है(i) is correct
B(ii) सही है(ii) is correct
Cदोनों सही हैंboth are correct
Dदोनों ग़लत हैंboth are wrong
सही उत्तर / Answer: (C)
हल / Solution
XML के मानक में well-formed होने की शर्तें इन्हीं दो बिंदुओं में लिखी गई हैं। पहली बात यह कि पूरी वस्तु मानक के document नियम से मेल खाए, यानी मूल element एक हो और टैग सही ढंग से खुलें और बंद हों। दूसरी बात यह कि उसमें जितनी entity बुलाई गई हैं वे भी अपने भीतर से ठीक हों। एक भी entity टूटी हो तो पूरा दस्तावेज़ टूट जाता है। इसलिए तीसरा विकल्प सही है।
The XML standard writes the conditions for well formedness in exactly these two points. The first says that the object as a whole must match the production named document, which means one root element and tags that open and close in the proper order. The second says that every parsed entity called from inside it must itself be well formed. If even one entity is broken, the whole document breaks. So option 3 is correct.
प्रश्न 6उत्तर + हल
किसी XML दस्तावेज़ के मान्य (valid) होने के लिए क्या ज़रूरी है?
For an XML document to be valid
Aकेवल well-formed होना ही काफ़ी हैbeing well formed alone is enough
Bउसका well-formed होना ज़रूरी नहींthe document need not be well formed
Cउसे well-formed भी होना चाहिए और valid भीthe document needs to be well formed and valid
Dवैधता का well-formed होने से कोई नाता नहींvalidity has no relationship with well formedness
सही उत्तर / Answer: (C)
हल / Solution
वैधता well-formed होने के ऊपर की सीढ़ी है। पहले दस्तावेज़ का ढाँचा ठीक होना चाहिए — हर टैग बंद, नेस्टिंग सही और मूल element एक ही। उसके बाद वह DTD या Schema के नियमों पर भी खरा उतरे, तभी उसे valid कहा जाता है। यानी दोनों शर्तें एक साथ चाहिए, इसलिए तीसरा विकल्प सही है। अकेला well-formed होना काफ़ी नहीं, और बिना well-formed हुए तो parser दस्तावेज़ पढ़ेगा ही नहीं।
Validity is a step above well formedness. First the structure of the document must be correct: every tag closed, the nesting proper and only one root element. After that it must also satisfy the rules of a DTD or a Schema, and only then is it called valid. Both conditions are needed together, so option 3 is correct. Being well formed alone is not enough, and without it no parser will read the file at all.
प्रश्न 7उत्तर + हल
<INPUT> प्रकार text को डेटा स्रोत dsoCustomer से बाँधने के लिए क्या लिखा जाएगा?
To bind the HTML element <INPUT> of type text with the data source dsoCustomer we use
A<INPUT TYPE="TEXT" DATAFIELD="#dsoCustomer">
B<INPUT TYPE="TEXT" DATASRC="dsoCustomer">
C<INPUT TYPE="TEXT" DATASRC="#dsoCustomer">
D<INPUT TYPE="TEXT" DATAFLD="#dsoCustomer">
सही उत्तर / Answer: (C)
हल / Solution
डेटा आइलैंड से बाँधते समय DATASRC में उस आइलैंड की id लिखी जाती है और उसके आगे हैश चिह्न लगाना ज़रूरी है। इसी से ब्राउज़र समझता है कि डेटा कहाँ से आना है। इसलिए तीसरा विकल्प सही है। दूसरे में हैश चिह्न छूट गया है। पहले और चौथे में DATAFIELD या DATAFLD लिखा है, जो स्रोत नहीं बल्कि उसके भीतर के किसी एक खाने का नाम बताने के लिए होता है, और वहाँ हैश नहीं लगता।
When an element is bound to a data island, the id of that island is written in DATASRC and a hash sign must be placed before it. This is how the browser knows where the data is to come from, so option 3 is correct. Option 2 leaves the hash sign out. Options 1 and 4 use DATAFIELD or DATAFLD, which name a single field inside the source rather than the source itself, and no hash is used with them.
प्रश्न 8उत्तर + हल
HTML में डेटा आइलैंड बनाने के लिए कौन सा तत्व प्रयोग किया जाता है?
To create a data island we use the ____ HTML element.
A<XML>
B<dataisland>
C<Island>
D<XMLIsland>
सही उत्तर / Answer: (A)
हल / Solution
डेटा आइलैंड का मतलब है HTML पन्ने के भीतर ही XML डेटा का एक टुकड़ा रख देना। Internet Explorer में यह काम <XML> तत्व से होता था — उसके भीतर XML लिखा जाता या src से बाहरी फ़ाइल जोड़ी जाती, और फिर पन्ने के तत्वों को उसी से बाँध दिया जाता था। इसलिए पहला विकल्प सही है। बाक़ी तीन नाम HTML में हैं ही नहीं; ब्राउज़र उन्हें अनजान टैग मानकर छोड़ देगा।
A data island means a piece of XML data kept inside an HTML page itself. In Internet Explorer this was done with the <XML> element: the XML was either typed inside it or pulled in from an outside file through src, and the elements of the page were then bound to it. So option 1 is correct. The other three names do not exist in HTML at all, and a browser would simply ignore them as unknown tags.
प्रश्न 9उत्तर + हल
XML स्कीमा के सरल प्रकारों में boolean प्रकार कौन से मान रख सकता है?
In the simple types built into XML Schema, the boolean type holds
Atrue, false
B1, 0
Cपहला और दूसरा दोनोंboth A and B
Dtrue/false और 0 को छोड़कर कोई भी अंकtrue/false and any number except 0
सही उत्तर / Answer: (C)
हल / Solution
स्कीमा का boolean प्रकार केवल चार मान मानता है — true, false, 1 और 0। यहाँ 1 का अर्थ true और 0 का अर्थ false होता है। दोनों रूप बराबर चलते हैं, इसलिए तीसरा विकल्प सही है। अकेला पहला या अकेला दूसरा विकल्प आधी बात कहता है। चौथा विकल्प इसलिए ग़लत है कि 1 के अलावा कोई भी अंक boolean में नहीं चलता; 2 या 7 लिखते ही मान अमान्य हो जाएगा।
The boolean type of XML Schema accepts only four values: true, false, 1 and 0. Here 1 means true and 0 means false. Both forms are equally valid, so option 3 is correct. Option 1 alone or option 2 alone tells only half the story. Option 4 is wrong because no number other than 1 is allowed; writing 2 or 7 makes the value invalid at once. Note also that true and false are written in small letters.
प्रश्न 10उत्तर + हल
XML स्कीमा में निर्मित सरल प्रकार date डेटा को किस रूप में रखता है?
The simple type date built into XML Schema represents a date in the form
AMM-DD-YY
BDD-MM-YY
CYY-MM-DD
DYYYY-MM-DD
सही उत्तर / Answer: (D)
हल / Solution
XML स्कीमा का date प्रकार ISO 8601 वाले रूप को मानता है, जिसमें पहले चार अंकों का वर्ष आता है, फिर दो अंकों का महीना और फिर दो अंकों का दिन। इसीलिए चौथा विकल्प सही है। पूरा वर्ष लिखने से कोई भ्रम नहीं रहता और तारीख़ें सीधे क्रम में लगाई जा सकती हैं। बाक़ी तीन रूपों में या तो वर्ष केवल दो अंकों का है या उसका स्थान बदल दिया गया है, इसलिए वे मान्य नहीं हैं।
The date type of XML Schema follows the ISO 8601 form, in which a four digit year comes first, then a two digit month and after that a two digit day. That is why option 4 is correct. Writing the full year leaves no room for confusion and lets dates be sorted directly. The other three patterns either shorten the year to two digits or move it away from the first place, so they are not accepted.
आगे के 20 प्रश्नों के उत्तर और हल app मेंFliQi Question Bank — अभ्यास, हल और आपकी प्रगति
आउटपुट XML को प्रोसेस करते समय नई पंक्ति वाले चिह्नों का क्या होता है?
When processing an output XML, the new line symbols
Aवे ज्यों के त्यों आउटपुट में चले जाते हैं — Windows पर CR+LF, Macintosh पर CR और Unix पर LFare copied into output as is, that is CR+LF for Windows, CR for Macintosh and LF for Unix
Bवे बदलकर एक ही LF चिह्न बन जाते हैंare converted to a single LF symbol
Cवे बदलकर एक ही CR चिह्न बन जाते हैंare converted to a single CR symbol
अच्छी तरह गठित (well-formed) XML दस्तावेज़ का क्या अर्थ है?
A well-formed XML document means
Aउसमें एक मूल element होता हैit contains a root element
Bउसमें कोई एक element होता हैit contains an element
Cउसमें एक या अधिक element होते हैंit contains one or more elements
Dउसमें एक या अधिक element हों और मूल element बाक़ी सब को अपने भीतर रखेit must contain one or more elements and the root element must contain all other elements