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
-
PROGRAMS
-
FUNCTIONS
-
VARIABLES
-
COMMANDS
B
Correct answer
Explanation
XPath includes a comprehensive library of built-in functions for string operations, numeric calculations, boolean logic, and node manipulation. These functions enable complex queries and transformations within XPath expressions without requiring external programming.
-
100 built-in functions
-
200 built-in functions
-
more than 100 built-in functions
-
more than 200 built-in functions
-
XQuery 1.0 and XPath 1.0
-
XQuery 2.0 and XPath 2.0
-
XQuery 2.0 and XPath 1.0
-
XQuery 1.0 and XPath 2.0
D
Correct answer
Explanation
XQuery 1.0 and XPath 2.0 were developed collaboratively and share the XQuery 1.0/XPath 2.0 data model (XDM). They support the same function library and operators, making them compatible and allowing XPath expressions to be used within XQuery queries.
-
- November 1999
-
- November 1998
-
- November 1999
-
- November 1998
C
Correct answer
Explanation
XPath 1.0 was officially published as a W3C Recommendation on November 16, 1999. This date marks the standardization of XPath as the primary language for navigating XML documents.
-
following
-
followed
-
ancestor
-
attribute
B
Correct answer
Explanation
XPath defines 13 axes including ancestor, attribute, following, and following-sibling. 'Followed' is not a valid axis name - the correct axis for selecting nodes after the current node in document order is 'following' or 'following-sibling'.
C
Correct answer
Explanation
To solve this question, the user needs to know the basics of XPath and its path expressions.
Now, let's go through each option and explain why it is right or wrong:
A. //: This is a valid XPath path expression which selects all the nodes with the matching name, regardless of their position in the document.
B. @: This is a valid XPath path expression which selects attributes of the selected element.
C. $: This is not a valid XPath path expression. XPath doesn't use $ to select nodes or attributes.
D. /: This is a valid XPath path expression which selects the root node of the document or the current node if used at the beginning of the expression.
Therefore, the answer is:
The Answer is: C
B
Correct answer
Explanation
SOAP is an XML-based protocol for exchanging information in web services. Messages are formatted as XML envelopes, making SOAP platform-independent and readable by humans while maintaining structured, validated communication between systems.
-
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".