SSC IMD SA Mock 03 – Question 151

Question:

Which of the given options best describes the truthfulness of the following statements?
i) XML schemas define datatypes for elements and attributes, while DTD doesn’t support datatypes.
ii) DTD are the declarations that define a document type for SGML.
iii) In XML, Tag names can begin with a numeric value.

दिए गए विकल्पों में से कौन सा विकल्प निम्नलिखित कथनों की सत्यता का सबसे अच्छा वर्णन करता है?
i) XML स्कीमा एलीमेंट्स और एट्रिब्यूट के लिए डेटाटाइप परिभाषित करता है, जबकि DTD डेटाटाइप को सपोर्ट नहीं करता है।
ii) DTD वे डिक्लेरेशन (declaration) हैं, जो SGML के लिए एक डॉक्यूमेंट प्रकार को परिभाषित करते हैं।
iii) XML में, टैग नाम (Tag name) एक अंकीय मान से शुरू हो सकते हैं।

Options:

  • i-True, ii-True, iii-False
  • i-False, ii-True, iii-False
  • i-True, ii-False, iii-False
  • i-False, ii-False, iii-False
  • i-सत्य, ii-सत्य, iii-असत्य
  • i-असत्य, ii-सत्य, iii-असत्य
  • i-सत्य, ii-असत्य, iii-असत्य
  • i-असत्य, ii-असत्य, iii-असत्य

Correct Answer: a)

Explanation:

Evaluation of statements:
– **Statement i is True**: XML Schema (XSD) supports rich, built-in data types (integers, strings, dates, booleans) and user-defined datatypes, whereas DTD (Document Type Definition) does not support primitive data types (it treats all text as generic text/PCDATA/CDATA).
– **Statement ii is True**: DTD originated as an integral component of SGML (ISO 8879) to declare elements, attributes, entities, and document structural rules.
– **Statement iii is False**: According to XML naming rules, element tag names must begin with a letter or an underscore (`_`); they **cannot** start with a number or punctuation mark.

Therefore, the correct evaluation is **i-True, ii-True, iii-False**.

XML एवं DTD के कथनों का मूल्यांकन:
– **कथन i सत्य है**: XML स्कीमा (XSD) विभिन्न डेटा प्रकारों (जैसे int, string, date, boolean) का समर्थन करता है, जबकि DTD डेटा प्रकारों का समर्थन नहीं करता (यह केवल PCDATA/CDATA टेक्स्ट पर कार्य करता है)।
– **कथन ii सत्य है**: DTD मूल रूप से SGML (Standard Generalized Markup Language) के लिए विकसित किया गया था ताकि डॉक्यूमेंट प्रकार और संरचना को परिभाषित किया जा सके।
– **कथन iii असत्य है**: XML नियमों के अनुसार, टैग का नाम किसी अक्षर (letter) या अंडरस्कोर (`_`) से ही प्रारंभ होना चाहिए; यह कभी भी किसी संख्या (numeric value) से शुरू नहीं हो सकता।

अतः सही विकल्प **a) i-सत्य, ii-सत्य, iii-असत्य** है।

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top