You are on page 1of 52

Consider the statements: Statement A: Packaging enables you to visualize the functional groups and the relationship among

these. Statement B: Packaging facilitates easy management of large software systems. Which of the following is correct with respect to the above statements? Options 1. Both, Statement A and Statement B, are False. 2. Both, Statement A and Statement B, are True. 3. Statement A is True and Statement B is False. 4. Statement A is False and Statement B is True.

Answer-> 2 -------------------------------------

:-> Not Attempted Feedback:-> None --------------------------------------------------------------------------------

Which diagram represents an instance of a class diagram? Options 1. Object diagram 2. Use case diagram 3. State diagrams 4. Component diagrams

Answer-> 1 -------------------------------------

:-> Not Attempted Feedback:-> None Consider the following statements: Statement A: The constituents of software system need to be grouped so that each constituent is declared in only one package. Statement B: The package is

represented as a square that resembles a folder. Which of the following is correct with respect to the above statements? Options 1. Both, Statement A and Statement B, are False. 2. Both, Statement A and Statement B, are True. 3. Statement A is True and Statement B is False. 4. Statement A is False and Statement B is True.

Answer-> 3 -------------------------------------

:-> Not Attempted Which part of transition stores the information about the event that may cause change in the state of an object? Options 1. Action 2. Target state 3. Guard condition 4. Event trigger

Answer-> 4 -------------------------------------

:-> Not Attempted Feedback:-> None Which part of transition stores the information about the event that may cause change in the state of an object? Options 1. Action 2. Target state 3. Guard condition

4. Event trigger

Answer-> 4 -------------------------------------

:-> Not Attempted Feedback:-> None Which attribute of the software system features indicates the probability of the feature causing undesirable events, such as cost overruns and schedule delays? Options 1. Uncertainty 2. Stability 3. Status 4. Effort

Answer-> 1 -------------------------------------

:-> Not Attempted Which design pattern option allows you to create and manage the lifecycle of the objects? Options 1. Creational 2. Structural 3. Behavioural 4. Singleton

Answer-> 1 -------------------------------------

:-> Not Attempted

Consider the statements: Statement A: A state that contains different substates is called a simple state. Statement B: A substate is a state that is contained within a composite state. Which of the following is correct with respect to the above statements? Options 1. Both, Statement A and Statement B, are False. 2. Both, Statement A and Statement B, are True. 3. Statement A is True and Statement B is False. 4. Statement A is False and Statement B is True.

Answer-> 4 -------------------------------------

:-> Not Attempted

Which option represents the static relationship shared among objects of two classes? Options 1. Association 2. Dependency 3. Generalization 4. Realization

Answer-> 1 -------------------------------------

:-> Not Attempted Consider the following statements: Statement A: Different data types need to be checked in parameterized classes. Statement B: Parameterized classes enable you to reduce the source code by eliminating the need of method overloading. Which of the following is true, with respect to the above statements? Options

1. Both, Statement A and Statement B, are False. 2. Both, Statement A and Statement B, are True. 3. Statement A is True and Statement B is False. 4. Statement A is False and Statement B is True.

Answer-> 4 -------------------------------------

:-> Not Attempted

Consider the following statements: Statement A: The class diagram notation represents the name, attributes, and operations of a class. Statement B: The object diagram notation represents the name and attributes of the object. It also includes the name of the class and the values of the attributes for a specific instance. Which of the following is true, with respect to the above statements? Options 1. Both, Statement A and Statement B, are False. 2. Both, Statement A and Statement B, are True. 3. Statement A is True and Statement B is False. 4. Statement A is False and Statement B is True.

Answer-> 2 -------------------------------------

:-> Not Attempted Which type of message invokes a method of an object? Options 1. Return Message 2. Send Message 3. Call Message 4. Create Message

Answer-> 3

-------------------------------------

:-> Not Attempted Which option defines the module viewtype of software architecture? Options 1. Module viewtype depicts the module that implement a particular function. 2. Module viewtype depicts the collection of components in execution unit. 3. Module viewtype depicts the relationship among the components of a software system with the development environment. 4. Module viewtype depicts the resource allocated for the development of modules of the software system.

Answer-> 1 -------------------------------------

:-> Not Attempted

Which element of activity diagram represents the flow of control? Options 1. Transition 2. Decision 3. Activity state 4. Action state

Answer-> 2 -------------------------------------

:-> Not Attempted

Consider the following statements: Statement A: Sequence diagrams represent interaction between objects in the form of sequence ordered in objects. Statement B: Collaboration diagrams represent

interaction between objects in the form of messages. Which of the following is correct with respect to the above statements? Options 1. Both, Statement A and Statement B, are False. 2. Both, Statement A and Statement B, are True. 3. Statement A is True and Statement B is False. 4. Statement A is False and Statement B is True.

Answer-> 4 -------------------------------------

Which type of message is sent when one object sends signal to another object? Options 1. Call 2. Return 3. Send 4. Create

Answer-> 3 -------------------------------------

:-> Not Attempted Consider the statements: Statement A: A type class represents the abstract behavior of a group of objects and the operations associated with these objects. Statement B: The operations and associations modelled through type classes are not declared. Which of the following is correct with respect to the above statements? Options 1. Both, Statement A and Statement B, are False. 2. Both, Statement A and Statement B, are True. 3. Statement A is True and Statement B is False. 4. Statement A is False and Statement B is True.

Answer-> 3 -------------------------------------

Consider the following statements:Statement A: The generalization relationship exists among actors that have similar behavior and similar properties. Statement B: Association relationship is represented using an arrow or a simple line. Which of the following is correct with respect to the above statements? Options 1. Both, Statement A and Statement B, are False. 2. Both, Statement A and Statement B, are True. 3. Statement A is True and Statement B is False. 4. Statement A is False and Statement B is True.

Answer-> 2 -------------------------------------

:-> Not Attempted

What does + visibility sign indicates about the attributes and operations of a class? Options 1. Indicates that the attribute or operation is visible to classes, which are within the same package. 2. Indicates that the attribute or operation in the base class is visible to derived classes. 3. Indicates that the attribute or operation is not visible to other classes. 4. Indicates that the attribute or operation is visible to other classes.

Answer-> 4 -------------------------------------

Which is the most suitable reason for prioritizing the use cases identifying system boundary? Options 1. To provide the basic functions of a system in the first iteration of the development process 2. To establish the scope of the project 3. To analyze the risks for a project 4. To analyze the efforts needed to implement a use case

Answer-> 1 -------------------------------------

:-> Not Attempted

An activity diagram is used for: Options 1. Modeling flow of control from one activity the other. 2. Static modeling. 3. Architectural modeling. 4. Modeling the change of state of a class.

Answer-> 1 -------------------------------------

Consider the following statements: Statement A: To define a singleton pattern, you use a static data member that keeps track of the life of the created object. Statement B: Builder pattern is similar to abstract factory method because both create family of objects. Which of the following is correct with respect to the above statements? Options 1. Both, Statement A and Statement B, are False. 2. Both, Statement A and Statement B, are True.

3. Statement A is True and Statement B is False. 4. Statement A is False and Statement B is True.

Answer-> 2 -------------------------------------

Consider the following statements: Statement A: Different SDLC models emphasize different aspects of the life cycle and no single SDLC model is appropriate for all the software systems. Statement B: SDLC models is a tailored form of SDLC phases. Which of the following is correct with respect to the above statements? Options 1. Both, Statement A and Statement B, are False. 2. Both, Statement A and Statement B, are True. 3. Statement A is True and Statement B is False. 4. Statement A is False and Statement B is True.

Answer-> 2 -------------------------------------

