Computer Knowledge
Markup and Web Languages
1,701 Questions
Test your understanding of HTML tags, XML structures, and web page creation technologies. The questions cover elements like CSS styling, parsing documents, and defining web attributes. This section is essential for candidates appearing for computer proficiency tests in various competitive exams.
HTML tags and attributesXML document parsingCSS styling levelsWeb page creation basicsBrowser compatibility
Markup and Web Languages Questions
-
Digitally encrypt an XML document
-
Determine if two XML documents are logically equivalent
-
Digitally decrypt an XML document
-
Digitally sign an XML documents
B
Correct answer
Explanation
Canonical XML is a W3C specification that defines a standardized form of XML documents to enable logical equivalence comparison. Two XML documents with different formatting/whitespace but identical logical content produce the same canonical form, allowing equivalence testing. It is NOT for encryption or signing.
-
Global schema types must be referenced by the type attribute
-
Global schema elements must be referenced by the type attribute
-
Global schema types must be referenced by the element attribute
-
Global schema elements must be referenced by the element attribute
A,D
Correct answer
Explanation
In WSDL 1.1, global schema types are referenced using the 'type' attribute in part elements, while global schema elements are referenced using the 'element' attribute. Mixing these (using 'element' for types or 'type' for elements) is incorrect.
-
Page.User.Identity
-
Page.User.IsInRole
-
Page.User.Name
-
None of the Above
A
Correct answer
Explanation
In ASP.NET, the Page.User.Identity object contains the authentication information for the current user, including their name. The User property exposes an IPrincipal interface, and its Identity property holds the IIdentity object with details like Name and IsAuthenticated. IsInRole is a method for checking role membership, not a container for user name.
-
< allow >
-
< deny >
-
Both A) and B)
-
None of the Above
C
Correct answer
Explanation
The section in ASP.NET configuration contains both and elements for controlling access rules. These elements define which users or roles are permitted or denied access to specific resources. Both elements work together to create comprehensive authorization rules.
-
Multiple word names must be separated with an underscore
-
Names must be 10 or less characters
-
Names must contain at least 1 alpha character in any position
-
Names must be lower case
C
Correct answer
Explanation
COBOL requires user-defined names to contain at least one alphabetic character (A-Z or a-z) in any position. Names can be up to 30 characters (not 10), can be mixed case (not required lowercase), and multiple-word names typically use hyphens not underscores in COBOL convention.
A
Correct answer
Explanation
xPression supports multiple data source formats for customer data including XML files, relational database systems (RDB), and XQuery files. This allows flexibility in integrating with different data storage systems and formats.
C
Correct answer
Explanation
In QTP's descriptive programming, Index is 0-based, so Index:=1 refers to the second occurrence of a WebEdit object on the page. Index:=0 would be the first WebEdit. This indexing allows selecting specific instances when multiple objects with similar descriptions exist on the same page.
-
ClassPathXmlApplicationContext
-
FileSystemXmlApplicationContext
-
XmlWebApplicationContext
-
XmlFileSystemApplicationContext
A
Correct answer
Explanation
ClassPathXmlApplicationContext loads bean definitions from XML files on the classpath. Unlike FileSystemXmlApplicationContext (which uses file system paths), it treats paths as class path resources (e.g., 'applicationContext.xml' finds it anywhere on classpath).
-
eXtra Modern Link
-
eXtensible Markup Language
-
Example Markup Language
-
X-Markup Language
B
Correct answer
Explanation
XML stands for eXtensible Markup Language. It was designed to be both human-readable and machine-readable, allowing users to define their own tags and document structure. The 'extensible' refers to the ability to create custom tags.
-
<?-- -->
-
<!-- --!>
-
<!-- -->
-
</-- -- >
C
Correct answer
Explanation
XML comments use the syntax . This is inherited from SGML and HTML. The comment cannot contain nested comments and must not contain -- within the comment text except at the end.
-
<xml version="1.0" />
-
<?xml version="1.0"?>
-
<?xml version="1.0" />
-
None of the above
B
Correct answer
Explanation
The XML declaration is . It's a processing instruction that must be at the very beginning of the document. The version is the only required attribute, and it uses the special and ?> delimiters characteristic of processing instructions.
-
it contains a root element
-
it contain an element
-
it contains one or more elements
-
must contain one or more elements and root element must contain all other elements
D
Correct answer
Explanation
A well-formed XML document must have exactly one root element that contains all other elements. This hierarchical structure ensures the document can be properly parsed. The root element acts as the container for the entire document content.
-
<![CDATA[Text to be ignored]]>
-
<PCDATA>Text to be ignored</PCDATA>
-
<CDATA>Text to be ignored</CDATA>
-
<xml:CDATA[Text to be ignored]>
A
Correct answer
Explanation
CDATA sections are delimited by and tell the XML parser to treat the enclosed content as literal character data, not markup. This is useful for including code, scripts, or text containing special characters like < and > without escaping them.
-
XSLT is a subset of XSL
-
XSLT uses XPath
-
XSLT is not a W3C Recommendation
-
XSLT is written in XML
C
Correct answer
Explanation
XSLT (Extensible Stylesheet Language Transformations) IS a W3C Recommendation. It has been since 1999. The statement claiming it's not a W3C Recommendation is false. XSLT is indeed a subset of XSL, uses XPath for navigation, and is written in XML syntax.
-
<for-each> code... </for-each>
-
<xsl:for>code...</xsl:for>
-
<xsl:for-each>code...</xsl:for-each>
-
<xsl:foreach>code...</xsl:foreach>
C
Correct answer
Explanation
XSLT uses to iterate over node sets in an XML document. The syntax requires the xsl namespace prefix. Option A lacks the namespace prefix, while options B and D use incorrect element names (xsl:for and xsl:foreach are not valid XSLT elements).