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. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

StAX (Streaming API for XML) is a pull-based parser where the application explicitly requests the next event from the parser using methods like hasNext() and next(). This contrasts with SAX, which is push-based and pushes events to handler methods.

Multiple choice technology packaged enterprise solutions
  1. ps:includeif

  2. ps:excludeif

  3. ps:getValue

  4. ps:getAttributes

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

ps:getAttributes is not a valid PS Framework tag, while ps:includeif, ps:excludeif, and ps:getValue are all legitimate PS tags used for conditional rendering and value retrieval. The getAttributes functionality likely uses a different syntax or method in the framework.

Multiple choice technology
  1. <?xml version="1.0"?>

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

  3. <xml version="1.0" />

  4. <xml version=1.0 />

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The XML declaration must start with . It uses question marks on both sides, not a slash like other XML tags. Options B, C, and D are incorrect because they either use the wrong closing syntax or don't start with the proper XML declaration marker.

Multiple choice technology
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

XML elements can be empty. They can be written as or using the self-closing syntax . Empty elements are commonly used in XML for elements that don't need content.

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

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

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

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

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

CDATA sections in XML use the syntax to tell the parser to treat the content as literal text, not markup. This is used for containing special characters or code snippets that would otherwise be interpreted as XML.

Multiple choice technology
  1. <input type="check" />

  2. <check>

  3. <checkbox>

  4. <input type="checkbox" />

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

HTML checkboxes are created using the tag with type="checkbox": . There are no or tags in HTML. The type attribute must be exactly "checkbox", not "check".

Multiple choice technology
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

XML elements can be empty using self-closing syntax like
or . Empty elements are perfectly valid in XML and are commonly used for elements without content.