Consider the following statements:Statement A: Shallow history state enables an application to remember and reactivate a state that is nested at some depth within the composite state. Statement B: Deep history state enables an application to remember and reactivate a state that is at the same nesting depth as the history state. Which of the following is correct with respect to the above statements? Options 1. Both, Statement A and Statement B, are False. 2. Both, Statement A and Statement B, are True. 3. Statement A is True and Statement B is False. 4. Statement A is False and Statement B is True.

Answer-> 1 ------------------------------------What is the status of the BODY element in the SOAP Envelope element if the Header element is not present?

Options 1. First parent element 2. Second child element 3. First child element 4. Second parent element

Answer-> 3 -------------------------------------

:-> Not Attempted What is the status of the BODY element in the SOAP Envelope element if the Header element is not present? Options 1. First parent element 2. Second child element 3. First child element 4. Second parent element

Answer-> 3 -------------------------------------

:-> Not Attempted Which of the following statement is NOT true about information modeling? Options 1. Information Modeling is used to understand the structure and meaning of information that will be stored in XML documents. 2. Information Modeling helps you identify the objects involved in an application, the properties of the objects, and the relationships among them. 3. In an Information Model, each record can contain different data fields. 4. An information model imposes restrictions on data.

Answer-> 4 -------------------------------------

:-> Not Attempted You have created a global attribute named colour. Which of the following attributes of the xsd:attribute element will you use to access the global attribute colour? Options 1. use 2. name 3. ref 4. type

Answer-> 3 -------------------------------------

You have created a global attribute named colour. Which of the following attributes of the xsd:attribute element will you use to access the global attribute colour? Options 1. use 2. name 3. ref 4. type

Answer-> 3 -------------------------------------

Which one of the following set of statements will you use to process all the child nodes of the root node? Options 1. <xsl:template match= root> <xsl:apply-templates/> </xsl:template> 2. <xsl:template match= *> <xsl:apply-templates/> </xsl:template> 3. <xsl:template match= text()> <xsl:apply-templates/> </xsl:template> 4. <xsl:template match= /> <xsl:apply-templates/> </xsl:template>

Answer-> 4 ------------------------------------Which of the following objects can be used to hold a cached XSLT style sheet that can be dynamically associated with an XML document? Options 1. DOMDocument 2. XSLTemplate 3. IXSLProcessor 4. IXMLDOMNode

Answer-> 2 -------------------------------------

Which of the following objects can be used to hold a cached XSLT style sheet that can be dynamically associated with an XML document? Options 1. DOMDocument

2. XSLTemplate 3. IXSLProcessor 4. IXMLDOMNode

Answer-> 2 -------------------------------------

Consider the following statements: Statement A: For documents that need to be parsed in a sequential manner, using SAX API is the ideal solution. Statement B: In situations when memory is a constraint, using DOM is the ideal solution. Which of the following is correct about the above statements? Options 1. Both, Statement A and Statement B, are True. 2. Both, Statement A and Statement B, are False. 3. Statement B is True and Statement A is False. 4. Statement A is True and Statement B is False. Consider the following statements: Statement A: For documents that need to be parsed in a sequential manner, using SAX API is the ideal solution. Statement B: In situations when memory is a constraint, using DOM is the ideal solution. Which of the following is correct about the above statements? Options 1. Both, Statement A and Statement B, are True. 2. Both, Statement A and Statement B, are False. 3. Statement B is True and Statement A is False. 4. Statement A is True and Statement B is False.

Which of the following methods is used to create a new element node in the node tree? Options 1. createNode 2. createElement 3. createNewElement

4. createElementNode

Answer-> 2 -------------------------------------

Which of the following methods is used to create a new element node in the node tree? Options 1. createNode 2. createElement 3. createNewElement 4. createElementNode

Answer-> 2 -------------------------------------

You have created a DOMDocument object named xmlDoc. Which one of the following statements will you use to retrieve the root element of the XML document and store its reference in a variable named root? Options 1. var root = xmlDoc.rootElement 2. var root = xmlDoc.documentElement 3. var root = xmlDoc.xml 4. var root = xmlDoc.text

Answer-> 2 -------------------------------------

Which attribute should be used when the schema element is the parent element of the attribute element?

Options 1. Ref 2. type 3. name 4. use

Answer-> 3 -------------------------------------

:-> Not Attempted Consider the following statements: Statement A: XML does not allow modular updates. Statement B: XML provides user-selected view of data Which of the following is correct about the above statements?

Options 1. Statement A is True and Statement B is False 2. Statement B is True and Statement A is False. 3. Both, Statement A and Statement B, are True. 4. Both, Statement A and Statement B, are False.

Answer-> 2 ------------------------------------Consider the following statements: Statement A: XML does not allow modular updates. Statement B: XML provides user-selected view of data Which of the following is correct about the above statements?

Options 1. Statement A is True and Statement B is False 2. Statement B is True and Statement A is False. 3. Both, Statement A and Statement B, are True. 4. Both, Statement A and Statement B, are False.

Answer-> 2 -------------------------------------

Consider the following statements: Statement A: You can point at a single document by using a hyperlink in HTML. Statement B: HTML links are multidirectional. Which of the following is correct about the above statements?

Options 1. Statement A is True, and Statement B is False. 2. Statement A is False, and Statement B is True. 3. Both, Statement A and Statement B are True. 4. Both, Statement A and Statement B are False.

Answer-> 1 -------------------------------------

Consider the following statements: Statement A: The DOMDocument object is the top-level object in XML DOM. Statement B: The DOMDocument object has methods that support XSLT. Which of the following is correct about the above statements? Options 1. Statement A is True, and Statement B is False. 2. Statement A is False, and Statement B is True. 3. Both, Statement A and Statement B, are True. 4. Both, Statement A and Statement B, are False.

Answer-> 3 -------------------------------------

An element named PRODUCT that contains a single NAME element and one or more COLOR elements

needs to be declared in a DTD. Which of the following statements will you use in a DTD to declare the PRODUCT element? Options 1. <!ELEMENT PRODUCT> 2. <!ELEMENT PRODUCT (NAME,COLOR?)> 3. <!ELEMENT PRODUCT (NAME,COLOR+)> 4. <!ELEMENT PRODUCT (NAME,COLOR)>

Answer-> 3 -------------------------------------

Which one of the following objects enables you to iterate through a collection of nodes? Options 1. DOMDocument 2. IXMLDOMNode 3. IXMLDOMParseError 4. IXMLDOMNodeList

Answer-> 4 -------------------------------------

Which value of the use attribute ensures that an attribute is always set to some value? Options 1. use 2. optional 3. required 4. fixed

Answer-> 2 ------------------------------------Total Questions: 30

Correct: 22 Incorrect: 8 Not Attempted 0 Total Score: 73.33 % Which attribute should be used when the schema element is the parent element of the attribute element? Options 1. Ref 2. type 3. name 4. use Answer-> 3 -------------------------------------

