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

Multiple choice technology web technology
  1. Digitally encrypt an XML document

  2. Determine if two XML documents are logically equivalent

  3. Digitally decrypt an XML document

  4. Digitally sign an XML documents

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. Global schema types must be referenced by the type attribute

  2. Global schema elements must be referenced by the type attribute

  3. Global schema types must be referenced by the element attribute

  4. Global schema elements must be referenced by the element attribute

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. Page.User.Identity

  2. Page.User.IsInRole

  3. Page.User.Name

  4. None of the Above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. < allow >

  2. < deny >

  3. Both A) and B)

  4. None of the Above

Reveal answer Fill a bubble to check yourself
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 choice technology programming languages
  1. Multiple word names must be separated with an underscore

  2. Names must be 10 or less characters

  3. Names must contain at least 1 alpha character in any position

  4. Names must be lower case

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology testing
  1. Third

  2. First

  3. Second

  4. Last

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. ClassPathXmlApplicationContext

  2. FileSystemXmlApplicationContext

  3. XmlWebApplicationContext

  4. XmlFileSystemApplicationContext

Reveal answer Fill a bubble to check yourself
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).

Multiple choice technology programming languages
  1. eXtra Modern Link

  2. eXtensible Markup Language

  3. Example Markup Language

  4. X-Markup Language

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. <xml version="1.0" />

  2. <?xml version="1.0"?>

  3. <?xml version="1.0" />

  4. None of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. it contains a root element

  2. it contain an element

  3. it contains one or more elements

  4. must contain one or more elements and root element must contain all other elements

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. <![CDATA[Text to be ignored]]>

  2. <PCDATA>Text to be ignored</PCDATA>

  3. <CDATA>Text to be ignored</CDATA>

  4. <xml:CDATA[Text to be ignored]>

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. XSLT is a subset of XSL

  2. XSLT uses XPath

  3. XSLT is not a W3C Recommendation

  4. XSLT is written in XML

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. <for-each> code... </for-each>

  2. <xsl:for>code...</xsl:for>

  3. <xsl:for-each>code...</xsl:for-each>

  4. <xsl:foreach>code...</xsl:foreach>

Reveal answer Fill a bubble to check yourself
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).