1.
In order to indicate to an application processing the
style sheet to look for <All> tags followed by<Perfect> tags the
syntax is:
Correct Answer
D. All.Perfect
Explanation
CSS use space for Contextual CSS
2.
Logical structure of data
can be interpreted and used in many ways by various applications due to XML
tags
Correct Answer
B. True
Explanation
The statement is true because XML tags provide a standardized way of organizing and representing data, allowing different applications to interpret and use the data in a consistent manner. XML tags define the structure and hierarchy of the data, making it easier for applications to understand and manipulate the information. This flexibility and interoperability make XML a popular choice for data exchange and integration between different systems and platforms.
3.
End of a CDATA block is characterized by
the character string
Correct Answer
D. ']]'
Explanation
The end of a CDATA block is characterized by the character string ']]'.
4.
Syntax for declaring an external DTD to an XML document is:
Correct Answer
A. <!DOCTYPE rootElementName SYSTEM "path/to/dtdFile.dtd">
Explanation
The DOCTYPE declaration specifies the root element of the document and provides a reference to the external DTD file using the SYSTEM keyword followed by the path to the DTD file.
5.
Writing an Internal DTD inside a DOCTYPE is
known as:
Correct Answer
A. Declaration
Explanation
An internal DTD is a set of rules and declarations that define the structure and content of an XML document. In this context, writing an internal DTD inside a DOCTYPE is known as a declaration. The DOCTYPE declaration is used to specify the type of document being defined and can include an internal DTD to define the rules and structure of the document.
6.
<?xml version="1.0"?>
<script>
<!CDATA
function matchwo(a,b)
{
if (a < b && a < 0) then
{
return 1
}
}
>
</script>
The above code [http://tr.im/Eodt - code 1]:
Correct Answer
A. A) Generates an error
Explanation
The code generates an error because the "if" statement is not properly formatted. The syntax of the "if" statement should be "if (condition) { code }", but in this code, there is an extra "then" keyword after the condition. This extra keyword causes a syntax error, resulting in the code failing to execute correctly.
7.
(eval|eval|___) the following value
indicates that
Correct Answer
B. B) The value is a list of entities
Explanation
The correct answer is B) The value is a list of entities. This means that the value in question is a collection of multiple entities or items. It is not a notation, character data, or none of the above.
8.
<!ELEMENT Circle EMPTY>
<!ATTLIST Circle
radius CDATA "20">
The
following code indicates that the circle is defined as an empty element,with
the radius attribute having a default value of 20 and type CDATA.
Correct Answer
B. B) True
Explanation
The given code indicates that the Circle element is defined as an empty element, meaning it does not have any child elements. It also specifies that the Circle element has an attribute called radius, which has a default value of 20 and is of type CDATA. Therefore, the statement "The following code indicates that the circle is defined as an empty element, with the radius attribute having a default value of 20 and type CDATA" is true.
9.
XML vocabulary is used for specifying
formatting semantics.
Correct Answer
B. B) True
Explanation
XML vocabulary is used for specifying the structure and content of data, not for formatting semantics. XML is a markup language that allows users to define their own tags and structure data in a hierarchical format. It is primarily used for data storage, exchange, and representation, rather than for specifying formatting or visual presentation. Therefore, the correct answer is true.
10.
Identify the correct statements (choose
two)
Correct Answer(s)
B. B) CSS is an extension of HTML
D. D) XSL is an extension of XML
Explanation
CSS is an extension of HTML because CSS is used to style and format the content of HTML documents. It allows for the separation of presentation and structure, making it easier to design and maintain web pages. XSL is an extension of XML because XSL is a language used to transform XML documents into different formats, such as HTML or PDF. It is commonly used for displaying XML data in a more user-friendly manner.
11.
It is possible to have a property with multiple values
Correct Answer
B. B) True
Explanation
In CSS, it is possible to assign multiple values to a single property using various techniques such as shorthand properties, comma-separated values, or using multiple declarations for the same property. This allows for more efficient and concise styling of elements with different characteristics.
12.
Selectors helping us to differentiate
between different occurrences of a tag are termed as
Correct Answer
B. B) Contextual Selectors
Explanation
Contextual selectors are selectors that help us differentiate between different occurrences of a tag based on their context or relationship with other elements in the HTML structure. They allow us to select elements based on their parent-child relationship, sibling relationship, or ancestor-descendant relationship. This helps in targeting specific elements within a complex HTML structure and applying different styles or behaviors to them.
13.
HTML linking is one to one
and is hardcoded in the HTML file. This indicates that HTML has a robust
linking mechanism which is an advantage of using HTML
Correct Answer
B. B) False
Explanation
HTML linking is not one to one and is not hardcoded in the HTML file. In fact, HTML links can be dynamic and can be created using various attributes and properties such as href, src, and action. This allows for flexibility in linking to different web pages, images, or resources. Therefore, the statement that HTML has a robust linking mechanism is not true.
14.
S{margin-right:-3cm;}
Is
the above statement valid?
Correct Answer
A. A) Yes
Explanation
The given statement is valid because it is a simple yes or no question and the answer provided is "Yes".
15.
The element 'Schema' is declared in DTD as
having three child elements, which are: (choose three)
Correct Answer(s)
A. A) Datatype
B. B) ElementType
D. D) AttributeType
Explanation
The correct answer is A) Datatype, B) ElementType, and D) AttributeType. In a DTD, the 'Schema' element is declared to have three child elements, which are Datatype, ElementType, and AttributeType. These child elements define the data types, element types, and attribute types, respectively, within the schema. The other options, C) description and E) archtype, are not mentioned in the given information and therefore cannot be considered as correct child elements of the 'Schema' element.
16.
XSLT and CSS are compatible standards.
Correct Answer
B. B) True
Explanation
XSLT (Extensible Stylesheet Language Transformations) and CSS (Cascading Style Sheets) are both standards used for styling and formatting XML and HTML documents. While they have different syntax and purposes, they can be used together to enhance the presentation of web pages. XSLT is primarily used for transforming XML data into different formats, while CSS is used for controlling the visual appearance of HTML elements. Therefore, XSLT and CSS are compatible standards that can be used in conjunction with each other.
17.
The property 'nextSibling' in DOMDocument
Object contains the next node of the previous nodes in the parent's child list.
Correct Answer
B. B) True
Explanation
The statement is true. The property 'nextSibling' in DOMDocument Object does indeed contain the next node of the previous nodes in the parent's child list. This property allows you to access the next sibling node of a given node in the DOM tree structure.
18.
The 'nextNode' method in the XMLDOMNodeLis
Object returns a NULL value if there is no next node.
Correct Answer
B. B) True
Explanation
The 'nextNode' method in the XMLDOMNodeList object returns a NULL value if there is no next node. This means that if there are no more nodes to iterate through, the method will return NULL instead of a valid node. Therefore, the correct answer is B) True, as the statement is true.
19.
In DOM, it is not necessary that an object
for a valid node type will always be returned.
Correct Answer
B. B) True
Explanation
In DOM, it is possible that an object for an invalid node type may be returned. This means that it is not necessary that a valid node type will always be returned in DOM. Therefore, the correct answer is true.
20.
In CSS, separation of multiple value
combinations is by using a:
Correct Answer
B. B) Semi-colon (;)
Explanation
In CSS, multiple value combinations are separated by using a semi-colon (;). This allows the CSS rules to be written in a clear and organized manner, with each value combination ending with a semi-colon to indicate the end of that particular rule. This ensures that the CSS code is properly structured and easy to read and understand.