3 Which of the following is the correct way of creating an instance of the DOMDocument object? Options 1. var myxmldoc = new ActiveXObject("Msxml2.DOMDocument.4.0)" 2. var myxmldoc = new DomDocumentObject (Msxml2.0.DOMDocument.4.0)" 3. var myxmldoc = new DomDocument(Msxml2.DOMDocument.4.0)" 4. var myxmldoc = new DomObject(Msxml2.DOMDocument.4.0)" Answer-> 1 -------------------------------------

1 Which element enables the use of child elements in any order? Options 1. all 2. attributeGroup 3. sequence 4. choice Answer-> 1 -------------------------------------

1 Which of the following types is used to set the attribute in a DTD to optional? Options

1. OPTIONAL 2. REQUIRED 3. IMPLIED 4. FIXED Answer-> 3 -------------------------------------

3 Consider the following statements: Statement A: For documents that need to be parsed in a sequential manner, using SAX API is the ideal solution. Statement B: In situations when memory is a constraint, using DOM is the ideal solution. Which of the following is correct about the above statements? Options 1. Both, Statement A and Statement B, are True. 2. Both, Statement A and Statement B, are False. 3. Statement B is True and Statement A is False. 4. Statement A is True and Statement B is False. Answer-> 4 -------------------------------------

4 Which of the following methods is used to create a new element node in the node tree? Options 1. createNode 2. createElement 3. createNewElement 4. createElementNode Answer-> 2 -------------------------------------

1 Consider the following statements: Statement A: XPath treats an XML document as a tree of inter-related branches and nodes. Statement B: A node can be of any type, such as an element, attribute, processing instruction (PI), comment, text, or namespace.

Which of the following is correct about the above statements? Options 1. Statement A is True and Statement B is False. 2. Statement A is False and Statement B is True. 3. Both, Statement A and Statement B, are True. 4. Both, Statement A and Statement B, are False. Answer-> 3 -------------------------------------

3 Which element allows only one of the elements contained in the group to be present within the parent element? Options 1. all 2. attributeGroup 3. choice 4. sequence Answer-> 3 -------------------------------------

3 Which of the following entities is preceded by an ampersand? Options 1. Parameter Entities 2. General Entities 3. Internal Entities 4. External Entities Answer-> 2 -------------------------------------

3 Consider the following statements: Statement A: A CSS file can be used for rendering any number of XML documents. Statement B: An XML document can use any number of CSS files for rendering. Which of the following is correct about the above statements? Options 1. Statement A is True and Statement B is False.

2. Statement B is True and Statement A is False. 3. Both, Statement A and Statement B, are True. 4. Both, Statement A and Statement B, are False. Answer-> 3 -------------------------------------

3 Which of the following is not a limitation of EDI? Options 1. Rigid transaction set 2. Fixed business rules 3. High costs 4. High pace of standards evolution Answer-> 4 -------------------------------------

4 You want to ensure that a link can be traversed only when the user clicks on the linking element. How can you achieve this? Options 1. By setting the value of the show attribute to OnRequest 2. By setting the value of the show attribute to OnLoad 3. By setting the value of the actuate attribute to OnLoad 4. By setting the value of the actuate attribute to OnRequest Answer-> 4 -------------------------------------

2 Which value of the use attribute ensures that an attribute is always set to some value? Options 1. use 2. optional 3. required 4. fixed Answer-> 2 -------------------------------------

3 An element named PRODUCT that contains a single NAME element and one or more COLOR elements needs to be declared in a DTD. Which of the following statements will you use in a DTD to declare the PRODUCT element? Options 1. <!ELEMENT PRODUCT> 2. <!ELEMENT PRODUCT (NAME,COLOR?)> 3. <!ELEMENT PRODUCT (NAME,COLOR+)> 4. <!ELEMENT PRODUCT (NAME,COLOR)> Answer-> 3 -------------------------------------

3 Which one of the following attributes is used to provide additional information about a link to applications? Options 1. Title 2. Role 3. Href 4. actuate Answer-> 2 -------------------------------------

1 Which one of the following objects will you use to hold a collection of schema documents that specifies the rules to which XML documents must conform? Options 1. IXMLDOMNode 2. DOMDocument 3. IXMLDOMParseError 4. XMLSchemaCache Answer-> 4 -------------------------------------

What is the status of the BODY element in the SOAP Envelope element if the Header element is not present? Options 1. First parent element 2. Second child element 3. First child element 4. Second parent element Answer-> 3 -------------------------------------

3 You have created a DOMDocument object named xmlDoc. Which one of the following statements will you use to retrieve the root element of the XML document and store its reference in a variable named root? Options 1. var root = xmlDoc.rootElement 2. var root = xmlDoc.documentElement 3. var root = xmlDoc.xml 4. var root = xmlDoc.text Answer-> 2 -------------------------------------

2 Which one of the following XSLT elements is used to choose between two or more possible courses of action? Options 1. xsl:if 2. xsl:for-each 3. xsl:sort 4. xsl:choose Answer-> 4 -------------------------------------

4 You have created a global attribute named colour. Which of the following attributes of the xsd:attribute element will you use to access the global attribute colour? Options

1. use 2. name 3. ref 4. type Answer-> 3 -------------------------------------

3 You declared some elements and attributes in a DTD and saved the document as prod.dtd. You now need to include a reference to the DTD in an XML document named PRODUCTDATA. This document contains PRODUCTDATA as its root element. Which of the following statements will you use to include a reference for the DTD in the XML document? Options 1. <!DOCTYPE PRODUCTDATA SYSTEM prod.dtd> 2. <!DOCTYPE PRODUCTDATA prod.dtd> 3. <!DOCTYPE SYSTEM prod.dtd> 4. <!DOCTYPE PRODUCTDATA SYSTEM href=prod.dtd> Answer-> 1 -------------------------------------

4 Consider the following statements: Statement A: You can point at a single document by using a hyperlink in HTML. Statement B: HTML links are multidirectional. Which of the following is correct about the above statements? Options 1. Statement A is True, and Statement B is False. 2. Statement A is False, and Statement B is True. 3. Both, Statement A and Statement B are True. 4. Both, Statement A and Statement B are False. Answer-> 1 -------------------------------------

2 Which of the following properties of the IXMLDOMNode object will you use to return the text associated with a node?

Options 1. nodeName 2. xml 3. nodeType 4. nodeValue Answer-> 4 -------------------------------------

4 Which of the following attributes of the xsl:sort element will you use to specify that the uppercase letters will come before the lowercase letters? Options 1. case-order 2. order 3. select 4. data-type Answer-> 1 -------------------------------------

1 You want to create an attribute named baseprice with a default value of 200, for the product element. The attribute should accept integer values. Which of the following statements will you use to declare the attribute? Options 1. <xsd:attribute name=baseprice default= 200 type=xsd:integer> 2. <xsd:attribute name=baseprice; type=xsd:integer; use= default value=200> 3. <xsd:attribute name=baseprice default= 200 type= xsd:integer> 4. <xsd:attribute element= product name= baseprice default= 200 type= xsd:integer> Answer-> 3 -------------------------------------

4 Consider the following statements: Statement A: XSLT is a superset of the CSS functionality. Statement B: XSLT is an application of XML. Which of the following is correct about the above statements?

Options 1. Statement A is True and Statement B is False. 2. Statement A is False and Statement B is True. 3. Both, Statement A and Statement B, are True. 4. Both, Statement A and Statement B, are False. Answer-> 3 -------------------------------------

3 Consider the following statements: Statement A: The DOMDocument object is the top-level object in XML DOM. Statement B: The DOMDocument object has methods that support XSLT. Which of the following is correct about the above statements? Options 1. Statement A is True, and Statement B is False. 2. Statement A is False, and Statement B is True. 3. Both, Statement A and Statement B, are True. 4. Both, Statement A and Statement B, are False. Answer-> 3 ------------------------------------XML Review Question number: 1 Which of the following is a rule for creating a well-formed XML document? 1,Every element must have an attribute, which provides additional information about the element. 2,Every XML document must contain parent and child elements. 3,Every empty element must be closed using a forward slash (/) before the closing angular bracket. 4,Elements must overlap. Answer: 3 ------------------------------------Question number: 2 Which component of an XML document is used to provide additional information about elements? 1,Processing instruction 2,Tag 3,Entity 4,Attribute Answer: 4 -------------------------------------

Question number: 3 Which component of an XML document provides the information about the encoding scheme used in the XML document? 1,Processing instruction 2,Element 3,Entity 4,Attribute Answer: 1 ------------------------------------Question number: 4 Which component of an XML document provides a shortcut to a chunk of data? 1,Processing instruction 2,Element 3,Entity 4,Attribute Answer: 3 ------------------------------------Question number: 5 Which of the following statements is true about entities? 1,An entity provides additional information about the elements used in an XML document. 2,An entity is used to identify and describe data in an XML document. 3,An entity is the information that is represented by elements in an XML document. 4,An entity is a name that is associated with a block of data. Answer: 4 ------------------------------------Question number: 6 The details about customers of an e-Commerce portal site are stored in an XML document. Which one of the following should you use to check whether the document conforms to the DTD or not? 1,Expat, which is a validating parser 2,MSXML, which is a validating parser 3,Expat, which is a non-validating parser 4,MSXML, which is a non-validating parser Answer: 2 -------------------------------------

Question number: 8 Which of the following value types allows you to specify a list of valid values that can be assigned to an attribute? 1,ID 2,FIXED 3,Enumerated 4,PCDATA Answer: 3 ------------------------------------Question number: 9 Which of the following is NOT a valid element name? 1,<Student.Data> 2,<Student-Data> 3,<Student_Data> 4,<Student#Data> Answer: 4 ------------------------------------Question number: 10 What does the ? symbol in the content model of an element declaration in a DTD indicate? 1,The element is mandatory and can appear only once in the corresponding XML document. 2,The element can occur zero or multiple times in the corresponding XML document. 3,The element must appear at least once and there can be multiple occurrences of the elements in the corresponding XML document. 4,The element is optional. If used, the element can appear only once within the parent element in an XML document. Answer: 4 ------------------------------------Question number: 11 You want to display the largest integer that is less than or equal to the argument. Which of the following XPath functions will you use to achieve this? 1,ceiling() 2,round() 3,int() 4,floor() Answer: 4 -------------------------------------

Question number: 12 Which of the following statements should you use to apply the formatting action to all child elements of a node? 1,<xsl:apply-templates/> 2,<xsl:template match="/"> 3,<xsl:template match="*"> 4,</xsl:template> Answer: 1 ------------------------------------Question number: 13 Which one of the following should you use to format data based on conditions? 1,The xsl:if element along with the test attribute 2,The xsl:value-of element along with the select attribute 3,The xsl:value-of element along with the test attribute 4,The xsl:template element along with the match attribute Answer: 1 ------------------------------------Question number: 15 Which of the following are the parent elements for the xsl:sort element? 1,xsl:if or xsl:for-each 2,xsl:for-each or xsl:apply-templates 3,xsl:choose or xsl:apply-templates 4,xsl:if or xsl:choose element Answer: 2 ------------------------------------Question number: 16 Which of the following statements correctly states the difference between HTML and XML? 1,HTML focuses on presentation of data, while XML focuses on data as well as the presentation of data. 2,HTML focuses on data, while XML focuses on the presentation of data. 3,HTML focuses on presentation of data, while XML focuses only on data and not on how the data is to be presented. 4,HTML focuses on data as well as its presentation, while XML focuses only on data. Answer: 3 -------------------------------------

Question number: 19 Assertion: Implementing EDI involves high costs. Reason: EDI is built on fixed transaction set. 1,Both, the assertion and the reason, are correct and the reason is a correct explanation of the assertion. 2,Both, the assertion and the reason, are correct but the reason is not a correct explanation of the assertion. 3,The assertion is correct and the reason is incorrect. 4,The assertion is incorrect. Therefore, the reason does not apply. Answer: 2 ------------------------------------Question number: 21 You want to declare elements for storing student details in an XML document. Student details include STUDENTID and STUDENTNAME. Which of the following statements will you use to declare the required elements in a DTD? 1,<!ELEMENT STUDENT (STUDENTID, STUDENTNAME)> <!ELEMENT STUDENTID (#PCDATA)> <!ELEMENT STUDENTNAME (#PCDATA)> 2,<!ELEMENT STUDENTID (STUDENTNAME)> <!ELEMENT STUDENTID (#PCDATA)> <!ELEMENT STUDENTNAME (#PCDATA)> 3,<ELEMENT STUDENT (STUDENTID, STUDENTNAME)> <ELEMENT STUDENTID (STUDENTNAME)> <ELEMENT STUDENTNAME (#PCDATA)> 4,<!ELEMENT STUDENT (STUDENTID, STUDENTNAME)> <!ELEMENT STUDENTID (@PCDATA)> <!ELEMENT STUDENTNAME (@PCDATA)> Answer: 1 ------------------------------------Question number: 22 Which of the following statements is correct for naming elements in a DTD? Statement A: An element name can start with an underscore or a colon. Statement B: An element name can contain a hyphen or a period. 1,Statement A is correct and statement B is incorrect. 2,Both statements are incorrect. 3,Both statements are correct. 4,Statement A is incorrect and statement B is correct.

Answer: 4 ------------------------------------Question number: 25 Which of the following content models is invalid? 1,<!ELEMENT STUDENT ((NAME, ADDRESS) | DATE_OF_JOINING )> 2,<!ELEMENT STUDENT(NAME, ADDRESS) | (NAME, DATE_OF_JOINING))> 3,<!ELEMENT STUDENT (NAME | ADDRESS | DATE_OF_JOINING) > 4,<!ELEMENT STUDENT (NAME, (ADDRESS | DATE_OF_JOINING) ?)> Answer: 2 ------------------------------------Question number: 26 Which one of the following statements is true about XSLT? 1,XSLT can format non-textual content only. 2,XSLT cannot reorder, add, delete, or perform operations on elements. 3,XSLT is a superset of CSS. 4,XSLT cannot style non-textual content. Answer: 3 ------------------------------------Question number: 27 Which one of the following is NOT an XSLT element? 1,xsl:value-of 2,xsl:text 3,xsl:style-sheet 4,xsl:for-each Answer: 3 ------------------------------------Question number: 29 Statement A: The import element is an element supported by XSLT in which one XSLT style sheet can be reused by another XSLT style sheet. Statement B: The import element is a top-level element that must appear immediately after the stylesheet element. Evaluate the above statements. 1,Statement A is correct and statement B is incorrect. 2,Statement A is incorrect and statement B is correct.

3,Both statements are correct. 4,Both statements are incorrect. Answer: 3 ------------------------------------Question number: 30 Which of the following statements are correct? Statement A: A style sheet is used to transform an XML document into resultant tree structure, which is then used to render the XML document to a specific target. Statement B: A style sheet describes how to present the transformed information. 1,Statement A is correct and statement B is incorrect. 2,Both statements are incorrect. 3,Both statements are correct. 4,Statement A is incorrect and Statement B is correct. Answer: 3 ------------------------------------Question number: 35 Which of the following statements are correct about the element element of XDR? Statement A: If the minOccurs attribute contains zero, it means that the element may or may not occur in the content model. Statement B: If the maxOccurs attribute contains 1, it means that the element can occur only once in the content model. 1,Statement A is correct and statement B is incorrect. 2,Statement A is incorrect and statement B is correct. 3,Both statements are correct. 4,Both statements are incorrect. Answer: 3 ------------------------------------Question number: 36 You need to use an element called <BOLD> within another element called <STATEMENT> in an XML document. Which of the following code snippets would you use to accomplish this task while ensuring that the rules for a well formed XML document are complied with? 1,<STATEMENT><BOLD>I want to display bold text </STATEMENT></BOLD> 2,<STATEMENT><BOLD> I want to display bold text<STATEMENT><BOLD> 3,<BOLD><STATEMENT> I want to display bold text</BOLD></STATEMENT> 4,<STATEMENT><BOLD> I want to display bold text</BOLD></STATEMENT>

Answer: 4 ------------------------------------Question number: 37 Consider the following XML document: <?xml version=1.0?> <LESSONS> <LESSON1 SUMMARY=In the lesson Learning XML Basics, you learned about the basic components of an XML document. > <OBJECTIVE> Identify the need for XML </OBJECTIVE> <OBJECTIVE> Identify the components of an XML document </OBJECTIVE> </LESSON1> </LESSONS> When the above document is opened in IE 5.0, it displays an error message. What could be the cause of the error? 1,The OBJECTIVE element is used within the LESSON1 element multiple times. 2,LESSON1 is an invalid element name. 3,The SUMMARY attribute of the LESSON1 element has a value containing double quotes in it. 4,The document does not conform to the rules for well-formed XML documents. Answer: 3 ------------------------------------Question number: 40 Consider the following extract from an XML document, which contains the details about a product and the order details for the product: <PRODUCT PRODID=P001 NAME=CD> <PRICE> $10 </PRICE> </PRODUCT> <ORDER ORDNO=100> <QTY> 200 </QTY> </ORDER> When the above document is opened in IE 5.0, it gives an error message. What could be the cause of the error? 1,The XML document does not contain the processing instruction. 2,The XML document contains more than one root element. 3,The value of the ORDNO attribute is numeric and, therefore, should not be enclosed in quotes. 4,Tags are not nested correctly. Answer: 0 -------------------------------------

Question number: 41 An XML document contains information about the various parts supplied by the suppliers of an organization. Which of the following statements should be used to declare the attribute called PARTID and ensure that it is unique for every part? 1,<!ATTLIST PARTID ID #REQUIRED> 2,<!ATTLIST PART PARTID ID REQUIRED> 3,<!ATTLIST PART PARTID REQUIRED #ID> 4,<!ATTLIST PART PARTID ID #REQUIRED> Answer: 4 ------------------------------------Question number: 42 Which of the following needs to be done to ensure that the value of an attribute is unique? 1,Specify the attribute type as #REQUIRED and value type as #ID 2,Specify the attribute type as #REQUIRED and value type as ID 3,Specify the attribute type as #IMPLIED and value type as #ID 4,Specify the attribute type as ID and value type as #REQUIRED Answer: 2 ------------------------------------Question number: 43 Invoice details of an organization need to be stored in an XML document. Each invoice should have a unique invoice number. In addition, an invoice can contain details about one or more products, such as the product name, price per unit, and quantity sold. Which of the following content models best matches the requirements specified above? 1,<!ELEMENT INVOICE (INVOICEID, PRODUCT*)> <!ELEMENT PRODUCT (NAME, PRICE, QTY)> 2,<!ELEMENT INVOICE (PRODUCT)+> <!ELEMENT PRODUCT (NAME, PRICE, QTY)> <!ATTLIST INVOICE INVOICEID ID #REQUIRED> 3,<!ELEMENT INVOICE (PRODUCT)*> <!ELEMENT PRODUCT (NAME, PRICE, QTY)> <!ATTLIST INVOICE INVOICEID ID #REQUIRED> 4,<!ELEMENT INVOICE (PRODUCTNAME, PRICE, QTY)> <!ATTLIST INVOICE INVOICEID ID #REQUIRED> Answer: 2 ------------------------------------Question number: 44 You need to declare elements and attributes in a DTD for storing employee leave details. Leave details

include employee id, start date, number of days, and leave category. You need to ensure that leave category can contain only CL, PL, or other as its valid values. If the value for category is not specified, CL should be taken as the default value. Which of the following statements best suits the requirements specified above? 1,<!ELEMENT LEAVE (EMPLOYEEID, STARTDATE, NODAYS, CATEGORY)> <!ELEMENT CATEGORY (CL| PL | Other)> 2,<!ELEMENT LEAVE (EMPLOYEEID, STARTDATE, NODAYS, CATEGORY)> <!ATTLIST CATEGORY (CL| PL | Other)> 3,<!ELEMENT LEAVE (EMPLOYEEID, STARTDATE, NODAYS, CATEGORY> <!ATTLIST LEAVE CATEGORY (CL| PL | Other) CL> 4,<!ELEMENT LEAVE (EMPLOYEEID, STARTDATE, NODAYS) > <!ATTLIST LEAVE CATEGORY (CL|PL|Other) CL> Answer: 4 ------------------------------------Question number: 45 An XML document is used to store the invoice data. The invoice data should consist of the invoice number, customer name, address, and item details including item number, description, quantity, and rate. Multiple items can be purchased against an invoice. At least one item must be present for an invoice. Which one of the following is the best DTD design for the given situation? 1,<!ELEMENT INVOICE (INVOICENUMBER, CUSTNAME, ADDRESS, ITEMNUMBER, DESCRIPTION, QUANTITY, RATE> 2,<!ELEMENT INVOICE (INVOICENUMBER, CUSTOMER, ITEM)> <!ELEMENT CUSTOMER (NAME, ADDRESS)> <!ELEMENT ITEM (NUMBER, DESCRIPTION, QUANTITY, RATE)> 3,<!ELEMENT INVOICE (INVOICENUMBER, CUSTOMER, ITEM+)> <!ELEMENT CUSTOMER (NAME, ADDRESS)> <!ELEMENT ITEM (NUMBER, DESCRIPTION, QUANTITY, RATE)> 4,<!ELEMENT INVOICE (INVOICENUMBER, CUSTOMER, ITEM*)> <!ELEMENT CUSTOMER (NAME, ADDRESS)> <!ELEMENT ITEM (NUMBER, DESCRIPTION, QUANTITY, RATE)> Answer: 3 ------------------------------------Question number: 46 The data about books is stored in an XML document. This data needs to be formatted. The data about books priced higher than $100 and all the books priced $75 need to be displayed in RED. Which of the following conditional constructs should you use to specify the above criteria? 1,<xsl:if test="PRICE[. &> 100 or . = 75]"> 2,<xsl:if test="PRICE[. &> 100 and . = 75]"> 3,<xsl:if test="PRICE[. &> 100] and PRICE[. = 75]">

4,<xsl:if test="PRICE[. &> 100] or PRICE[. = 75]"> Answer: 1 ------------------------------------Question number: 47 Which of the following code fragments would you use to match the elements FIRSTNAME and LASTNAME, and apply the formatting action on them? 1,<xsl:template match="FIRSTNAME|LASTNAME"> 2,<xsl:template match="FIRSTNAME[LASTNAME]"> 3,<xsl:template match="FIRSTNAME[@LASTNAME]"> 4,<xsl:template match="LASTNAME[@FIRSTNAME]"> Answer: 1 ------------------------------------Question number: 48 The data about orders is stored in an XML document. Each order is represented using the Order element. The Order element has an attribute named ProductID. You want to extract all Order elements that have a ProductID value of 1. Which of the following code fragments should you use to do so? 1,<xsl:template match="Order[@ProductID=1]"> 2,<xsl:template match="Order[ProductID=1]"> 3,<xsl:template select="Order[@ProductID=1]"/> 4,<xsl:apply-templates select="@ProductID=1"/> Answer: 1 ------------------------------------Question number: 49 Which of the following is used to apply a cascading stylesheet to an XML document? 1,<?xml-stylesheet type="text/css" href="file1.css"?> 2,<xml-stylesheet type="text/css" href="file1.css"> 3,<?xml-stylesheet type=text/css href=file1.css?> 4,<?xsl-stylesheet type="text/css" href="file1.css"?> Answer: 1 ------------------------------------Question number: 50 Which one of the following statements can be used to process the element TICKETID, having the TICKET element as its ancestor? 1,<xsl:for-each match = "TICKET[TICKETID]" > 2,<xsl:for-each match = "TICKET/TICKETID" >

3,<xsl:for-each select = "TICKETID" > 4,<xsl:for-each match = "TICKET//TICKETID" > Answer: 4 ------------------------------------Question number: 51 Customer data stored on a Web server needs to be displayed in a browser window. The user may use any browser to view the data. Which of the following XML DOM methods should be used to convert data stored in an XML document into the HTML format and display it in the browser? 1,transform() 2,createObject() 3,getElementsByTagName() 4,load() Answer: 1 ------------------------------------Question number: 52 You need to assign a node named objattribnode as an attribute to the parent node name objparentnode. Which of the following code snippets will you use to achieve this requirement? 1,objparentnode.setnode(objattribnode,#attribute) 2,objparentnode.setnodeasattribute(objattribnode) 3,objparentnode.setattributenode(objattribnode) 4,objparentnode.setnode(objattribnode) Answer: 3 ------------------------------------Question number: 53 John needs to find information about all the customers. The details about customers are stored in an XML document. All information about customers is contained in the element named CUSTOMER. Assuming that John uses JavaScript for writing code, which of the following statements should he use to load all the nodes named CUSTOMER? 1,var xmlnodes=xmldoc.getElementsByTagname("CUSTOMER"); 2,var xmlnodes=xmldoc.getElementsbyname("CUSTOMER"); 3,var xmlnodes=xmldoc.getElementsbynodename("CUSTOMER") 4,var xmlnodes=xmldoc.getElementsnamed("CUSTOMER"); Answer: 1

------------------------------------Question number: 54 The details about employees are stored in an XML document. John needs to find the ID for all the employees. The employee ID is stored as an attribute named EMPID of the EMPLOYEE element. Which of the following statements can be used to fetch the value of the EMPID attribute? (The xmlnode variable in the code represents the EMPLOYEE element node.) 1,xmlnode.getAttribute("EMPID") 2,xmlnode.getAttributeValue("EMPID") 3,xmlnode.getAttributeNodeValue("EMPID") 4,xmlnode.getAttributeNode("EMPID") Answer: 1 ------------------------------------Question number: 55 Which of the following statements can be used to load the employee.xml document by using XML DOM in a client-side script? (Assume that MSXML 4.0 parser is being used.) 1,var xmldoc=createObject("Msxml2.DOMDocument.4.0"); xmldoc.async=false; xmldoc.load(employee.xml); 2,var xmldoc=server.createobject("DOMDocument.4.0") xmldoc.async=false; xmldoc.load(employee.xml); 3,var xmldoc=new ActiveXObject("Msxml2.DOMDocument.4.0"); xmldoc.async=false; xmldoc.load(employee.xml); 4,var xmldoc=new ActiveXObject ("Microsoft.MSXML.4.0"); xmldoc.async=false; xmldoc.load(employee.xml); Answer: 3 ------------------------------------Question number: 56 The tickets table contains the details about the tickets sold at a reservation counter. Which of the following URL queries must be used to generate an XML document based on the data stored in the tickets table? All columns from the tickets table must be displayed as elements and not as attributes. A virtual directory called TICKETS is mapped to the database containing ticket details. (To enhance readability, we have added line breaks to the options) 1,http://localhost/ =SELECT+*+FROM+TICKETS+FOR+XML+AUTO, &&root=root 2,http://localhost/TICKETS?sql

=SELECT+*+FROM+TICKETS+FOR+XML+AUTO, ELEMENTS&&root=root 3,http://localhost/TICKETS?sql =SELECT+*+FROM+TICKETS+FOR+XML, AUTO+ELEMENTS&&root=root 4,http://localhost/TICKETS sql =SELECT * FROM TICKETS FOR XML AUTO ELEMENTS &&root=root Answer: 2 ------------------------------------Question number: 57 You need to execute a URL query to display all the details of employees. The employee details are stored in the EMPLOYEES table of the ORGANIZATION database. The name of the virtual directory is EMPLOYEES and the server name is testserver. Which of the following code can be used to execute the URL query? (To enhance readability, we have added line breaks to the options) 1,http://testserver/EMPLOYEES?sql =SELECT*FROM EMPLOYEES+FOR+XML+AUTO &&root=root 2,http://EMPLOYEES?sql testserver =SELECT+*+FROM+EMPLOYEES+FOR+XML+AUTO &&root=root 3,http://testserver/EMPLOYEES?sql =SELECT+*+FROM+EMPLOYEES+FOR+XML+AUTO &&root=root 4,http://testserver?sql =SELECT+*+FROM+EMPLOYEES+FOR+XML+AUTO &&root=root Answer: 3 ------------------------------------Question number: 58 You need to execute a URL query to display all the details of products. The product details are stored in the PRODUCTS table of the SALES database. The name of the virtual directory is SALEDATA and the server name is saleserver. Which of the following code can be used to execute the URL query? (To enhance readability, we have added line breaks to the options) 1,http://saleserver/SALES? sql=SELECT*FROM PRODUCTS+FOR+XML+AUTO &&root=root 2,http://SALES?sql saleserver =SELECT+*+FROM+PRODUCTS+FOR+XML+AUTO &&root=root 3,http://saleserver/SALEDATA?sql =SELECT+*+FROM+PRODUCTS+FOR+XML+AUTO &&root=root

4,http://saleserver?sql =SELECT+*+FROM+PRODUCTS+FOR+XML+AUTO &&root=root Answer: 3 ------------------------------------Question number: 59 You need to execute a URL query for displaying all the details of sales. The sales details are stored in the SALES table of the SALESDB database. The name of the virtual directory is SALEDATA and the server name is saleserver. Which of the following code can be used for executing the URL query? (To enhance readability, we have added line breaks to the options) 1,http://saleserver/SALESDB?sql=SELECT*FROM SALES+FOR+XML+AUTO&&root=root 2,http://SALESDB?sql saleserver =SELECT+*+FROM+PRODUCTS+FOR+XML+AUTO&&root=root 3,http://saleserver/SALESDATA?sql =SELECT * FROM PRODUCTS FOR XML AUTO &&root=root 4,http://saleserver/SALEDATA?sql=SELECT+*+FROM+PRODUCTS+FOR+XML+AUTO&&root=root Answer: 4 ------------------------------------Question number: 60 The PURCHASES table contains the details about the purchases made by a company. Which of the following URL queries must be used to generate an XML document based on the data stored in the PURCHASES table? All columns from the PURCHASES table must be displayed as elements and not attributes. A virtual directory called PODATA is mapped to the database containing purchases details. (To enhance readability, we have added line breaks to the options) 1,http://localhost/ =SELECT+*+FROM+PURCHASES+FOR+XML+AUTO, &&root=root 2,http://localhost/PODATA?sql=SELECT+*+FROM+PURCHASES+FOR+XML+AUTO,ELEMENTS&&root=root 3,http://localhost/PODATA?sql=SELECT+*+FROM+PURCHASES+FOR+XML,AUTO+ELEMENTS&&root=root 4,http://localhost/PODATA sql=SELECT * FROM TICKETS FOR XML AUTO ELEMENTS &&root=root Answer: 2 ------------------------------------Question number: 61 The data about products offered at an e-Commerce site is stored in an XML document. The data is to be presented in a browser window in the ascending order of PRICE and descending order of PRODUCTCODE. Which of the following code segments should be used in the XSLT style sheet? 1,<xsl:sort select=+PRICE, -PRODUCTCODE> 2,<xsl:sort select=PRICE datatype=integer> <xsl:sort select=PRODUCTCODE datatype= string> 3,<xsl:sort select=PRICE data-type=number order=ascending> <xsl:sort select=PRODUCTCODE data-type=text order=descending>

4,<xsl:sort select=PRICE data-type=number order=ascending /> <xsl:sort select=PRODUCTCODE data-type=text order=descending /> Answer: 4 ------------------------------------Question number: 62 An XML document contains data about machinery. There are various categories of machineries. The categories are represented using an attribute named CATEGORY within the MACHINE tag. Which of the following templates should be used for specifying the category CONSTRUCTION? 1,<xsl:template match="CATEGORY[MACHINERY=CONSTRUCTION]"> 2,<xsl:template match="MACHINE[CATEGORY=CONSTRUCTION]"> 3,<xsl:template match="MACHINE[@CATEGORY=CONSTRUCTION]"> 4,<xsl:template match="MACHINE/@CATEGORY=CONSTRUCTION"> Answer: 3 ------------------------------------Question number: 63 A user writes the following statement in an XSLT style sheet: <xsl:value-of select=sum( PRICE * QTY) /> However, when the style sheet is applied to an XML document, the above line causes an error message to be displayed in the browser. What could be the cause of the error? 1,The product of PRICE and QTY returns a numeric value. However, the sum() function does not take a numeric value as its parameter. 2,The xsl:value-of element is not closed properly. 3,The sum() function cannot be used within the xsl:value-of element. 4,The select attribute cannot be used with the xsl:value-of element. Answer: 1 ------------------------------------Question number: 64 A user writes the following statement in an XSLT style sheet: <xsl:value-of select=sum (BASIC*0.5) /> However, when the style sheet is applied to an XML document, the above line causes an error message to be displayed in the browser. What could be the cause of the error? 1,The product of PRICE and QTY returns a numeric value. However, the sum() function does not take a numeric value as its parameter. 2,The xsl:value-of element is not closed properly. 3,The sum() function cannot be used within the xsl:value-of element.

4,The select attribute cannot be used with the xsl:value-of element. Answer: 1 ------------------------------------Question number: 65 Which of the following statements is NOT used as a part of the default template rule? 1,<xsl:template match=/> <xsl:apply-templates /> </xsl:template> 2,<xsl:template match=*> <xsl:apply-templates /> </xsl:template> 3,<xsl:template match=text()> <xsl:apply-templates/> </xsl:template> 4,<xsl:template match=text()> <xsl:value-of select=./> </xsl:template> Answer: 3 ------------------------------------Question number: 66 Which of the following code snippets can be used to load an XML document called prod.xml and display an error message if the document does not conform to the DTD used by it? 1,var myxmldoc=new ActiveXObject("Msxml2.DOMDocument.4.0"); myxmldoc.async=false; myxmldoc.validate=true; myxmldoc.load("prod.xml"); if (myxmldoc.readyState == 4 && myxmldoc.parseError.errorCode ==0) { alert (The XML document does not conform to the DTD); } 2,var myxmldoc=new ActiveXObject("Msxml2.DOMDocument.4.0"); myxmldoc.async=false; myxmldoc.validateOnParse=true; myxmldoc.load("prod.xml"); if (myxmldoc.readyState == 4 && myxmldoc.parseError.errorCode !=0) { alert (The XML document does not conform to the DTD); } 3,Var myxmldoc=CreateObject("Msxml2.DOMDocument.4.0");

myxmldoc.async=false; myxmldoc.validate=true; myxmldoc.load("prod.xml"); if (myxmldoc.readyState != 4 && myxmldoc.parseError.errorCode !=0) { alert (The XML document does not conform to the DTD); } 4,var myxmldoc=new ActiveXObject("Msxml2.DOMDocument.4.0"); myxmldoc.async=false; myxmldoc.parseError=true; myxmldoc.load("prod.xml"); if (myxmldoc.readyState == 4 && myxmldoc.errorCode==0) { alert (The XML document does not conform to the DTD); } Answer: 2 ------------------------------------Question number: 67 Which of the following code snippets will you use to load an XML schema called product.xsd and associate it with an XML document represented by the object xmlDoc? 1,Var namespace=xmlDoc.documentElement.namespaceURI; xmlDoc.validateOnParse=true; var xsdschemacache = new ActiveXObject("Msxml2.XMLSchemaCache.4.0"); xsdschemacache.add(namespace, product.xsd); xmlDoc.schemas=xsdschemacache; 2,var namespace=xmlDoc.namespaceURI; xmlDoc.validateOnParse=true; var xsdschemacache = new ActiveXObject("Msxml2.XMLSchemaCache.4.0"); xsdschemacache.load(namespace, product.xsd); xmlDoc.schemas=xsdschemacache; 3,Var namespace=xmlDoc.documentElement.namespaceURI; xmlDoc.validateOnParse=true; var xsdschemacache = new ActiveXObject("Msxml2.XSDSchemaCache.4.0"); xsdschemacache.load(namespace, product.xsd); xmlDoc.schemas=xsdschemacache; 4,Var namespace=xmlDoc.documentElement.namespaceURI; xmlDoc.validateOnParse=true; var xsdschemacache = new ActiveXObject("Msxml2.XSDSchemaCache.4.0"); xsdschemacache.add(namespace, product.xsd); xmlDoc.schemas=xsdschemacache; Answer: 1

------------------------------------Question number: 68 Which of the following code snippets will you use to load an XML document called emp.xml in a synchronous mode and display the value contained in all EMPLOYEE elements of the XML document? 1,var cnt; var xmlDoc=new ActiveXObject(Msxml2.DOMDocument.4.0); xmlDoc.async=false; xmlDoc.load(emp.xml); var myelements=xmlDoc.getElementsByTagName(EMPLOYEE); for (cnt=0; cnt<myelement.length; cnt++) alert(myelements.item(cnt).text); 2,var cnt; var xmlDoc=new ActiveXObject(Msxml2.DOMDocument.4.0); xmlDoc.async=false; xmlDoc.load(emp.xml); var myelements=xmlDoc.getElementsByTagName(EMPLOYEE); for (cnt=0; cnt<myelement.length; cnt++) alert(myelements.item(cnt).xml); 3,var cnt; var xmlDoc=new ActiveXObject(Msxml2.DOMDocument.4.0); xmlDoc.load(emp.xml); var myelements=xmlDoc.getElements(EMPLOYEE); for (cnt=0; cnt<myelement.length; cnt++) alert(myelements.item(cnt).text); 4,var cnt; var xmlDoc=new ActiveXObject(Msxml2.DOMDocument.4.0); xmlDoc.async=false; xmlDoc.load(emp.xml); var myelements=xmlDoc.getTags(EMPLOYEE); for (cnt=0; cnt<myelement.length; cnt++) alert(myelements.item(cnt).xml); Answer: 1 ------------------------------------Question number: 69 Which of the following code snippets will you use to load an XSLT style sheet file called product.xsl and apply it with an XML document represented by the object xmlDoc? 1,var xslt=new ActiveXObject(Msxml2.XSLTemplate.4.0); var xslDoc=new ActiveXObject(Msxml2.DOMDocument.4.0); xslDoc.load(product.xsl);

xslt.stylesheet=xslDoc; var xslproc=xslt.createProcessor(); xslproc.input=xmlDoc; xslproc.transform(); 2,var xslDoc=new ActiveXObject(Msxml2.DOMDocument.4.0); xslDoc.load(product.xsl); var xslproc=xslDoc.createProcessor(); xslproc.input=xslDoc; xslproc.transform(); 3,var xslt=new ActiveXObject(Msxml2.XSLTemplate.4.0); var xslDoc=new ActiveXObject(Msxml2.DOMDocument.4.0); xslDoc.load(product.xsl); xslDoc.input=xmlDoc; xslDoc.transform(); 4,var xslt=new ActiveXObject(Msxml2.XSLTemplate.4.0); xslt.load(product.xsl); var xslproc=xslt.createProcessor(); xslproc.input=xmlDoc; xslproc.transform(); Answer: 1 ------------------------------------Question number: 70 You have loaded an XML document called products.xml in an instance of the DOMDocument object called xmlDoc. Which of the following code snippets will you use to check whether the document is well-formed and display all the nodes of the XML document? 1,var cnt; if (xmlDoc.readyState==4 && xmlDoc.parseError.errorCode==0) { for(cnt=0; cnt < xmlDoc.documentElement.childNodes.length; cnt++) alert ( xmlDoc.documentElement.childNodes.item(cnt).xml); } else alert (The XML Document is Not Well-formed); 2,var cnt; if (xmlDoc.readyState=4 && xmlDoc.errorCode=0) { for(cnt=0; cnt < xmlDoc.documentElement.childNodes.length; cnt++) alert ( xmlDoc.documentElement.childNodes.item(cnt).xml); } else alert (The XML Document is Not Well-formed);

3,var cnt; if (xmlDoc.readyState!=4 && xmlDoc.errorCode!=0) { for(cnt=0; cnt < xmlDoc.documentElement.childNodes.length; cnt++); alert ( xmlDoc.documentElement.childNodes.item(cnt).xml); } else alert (The XML Document is Not Well-formed); 4,var cnt; if (xmlDoc.readyState==4 && xmlDoc.errorCode!=0) { for(cnt=0; cnt < xmlDoc.childNodes.length; cnt++) alert ( xmlDoc.childNodes.item(cnt).xml); } else alert (The XML Document is Not Well-formed); Answer: 1 ------------------------------------Question number: 71 Which one of the following is the syntax for the attribute element of XSD? 1,<attribute type=attributetype required={yes | no } /> 2,<attribute=attributetype required={yes | no } /> 3,<attributename=attributetype required={yes | no } /> 4,<attribute type=attributetype /> Answer: 1 ------------------------------------Question number: 72 The string data type belongs to which of the following categories of data types? 1,Atomic 2,Derived 3,List 4,Union Answer: 1 ------------------------------------Question number: 73 What does the sequence element of XSD indicate?

1,All the elements specified within this element must compulsorily appear in the XML document. 2,All the elements specified within this element must compulsorily appear in the XML document, and they must appear in the specified order. 3,The elements specified within this element can appear zero or more than once in the XML document. 4,All the elements specified within this element must compulsorily appear in the XML document, but they can appear in any order. Answer: 2 ------------------------------------Question number: 74 What does the all element of XSD indicate? 1,All the elements specified within this element must compulsorily appear in the XML document. 2,All the elements specified within this element must compulsorily appear in the XML document, and they must appear in the specified order. 3,The elements specified within this element must appear in the XML document in the same order in which it is declared within the sequence element. 4,All the elements specified within this element can appear in any order in the XML document. Answer: 4 ------------------------------------Question number: 75 Which of the following code snippets would you use to specify a default declaration of a namespace? 1,<xsd:schema default="http://www.w3.org/2001/XMLSchema"> 2,<schema xmlns="http://www.w3.org/2001/XMLSchema"> 3,<schema xmlns:xsd=http://www.w3.org/2001/XMLSchema> 4,<ns:schema xmlns:default="http://www.w3.org/2001/XMLSchema"> Answer: 2 ------------------------------------Question number: 76 Which of the following code snippets is well-formed? 1,<Invoice number=200> <part number=1><description>pen</description> <amount> 10</amount></invoice> 2,<Invoice number="200"> <part number="1"/> <description>pen</description>

</invoice> 3,<Invoice number="200"> <part number="1"/> <description>pen</description> </Invoice> 4,<Invoice number="200"> <part number="1"/> <description>pen</description> </part number> </Invoice number> Answer: 3 ------------------------------------Question number: 77 Which of the following code snippets is well-formed? 1,<book bookid=b001> <name=If Tomorrow Comes /> <author> Sydney Sheldon </author> </book> 2,<book bookid=b001> <name> If Tomorrow Comes <author> Sydney Sheldon </name> </author> </book> 3,<book bookid=b001> <name> If Tomorrow Comes <author> Sydney Sheldon </author></name> </book> 4,<book bookid=b001> <name> If Tomorrow Comes <author> Sydney Sheldon </author> </name> </Book> Answer: 3 ------------------------------------Question number: 78 Which of the following code snippets is well-formed? 1,<EMPLOYEE EMPNO=E001> <EMPNAME> James Williams </EMPNAME> <EMPADD> <STREET> Lions Street <CITY> BOSTON </CITY> </STREET> </EMPADD> </EMPLOYEE> 2,<EMPLOYEE EMPNO=E001 /> <EMPNAME> James Williams </EMPNAME> <EMPADD> <STREET> Lions Street <CITY> BOSTON </CITY> </STREET> </EMPADD> </EMPLOYEE>

3,<EMPLOYEE EMPNO=E001> <EMPNAME> James Williams </E StumbleUpon reddit

hhXi KIS 9 Trial Vnh Vin!

Commentaires

Hin C Nnghienconuong # samedi 21 mars 2009 01:36:00 Which of the following code snioppets would you use to specify a default declaration of a namespace? ---> <schema xmlns=?"http://www.w3.org/2001/XMLSchema"> The tickets table contains the details about... ----> http://localhost/TICKETS?sql=SELET+*+FROM_TICKETS+FOR_ZML+AUTO,ELEMENTS&root=root An XML document contains information about the various parts... ---<!ATTLIST PART PARTID #REQUIRED> Which of the following statements is true about entities? ---An entity is a name that is associated with a block of data Customer data stores on a Web server needs to be displayed in a browser window --- Transform() Which of the following is used to apply a cascading stylesheet to an XML docuent? ---<?xml-stylesheet type="text/css" href="file1.css"?> A user writes thew following statement in an XSLT style sheet... ----The product of PRICE and QTY........... Statement A: XML is a plain-text format that enables you to store data in a structures format bu using meaningful tags. Statement B: XML alows you to format data as per the.... --- Both statements are correct.

You need to sassign a node named objattribnode as an atribute to the partent... ----objpartentnode.setatributenode(objattribnode) Which of the following are the parent elements for the xsl:sort element? ---xsl:for-each or xsl:apply-templates A: The value of element instrucks the XSLT process te information.... B: The sort element has select, order, case-order..... ----A incorect B correct P001 10 100 200 IE5.0 ---The XML document contains more than one root element Invoice details of an organzization need to be stores in an XML document . Each incoice should have a unique... ---<!ELEMENT INVOICE(PRODUCT)+> Which component of an XML document provides a shortcut to a chunk of data? --- Entity The data about orders is stored in an XML document. Each order is represented using the Order element. ---<xsl:template match="Order(@ProductID=1)"> Which of the following statements is tru forn-tier architecture? ---In n-tier architecture, the user interface... You want to declare elements for storing student details in an XML document... ---...(STUDENTID< STUDENTNAME # # A: A reference to an internal DTD file is included in the XML document B: Internal DTD files can be used across multiple douments ---Both ..incorect Which of the following is a rule for creating a well-formed XML document? ---Every empty element must be closed...........

What will the following XPath expression return? substring-before(2001/07/09","/") ---2001