Q: 1 Identify the most accurate statement about the application of XML-
XML must be used to produce XML and HTML output.
XML cannot specify or contain presentation information.
XML is used to describe hierarchically organized information.
XML performs the conversion of information between different e-business applications.
[ Option C ]
XML (Extensible Markup Language) is designed to organize and store data in a clear, hierarchical structure. It allows creating custom tags to describe the data, making it easy for both humans and machines to understand. XML is especially useful for managing complex information where the relationships between data need to be clearly shown.
Unlike HTML (Hypertext Markup Language), which is mainly used to display content on web pages, XML focuses on transporting and storing data rather than how it looks. XML is often used in documents, configuration files, and web services where data needs to be shared or transferred between different systems in an organized way. This separation of data and presentation helps keep information consistent and easy to update.
Q: 2 To match specific XML elements child like of parent element is the syntax will be –
<xsl:template match="PLANET_NAME">
<xsl:template match="PLANET/NAME">
<xsl:template match="NAME">
<xsl:template match="//">
[ Option B ]
In XSLT, the match attribute of the <xsl:template> element uses an XPath expression to specify which XML elements the template applies to.
<xsl:template match="XPath">
<!-- Template content -->
</xsl:template>To match a specific child element (like NAME) of a parent element (like PLANET), the syntax is "PARENT/CHILD", i.e., "PLANET/NAME".
<xsl:template match="PLANET/NAME">
Q: 3 Which Web Page is displayed differently for different users?
Static
Home
Dynamic
Current
[ Option C ]
Q: 4 Which of the following are correct statements with respect to XML?
(i) It is used to display data only.
(ii) XML can be used as a database.
(iii) XPATH is used to store the IP address of the server.
(iv) XLL definition is used along with XML to specify the links with other documents.
Only (i) and (ii)
Only (i), (ii) and (iii)
Only (ii), (iii) and (iv)
Only (ii) and (iv)
[ Option D ]
XML (eXtensible Markup Language) is a flexible, text-based markup language designed to store, organize, and transport structured data. It uses custom tags to represent information in a hierarchical format, making it both human-readable and machine-readable. XML is widely used in web applications, data exchange, configuration files, and document storage because it is platform-independent and supports integration across different systems.
| Technology | Usef For |
|---|---|
| XSL | Extensible Stylesheet Language. It is used for styling and transforming XML documents. |
| XPath | Language for navigating and selecting nodes in XML documents. |
| XLink | Defines links (hyperlinks) between XML documents or resources. |
| XPointer | Extends XPath to point to specific parts of XML documents. |
| XQuery | Query language to extract and manipulate data from XML documents. |
| XML Schema (XSD) | Defines the structure and data types of XML documents for validation. |
| DTD | Document Type Definition. It defines the legal building blocks of an XML document. |
| DOM | Document Object Model. API for accessing and modifying XML documents as tree structures. |
| SAX | Simple API for XML. An event-driven API for reading XML documents sequentially. |
Q: 5 DHTML is not a standardized language for which company?
Microsoft
Oracle
W3 Schools
[ Option B ]
Thank you so much for taking the time to read my Computer Science MCQs section carefully. Your support and interest mean a lot, and I truly appreciate you being part of this journey. Stay connected for more insights and updates! If you'd like to explore more tutorials and insights, check out my YouTube channel.
Don’t forget to subscribe and stay connected for future updates.