Question

Please answer for all the subparts, explaination is not necessary, only answers will suffice. 1) How...

Please answer for all the subparts, explaination is not necessary, only answers will suffice.

1) How many startDocument events and how many startElement events will be fired when the following XML
SAX parser?
<a>
<b q='yyy'>zzz</b>
<c>nnn</c>
<d>ppp</d>
</a>
a) O startDocument events and 4 startElement events
b) O startDocment events and 3 startElement events
c) 1 startDocment events and 4 start Element events
d) 1 startDocment events and 3 startElement events

2) The bracket in the following is an example of _______.
//Section[@security="public"][@version="final"]
a) using expressions
b) using predicates
c) using nested properties
d) using funtions

3)The proper structure of Xpath expressions includes ______.
a) an axis, node test,optional function
b) an axis, node test, function
c) an axis, node test, optional predicate
d) an axis, node test, predicate

4) XSLT processor can retrieve data based upon which of the following?
a) xsl:templates and match elements
b) xsl:templates elements and its match attribute
c) xsl:templates attribute and match element
d) xsl:templates and match attributes

5) Which statement best describes the benefit of using the following code with SAX?
public class MyClass extends Default Handler

a) By extending the Default Handler we have access to all the method defined in the SAX Interfaces
b) By extending the DefaultHandler we can implement all the methods defined in the interfaces
c) By extending the DefaultHandler we have access to all the methods defined in the ContentHandler interface.
d) By extending the DefaultHandler we can selectively choose which methods defined in the interfaces to implement,

6) Which of the following statements does not offer a good reason to use SAX?

a) It's simple: you need to implement only three or perhaps four interfaces to get going
b) The parser itself typically has a smaller footprint than that of its DOM cousin. In fact, DOM implementations are often built on the top of SAX
c) SAX programming requires fairly intricate state keeping
d) It's quick because it doesn't need to read in the whole document before you start work on it

7)XSLT is a procedural programming language
a) true
b) false
8)The select attribute is a mandatory part of the xsl:value-of element.
a) true
b) false
9)The xsl:copy of element copies all the descendants nodes and attributes.
a) true
b) false
10)The <xsl:for-each> element loops through each node in the result nodelist.
a) true
b) false

11) SAX was developed to work with data that is too large to remain resident in memory
a) True
b) False

12) SVG output is bitmapped like JPEG and GIF
a) True
b) False

13) Which statement about SVG is not true?
a) SVG is an XML application.
b) SVG can be enlarged without pixelation.
c) SVG works very well with photographic images
d) SVG usually has a smaller file size

14) The input document to an XSLT processor is called the _________.
a) input hierarchy
b) input transformation
c) input serialization
d) input tree

0 0
Add a comment Improve this question Transcribed image text
Answer #1

7.False

XSLT is not a procedural programming language but it is functional programming language

8.True

In xsl:element select is the mandatory attribute

9.False

xls:copy only cpoy the current node

10.True

The <xls:for-each> element loops through each node in nodelist

