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. An optional tailer element that contains tailer information

  2. An optional Header element that contains header information

  3. A required Body element that contains call and response information

  4. A required Envelope element that identifies the XML document as a SOAP message

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

A SOAP message consists of three parts: an Envelope element (required, identifies the XML as SOAP), an optional Header element, and a required Body element. There is no such thing as a 'tailer element' in the SOAP specification - this is a made-up term included among the options.

Multiple choice technology web technology
  1. False

  2. True

  3. Not always true

  4. none of these

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

The SOAP Envelope element must always be associated with the namespace 'http://www.w3.org/2001/12/soap-envelope' (or the equivalent 2003 version). This namespace declaration is what identifies the document as a SOAP message. Without it, the document is just ordinary XML.

Multiple choice technology web technology
  1. Style

  2. codingStyle

  3. encodingStyle

  4. Encoding

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

The encodingStyle attribute in SOAP is used to define the data types and serialization rules used in the document. It typically points to the SOAP encoding schema (http://www.w3.org/2001/12/soap-encoding) which defines how data types should be represented in XML.

Multiple choice technology programming languages
  1. Type

  2. Fixed values

  3. Length

  4. Header

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

In SAP ABAP, a domain has valid attributes like Type, Length, and Fixed values. 'Header' is not an attribute of a domain - it's not part of the domain definition structure. Domains define technical properties (type, length, allowed values) for data elements.

Multiple choice technology web technology
  1. Defining customs method types.

  2. Defining custom functions.

  3. Defining custom data types.

  4. Defining Package.

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

In WSDL, the 'types' element is used to define custom data types used in the service operations. It typically contains XML Schema definitions for complex types, message structures, and data elements exchanged between the service consumer and provider. Option C correctly states this purpose.

Multiple choice technology web technology
  1. Parameter

  2. Message

  3. Part

  4. Combination of b & c

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

In WSDL, parameters are defined using both Message and Part elements. A Message element contains one or more Part elements, where each Part defines an individual parameter with its name and type. This two-level structure allows WSDL to define complex message structures with multiple parameters. Option D correctly states this combination.

Multiple choice technology web technology
  1. Defining customs method types.

  2. Defining functions.

  3. Defining data types.

  4. Defining Package

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

In WSDL, the 'portType' element defines the abstract interface of a web service, specifying the operations (functions) that the service provides. It lists the available functions without specifying implementation details like protocol or format. Option B correctly identifies that portType defines functions/operations.

Multiple choice technology web technology
  1. “from”

  2. “to”

  3. “fwd”

  4. “rev”

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

The "rev" element in WS-Routing's "path" header contains the reverse message path, which records the route taken for response messages back to the sender. This is distinct from "fwd" (forward path) and the endpoint elements "to" and "from".

Multiple choice technology web technology
  1. “from”

  2. “to”

  3. “fwd”

  4. “rev”

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

The "fwd" element in WS-Routing's "path" header specifies the forward message path - the route the message takes through intermediaries to reach its ultimate receiver. This complements "rev" which handles the reverse path for responses.

Multiple choice technology web technology
  1. <soapenv:mustUnderstand >

  2. <soap:Body>

  3. <soap:Envelope>

  4. <soapenv:Envelope>

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

The mustUnderstand attribute is a critical SOAP feature that ensures headers requiring specific processing are handled correctly. When set to "1" or "true", the recipient MUST process that header or return a with a MustUnderstand fault code indicating it cannot process the message.

Multiple choice technology web technology
  1. <soapenv:Body>

  2. <soapenv:Header>

  3. <soapenv:Head>

  4. <soapenv:Tail>

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

In RPC-style SOAP usage, the element contains the method invocation data - the method name and its parameters. The (not ) carries metadata, and there is no element in the SOAP specification. The Body is where RPC-style messages place their actual call/return data.

Multiple choice technology web technology
  1. Objects should be serialized.

  2. Structures should be serialized.

  3. Arrays should be serialized.

  4. Object graphs should be serialized.

  5. All of the above.

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

SOAP Section 5 encoding rules (now largely superseded by literal encoding and XSD) define a comprehensive serialization approach covering: simple types, structs (complex types), arrays, and object graphs with references. The rules provide a complete framework for representing data structures in XML format.

Multiple choice technology web technology
  1. XML documents

  2. Objects and structures

  3. Both

  4. None of the Above

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

In literal format (the modern WS-I compliant approach), the client and service exchange data as plain XML documents that conform to an XML Schema. This contrasts with encoded format where data is represented using SOAP's serialization rules (Section 5) as objects/structures. Literal format treats the XML as the actual data contract.