FliQi Education App Download
प्रश्न-बैंक · Web Technology

Introduction & History of XML — प्रश्न और उत्तर

Web Technology · 38 जाँचे हुए (verified) प्रश्न

  • 38 जाँचे हुए प्रश्न
  • हिंदी + English

पहले 10 प्रश्नों के उत्तर और हल यहीं खुले हैं; बाक़ी 20 के उत्तर और हल FliQi Question Bank app में।

भाषा
प्रश्न 1उत्तर + हल
दस्तावेज़ को स्वरूपित करने के लिए XSL में block container का काम क्या है?
XSL has a block container for formatting the document. Its work is
  1. Aशीर्षकों को स्वरूपित करने के लिए display block बनानाto create a display block to format the titles
  2. Bअनुच्छेदों को स्वरूपित करने के लिए display block बनानाto create a display block to format the paragraphs
  3. Cशीर्षक और आकृतियों को स्वरूपित करने के लिए display block बनानाto create a display block to format the headlines and figures
  4. 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:
  1. AXML और HTML आउटपुट बनाने के लिए XML का प्रयोग होना ही चाहिएXML must be used to produce XML and HTML output.
  2. BXML प्रदर्शन की जानकारी न बता सकता है न रख सकता हैXML cannot specify or contain presentation information.
  3. CXML का प्रयोग पदानुक्रम में सजी जानकारी का वर्णन करने के लिए होता हैXML is used to describe hierarchically organized information.
  4. 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
  1. A3.14
  2. Bpriceless instruction
  3. Cprocessing instruction
  4. 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" ?>
  1. Aयह दिखाती है कि संस्करण 1.0 हैit shows that the version is 1.0
  2. Bयह दिखाती है कि दस्तावेज़ standalone हैit shows that it is standalone
  3. Cstandalone वाला भाग ग़लत जगह पर हैthe standalone part is in the wrong place
  4. 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.
  1. A(i) सही है(i) is correct
  2. B(ii) सही है(ii) is correct
  3. Cदोनों सही हैंboth are correct
  4. 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
  1. Aकेवल well-formed होना ही काफ़ी हैbeing well formed alone is enough
  2. Bउसका well-formed होना ज़रूरी नहींthe document need not be well formed
  3. Cउसे well-formed भी होना चाहिए और valid भीthe document needs to be well formed and valid
  4. 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
  1. A<INPUT TYPE="TEXT" DATAFIELD="#dsoCustomer">
  2. B<INPUT TYPE="TEXT" DATASRC="dsoCustomer">
  3. C<INPUT TYPE="TEXT" DATASRC="#dsoCustomer">
  4. 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.
  1. A<XML>
  2. B<dataisland>
  3. C<Island>
  4. 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
  1. Atrue, false
  2. B1, 0
  3. Cपहला और दूसरा दोनोंboth A and B
  4. 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
  1. AMM-DD-YY
  2. BDD-MM-YY
  3. CYY-MM-DD
  4. 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 — अभ्यास, हल और आपकी प्रगति
App खोलिए
प्रश्न 11उत्तर app में
एक स्कीमा किसका वर्णन करती है?
(i) grammar    (ii) vocabulary
(iii) structure    (iv) XML दस्तावेज़ के datatype
A schema describes
(i) grammar    (ii) vocabulary
(iii) structure    (iv) datatype of an XML document
  1. A(i) और (ii) सही हैं(i) and (ii) are correct
  2. B(i), (iii), (iv) सही हैं(i), (iii), (iv) are correct
  3. C(i), (ii), (iv) सही हैं(i), (ii), (iv) are correct
  4. D(i), (ii), (iii), (iv) चारों सही हैं(i), (ii), (iii), (iv) are correct
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 12उत्तर app में
XML स्कीमा में element के लिए complex type का डिफ़ॉल्ट मॉडल क्या होता है?
The default model for a complex type, in XML schemas for an element, is
  1. AtextOnly
  2. BelementOnly
  3. Cकोई डिफ़ॉल्ट प्रकार नहीं होताno default type
  4. Dपहला और दूसरा दोनोंboth 1 and 2
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 13उत्तर app में
किसी दस्तावेज़ की XML घोषणा में standalone="no" कब लिखा जाना चाहिए?
The attribute standalone="no" should be included in the XML declaration if a document
  1. Aजब वह किसी बाहरी XSL स्टाइलशीट से जुड़ा होis linked to an external XSL stylesheet
  2. Bजब उसमें बाहरी general reference होंhas external general references
  3. Cजब उसमें processing instruction होंhas processing instructions
  4. Dजब उसके साथ बाहरी DTD जुड़ी होhas an external DTD
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 14उत्तर app में
निम्न में से कौन सा XML फ़्रैगमेंट well-formed है?
Which of the following XML fragments is well-formed?
  1. A<myElement myAttribute="value1 &lt;= value2"/>
  2. B<myElement myAttribute="value1 &amp; value2"/>
  3. C<myElement myAttribute="value1 &gt; value2"/>
  4. Dइनमें से कोई नहींNone of the above
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 15उत्तर app में
हम किसी विशेषता (attribute) को एक से अधिक मान कैसे दे सकते हैं?
How can we make attributes have multiple values?
  1. A<myElement myAttribute="value1 value2"/>
  2. B<myElement myAttribute="value1" myAttribute="value2"/>
  3. C<myElement myAttribute="value1, value2"/>
  4. Dविशेषता को एक से अधिक मान दिए ही नहीं जा सकतेattributes cannot have multiple values
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 17उत्तर app में
वैध (valid) XML दस्तावेज़ का सबसे उपयुक्त अर्थ क्या है?
A valid XML document means (most appropriate)
  1. Aदस्तावेज़ में मूल element हैthe document has a root element
  2. Bदस्तावेज़ में कम से कम एक या अधिक मूल element हैंthe document contains at least one or more root elements
  3. Cदस्तावेज़ के साथ DTD जुड़ी है और वह उस DTD के नियमों पर खरा उतरता हैthe XML document has a DTD associated with it and it complies with that DTD
  4. Dहर element अपने घेरने वाले element के भीतर ठीक से बैठा हैeach element nests properly inside its enclosing element
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 19उत्तर app में
आउटपुट XML को प्रोसेस करते समय नई पंक्ति वाले चिह्नों का क्या होता है?
When processing an output XML, the new line symbols
  1. 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
  2. Bवे बदलकर एक ही LF चिह्न बन जाते हैंare converted to a single LF symbol
  3. Cवे बदलकर एक ही CR चिह्न बन जाते हैंare converted to a single CR symbol
  4. Dवे हटा दिए जाते हैंare discarded
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 20उत्तर app में
अच्छी तरह गठित (well-formed) XML दस्तावेज़ का क्या अर्थ है?
A well-formed XML document means
  1. Aउसमें एक मूल element होता हैit contains a root element
  2. Bउसमें कोई एक element होता हैit contains an element
  3. Cउसमें एक या अधिक element होते हैंit contains one or more elements
  4. Dउसमें एक या अधिक element हों और मूल element बाक़ी सब को अपने भीतर रखेit must contain one or more elements and the root element must contain all other elements
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 25उत्तर app में
एक XML डेटाबेस किस प्रकार के XML डेटा को संचित और प्रबंधित करता है?
An XML database supports the storage and management of _____ XML data.
  1. Aपूरी तरह संरचितStructured
  2. Bअर्ध-संरचितSemistructured
  3. Cबहु-संरचितMultistructured
  4. Dइनमें से कोई नहींNone of the above
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 28उत्तर app में
निम्न में से कौन सा काम XML का नहीं है?
Which is not a function of XML?
  1. Aजानकारी को एक जगह से दूसरी जगह पहुँचानाTransport information
  2. Bदिखावट यानी style की जानकारी देनाStyle information
  3. Cजानकारी को संचित करनाStore information
  4. Dइनमें से कोई नहींNone of these
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
Introduction & History of XML के सभी 38 प्रश्न — उत्तर, हल और अभ्यास

FliQi Question Bank app में topic-वार अभ्यास, कठिनाई-स्तर और आपकी प्रगति।

  • पहला test मुफ़्त
  • हिंदी + English
  • जाँचे हुए उत्तर और हल

यह topic किन परीक्षाओं में आता है

Web Technology के दूसरे topics

सभी topics