Add a comment
Know the answer?
Add Answer to:
Please answer for all the subparts, explaination is not necessary, only answers will suffice. 1) How...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1) In the XPath data model, a root node represents _______________? a) the document itself b)...

    1) In the XPath data model, a root node represents _______________? a) the document itself b) all within the XML declaration c) all the information within a particular namespace d) the root element 2) What is not a valid XPath data model node? a) Element b) Root c) Attribute d) Text e) Document type declaration 3) which of the following lines is the abbreviated syntax of attribute::attributename? a) %Cattributame b) &attributename c) @attributename d) #attributename 4) Axes are used to...

  • can anyone provide answers with explaination ? thanks a lot I. In the example of recycling...

    can anyone provide answers with explaination ? thanks a lot I. In the example of recycling the elements of a list in O1) time, which situation holds? A. Both lists are circular B. Both ists are not circular C. The list to be recycled is circular, the garbage list is not D. The garbage list is circular, the list to be recycled is not 2. What is the worst-case time to perform MINIMUML) for a sorted, doubly-linked list with nodes?...

  • All the questions please your final answers to the Scantron Answer Sheet. 1. Which of the...

    All the questions please your final answers to the Scantron Answer Sheet. 1. Which of the following processes are required for pregnancy and takes place in the first eight gestational days or less A. ovulation B. fertilization C. implantation D. all of the above E. choice A and B 2. The embryonic period initially starts in the first gestational week A. true B. false 3. Blood pregnancy test or human chorionic gonadotropin is positive in the 2nd gestational week A....

  • Please Show you're work! Please Explain you're answers QUESTION 1 A finite sample space can only...

    Please Show you're work! Please Explain you're answers QUESTION 1 A finite sample space can only contain events that are finite. a. False b. True QUESTION 2 An infinitely large sample space can only contain events that are infinite. a False b-True. QUESTION 3 Consider the experiment of tossing a coin six times. How many outcomes does the sample space for this experiment have? a. 6 b. 12 C. 46 d.36 e.64

  • 1. Decision trees As part of this question you will implement and compare the Information Gain,...

    1. Decision trees As part of this question you will implement and compare the Information Gain, Gini Index and CART evaluation measures for splits in decision tree construction.Let D= (x,y), D = n be a dataset with n samples. The entropy of the dataset is defined as H(D)= P(c|D)log2P(c|D), where P(CD) is the fraction of samples in class i. A split on an attribute of the form X, <c partitions the dataset into two subsets Dy and Dn based on...

  • please answer all questions thanks Question 21 Not yet In a linked-node implementation of a ADT,...

    please answer all questions thanks Question 21 Not yet In a linked-node implementation of a ADT, node does not reference the data in another node answered Points out of 2.00 Select one: True P Flag question False Question 23 Not yet An array implementation of an ADT potentially wastes more space than a linked implementation answered Points out of 2.00 Select one: True P Flag question False Question 25 Should Node be a public class? Briefly explain Not yet answered...

  • please answer all question CSE 110 Introduction to Computer Science 41. An array of size 10,...

    please answer all question CSE 110 Introduction to Computer Science 41. An array of size 10, has only nine slots for storing values TRUE FALSE 42. When is the external name of the file used in the program? A. Any time you read or write to the file B. Never C. Only when reading from the file D. When opening the file stream 43. Creating a flow chart when designing a complex algorithm is a waste of time. TRUE 44....

  • **** ITS MULTI-PART QUESTION. PLEASE MAKE SURE TO ANSWER THEM ALL. SOLVE IT BY JAVA. ****...

    **** ITS MULTI-PART QUESTION. PLEASE MAKE SURE TO ANSWER THEM ALL. SOLVE IT BY JAVA. **** *** ALSO MAKE SURE IT PASS THE TESTER FILE PLEASE*** Often when we are running a program, it will have a number of configuration options which tweak its behavior while it's running. Allow text completion? Collect anonymous usage data? These are all options our programs may use. We can store these options in an array and pass it to the program. In its simplest...

  • Java | answer all the questions 17. Any Java interface must contain certain number of methods....

    Java | answer all the questions 17. Any Java interface must contain certain number of methods. If an interface does not have any method declared, then it is useless. (a)true (b)false 18. Suppose that the name of a parameter is user, which is passed to a JSP. How to use an EL expression to access the value of this parameter in this JSP? Answer: 19. The Java generics are used to reduce errors in Java programs using collection-type objects. Which...

  • Please answer fast with the multiple choice answers only. Thanks a lot 28. Select all of...

    Please answer fast with the multiple choice answers only. Thanks a lot 28. Select all of the function calls that result in this output 32. What is the output of the following? while True: tom dick if 19620: break print(i) harry a) print('tom Andick nharry b) print("'tomdickharry c) print('tom ndickinharry) a) 1 b) 12 c) 123456 d) 13 57911 d) printl'tom dick harry) 33. What is the output of the following? x "abcdef while i in x: a) no output...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT