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

Multiple choice technology programming languages
  1. PROGRAMS

  2. FUNCTIONS

  3. VARIABLES

  4. COMMANDS

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. XQuery 1.0 and XPath 1.0

  2. XQuery 2.0 and XPath 2.0

  3. XQuery 2.0 and XPath 1.0

  4. XQuery 1.0 and XPath 2.0

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. following

  2. followed

  3. ancestor

  4. attribute

Reveal answer Fill a bubble to check yourself
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'.

Multiple choice technology programming languages
  1. //

  2. @

  3. $
  4. /

Reveal answer Fill a bubble to check yourself
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

Multiple choice technology web technology
  1. XSL

  2. XML

  3. XHTML

  4. XSTL

Reveal answer Fill a bubble to check yourself
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.

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