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
-
An optional tailer element that contains tailer information
-
An optional Header element that contains header information
-
A required Body element that contains call and response information
-
A required Envelope element that identifies the XML document as a SOAP message
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.
-
False
-
True
-
Not always true
-
none of these
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.
-
Style
-
codingStyle
-
encodingStyle
-
Encoding
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.
-
Type
-
Fixed values
-
Length
-
Header
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.
-
Defining customs method types.
-
Defining custom functions.
-
Defining custom data types.
-
Defining Package.
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.
-
Parameter
-
Message
-
Part
-
Combination of b & c
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.
-
Defining customs method types.
-
Defining functions.
-
Defining data types.
-
Defining Package
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.
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".
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.
-
<soapenv:mustUnderstand >
-
<soap:Body>
-
<soap:Envelope>
-
<soapenv:Envelope>
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.
-
<soapenv:Body>
-
<soapenv:Header>
-
<soapenv:Head>
-
<soapenv:Tail>
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.
-
Objects should be serialized.
-
Structures should be serialized.
-
Arrays should be serialized.
-
Object graphs should be serialized.
-
All of the above.
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.
-
XML documents
-
Objects and structures
-
Both
-
None of the Above
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.
-
SOAP
-
WSDL
-
UDDI
-
All of the above
A
Correct answer
Explanation
XML is designed to be extensible, allowing authors to create custom tags and define their own document structure. Unlike HTML which has predefined tags, XML gives you complete flexibility to create markup that fits your specific needs.