Computer Knowledge

Markup and Web Languages

1,492 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. <background>yellow</background>

  2. <body background="yellow">

  3. <body style="background-color:yellow">

  4. <color = "yellow">

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

CSS is the correct way to style HTML elements including background colors. Option C uses inline CSS with the style attribute and background-color property, which is valid. Options A and D use non-existent tags. Option B uses the deprecated HTML attribute approach that should be replaced with CSS.

Multiple choice technology web technology
  1. ‘This is a blockquote’ will be underlined

  2. ‘This is a blockquote’ will be italicized

  3. ‘This is a blockquote’ will be made bold

  4. ‘This is a blockquote’ will appear with white spaces before and after it.

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

The HTML blockquote tag is used to mark block quotations. By default, browsers render blockquoted text with vertical margins (white space) above and below the content, plus left indentation to visually separate it from surrounding text. The text itself is not underlined, italicized, or made bold by default; the distinctive feature is the spacing and indentation that creates visual separation.

Multiple choice technology web technology
  1. To define title of the HTML document

  2. To instruct browser where to find stylesheets, metadata etc

  3. To show additional information about an element as a tooltip text when the mouse moves over it

  4. None of the above

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

The title attribute provides additional information about an HTML element that appears as a tooltip when users hover their mouse over it. It's not used for defining the document title (that's ) or for linking stylesheets (that's ). This is a fundamental HTML attribute for improving user experience with contextual hints.

Multiple choice technology web technology
  1. toggle

  2. label

  3. caption

  4. None of the above

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

The tag associates text with a form control, allowing users to click the text to toggle checkboxes or radio buttons. This improves usability and accessibility - clicking anywhere on the label activates the control. The 'toggle' attribute doesn't exist in HTML, and is for table titles.

Multiple choice technology web technology
  1. POST allows users to bookmark URLs with parameters.

  2. The POST method should not be used when large amount of data needs to be transferred.

  3. POST allows secure data transmission over the http method.

  4. POST method sends data in the body of the request.

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

The POST method sends data in the body of the HTTP request, not in the URL like GET. This allows larger data transfers and keeps parameters out of the browser history. However, POST itself is not inherently secure without HTTPS.

Multiple choice technology web technology
  1. The overall structure of the XML message

  2. The conventions representing the remote procedure call in the XML message

  3. Both

  4. None

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

SOAP defines the overall XML message structure, including its envelope, header, and body components. It also specifies conventions for representing remote procedure calls and responses within the message. Consequently, both functions are essential parts of the SOAP specification, making other options incomplete.

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