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 programming languages
  1. True

  2. False

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

XML element names must follow specific naming rules: they can contain letters, digits, hyphens, underscores, and periods; must start with a letter or underscore; cannot contain spaces; and cannot begin with 'xml' in any case combination. These rules ensure XML parsers can reliably process documents.

Multiple choice technology programming languages
  1. True

  2. False

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

There's a distinction between 'well-formed' XML (correct syntax) and 'valid' XML (well-formed + conforms to DTD/schema). A document can be well-formed without being validated against a DTD. Validating against a DTD makes it 'valid' XML, not just 'well-formed' - it must already be well-formed to even be validated.

Multiple choice technology programming languages
  1. True

  2. False

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

CSS can be applied to XML documents to control display, formatting, and presentation. This is commonly done by linking a stylesheet using the processing instruction. CSS styles XML elements by tag name, allowing XML data to be rendered visually in web browsers or other applications.

Multiple choice technology programming languages
  1. <jsp:setColor id="fruit" property="color" value="white"/>

  2. <jsp:setColor name="fruit" property="color" value="white"/>

  3. <jsp:setValue name="fruit" property="color" value="white"/>

  4. <jsp:setProperty name="fruit" property="color" value="white">

  5. <jsp:setProperty name="fruit" property="color" value="white"/>

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

The correct JSP syntax for setting bean properties is . The element name is setProperty, not setColor or setValue. Option D is missing the closing slash.

Multiple choice technology programming languages
  1. XPathDocument class is very fast, but it is read-only

  2. The XmlDocument class provides editable representation of XML document, but is comparatively slower.

  3. XPathNavigator object can be created using both XPathDocument and XmlDocument classes, which can be used to to select and navigate XML data.

  4. None of the above

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

All statements are true: XPathDocument is a fast, read-only cache; XmlDocument is editable but slower; and XPathNavigator can navigate both. Thus, 'None of the above' is the correct false statement.

Multiple choice technology web technology
  1. a. The Soap Message Format

  2. b. How to send message and receive response

  3. c. Data Encoding

  4. d. A & B only

  5. e. All Of the above

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

The SOAP specification defines the XML envelope format, the data encoding rules, and the conventions for representing remote procedure calls and responses.

Multiple choice technology web technology
  1. True

  2. False

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

The SOAP Header is an optional element in a SOAP message. While the Envelope and Body are mandatory, the Header is used only when you need to convey additional information such as authentication, transaction context, or processing instructions. Many simple SOAP messages have no Header at all.

Multiple choice technology web technology
  1. True

  2. False

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

The SOAP Header element is specifically designed to convey optional, application-specific, and infrastructure-related information. Headers are used for metadata like authentication tokens, routing information, transaction contexts, or other processing directives that are separate from the main message payload in the Body.

Multiple choice technology web technology
  1. a. WSDL is a standard format for describing XML Webservices.

  2. b. WSDL defines XML based syntax for defining the functionality exposed by a web service.

  3. c. WSDL is useful for automating communications between Web Services.

  4. d. All of above

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

WSDL (Web Services Description Language) serves multiple purposes: it provides a standard XML format for describing web services (A), defines XML-based syntax for specifying web service functionality (B), and enables automation of web service communications (C). Since all three statements are correct, D is the right choice.

Multiple choice technology web technology
  1. a. RPC based format

  2. b. Document based format

  3. c. both a and b.

  4. d. They cannot be serialized.

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

SOAP messages can be serialized in two main styles: RPC (Remote Procedure Call) style, which models a traditional procedure call with parameters and return values, and Document style, which sends entire XML documents. The CHOICE between these is referred to as the 'use' or 'encoding style' in SOAP. The correct answer acknowledges both RPC and Document-based formatting are valid.