B. V. Patel Institute of Business Management, Computer and 2015 Information Technology, UTU
B. V. Patel Institute of Business Management, Computer and 2015 Information Technology, UTU
B. C. A (3rd Semester)
030010308: Advanced Web Design
Question Bank
Unit 1: Advanced Elements of Hypertext Markup Language Short questions: 1. What is the latest version of HTML? 2. What is the significance of the statement ? 3. What is a difference between and elements? 4. Which element is used to display newspaper article? 5. Write HTML snippet code to display following output? Assignment submission data is 30/07/2015. 6. Which element is used to support 2D and 3D drawings? 7. What are the two attributes of element introduced in HTML5? 8. Which attribute is used to hides non-relevant elements? 9. State a difference between draggable and dragzone attributes. Give an example of it. 10. Write HTML5 basic document structure. 11. List at least six different values of type attribute of element which are introduced in HTML5. 12. Identify the element which displays an independent, self-contained content of a blog or magazine. 13. Which element is used to define a set of navigation links? Write a snippet code to show the use of such element. 14. Write the output of following snippet code: Show detail More detail 15. Which element is used to expand or collapse according to the requirement? Write a suitable example of it. 16. What is the difference between following two statements? Statement 1: The Board of Directors meeting is scheduled at . Statement 2: The Board of Directors meeting is scheduled at 10:30am. 17. Write snippet code to play audio which start again every time it is finished. 18. What is the significance of
Long questions: 1. Write snippet code to play a video in muted mode which can be play or pause manually on web page. 2. State any four differences between HTML and HTML5. 3. Discuss any four new features of HTML5. 4. List and explain any four new elements introduced in HTML5 with suitable example of each. 5. Write snippet code to drag and drop a button on web page. 6. Explain multimedia elements with suitable example of each. 7. Briefly discuss the microdata attributes with suitable example. 8. What other advantages does HTML5 have?
Ms. Khushbu Patel 1
B. V. Patel Institute of Business Management, Computer and 2015 Information Technology, UTU
9. What is the use of
Multiple choice questions: 1. The default character encoding in HTML5 is. a. UTF-16 b. UTF-32 c. UTF-8 d. ISO-8859-1 2. Which one of the following microdata attribute is represents a valid URL to define a specific type of items? a. itemid b. itemscope c. itemref d. itemtype 3. Which one of the following attribute represents a keyboard shortcut to access an element? a. keygen b. accesskey c. keyaccess d. keyboardaccess 4. SVG graphics do not lose quality when they are realized? a. True b. False c. Cannot determine d. None of the above 5. Which modern browser does not support the HTML5 elements? a. IE8 b. Safari c. Mozilla d. Chrome 6. In SVG, each drawn shape or figure is considered or remembered as ______. a. Class b. Object c. Method d. None 7. Which one of the following element is used to highlight text in a document? a. b. c. d.
Ms. Khushbu Patel 2
B. V. Patel Institute of Business Management, Computer and 2015 Information Technology, UTU
c. dropzone d. contextmenu 9. Which of the following is not form controls elements in HTML5? a. url b. search c. money d. email 10. Which of the following is not new element of HTML5? a. b. c.
Which of the following is true? a. It should load the entire video when the page loads. b. It should load only metadata when the page loads. c. It should load the part of video when the page loads. d. It should not load the video when the page loads. 13. Which of the following attribute is used to specify the title of the text track in a
Ms. Khushbu Patel 3
B. V. Patel Institute of Business Management, Computer and 2015 Information Technology, UTU
d. Both (A) and (C) 17. Correct way to declaring character encoding in html5 is: a. b. d. 18. How can we create DOCTYPE in html5? a. b. c. d. 19. The following elements ,
True or False 1. HTML5 doesn’t allow linking a document with another document. 2. Frame concept is available in HTML5. 3. HTML5 will work if is not putted. 4. Semantic elements are not supported by Internet Explore. 5. Only one element is used in one document. 6. Text between the tags will only display in browsers that do not support the
Fill in the blanks 1. A browser interprets an HTML document on basis of ______that are added in the document. 2. ______is used to provide additional information about the properties and behaviour of HTML elements.
Ms. Khushbu Patel 4
B. V. Patel Institute of Business Management, Computer and 2015 Information Technology, UTU
3. ______is a data of an HTML document that can be read by computer to process the document on the basis of its essential details. 4. Microdata contain groups of name-value pairs, which are called ______. 5. ______attribute specify the drop target for a dragged element. 6. element is used to instruct web browser to specify ______of markup language used in the HTML document. 7. The controls attribute adds video controls, like ______, ______and ______. 8. Subtitle, src, srclang are the attributes of ______element. 9. ______attribute specifies that the audio/video will start playing as soon as it is ready 10. ______attribute specifies whether or not the spelling or grammar checking feature is enabled for an element.
Unit 2: Advanced Attributes of Hypertext Markup Language Short questions: 1. Why contenteditable attribute is called global attribute? 2. Match following attributes with its description. Attributes Description 1. novalidate a. Specifies whether or not the spelling or grammar checking feature is enabled for an element. 2. autocomplete b. Specifies whether the content of an element is editable or not. 3. spellcheck c. Specifies that the form-data (input) should not be validated when submitted. 4. contenteditable d. Specifies whether or not an input field should have autocomplete enabled. 3. Write snippet code which allows editing and correcting spelling mistake in any 10 dictionary words. 4. Consider the below snippet code and write the use of autocomplete attribute in the code. What shall be the output if autocomplete=”on” is written on email field?
5. Write snippet code which allows a user to select only date of current month. 6. What is a difference between formaction and action attributes? 7. The min and max attributes work with which of the following input types? text, datetime, month, range, week, file, url 8. Consider the following code and write any two invalid value and valid value. 9. Which two objects are draggable by default? 10. Compare and contrast between novalidate and formnovalidate attributes.
Ms. Khushbu Patel 5
B. V. Patel Institute of Business Management, Computer and 2015 Information Technology, UTU
Long questions: 1. Filter out values and attributes of element from given lists. Explain any four values of type attribute of element with suitable example of each. email, autocomplete, step, range, url, datetime-local, height, list 2. Explain any five element attributes introduced in HTML5. 3. Write snippet code to design following layout which allows user to enter date before 1st January, 1980 and after 1st January, 2000 and quantity between 1to 5.
4. Explain microdata attributes with suitable example of each. 5. What shall be the output of following snippet code?
Name: Sports
Team: Cricket
Players: 12
Team: Kabbadi
Players: 12
6. Explain any five boolean attributes with suitable example of each. 7. Which attributes of
element. 7. The autofocus attribute is a boolean attribute. 8. define an image as a submit button. 9. An attribute datetime-local allows the user to select a date and time without time zone. 10. The contenteditable attribute is used to edit content directly from the browser. Fill in the blanks 1. When ______attribute present, it specifies that the form-data (input) should not be validated when submitted. 2. The formaction attribute specifies the ______of a file that will process the input control when the form is submitted. 3. The pattern attribute specifies ______that the element's value is checked against. 4. The input type month allows the user to select ______and ______. 5. The ______microdata attribute is used to provide a reference of a specific type of items. 6. The itemtype microdata attribute is used along with ______attribute of an element. 7. The list attribute refers to ______element that contains pre-defined options for an element. 8. The formtarget attribute can be used with and
Ms. Khushbu Patel 8
B. V. Patel Institute of Business Management, Computer and 2015 Information Technology, UTU
type=______>. 9. The ______attribute overrides the novalidate attribute of the
element. 10. The form attribute specifies one or more forms an ______element belongs to. Unit 3: Fundamentals of jQuery Short questions: 1. List any two advantages of using jQuery. 2. Write jQuery script to hide the current element. 3. Which method is used to search elements that share the same parent? Write suitable example of it. 4. $(selector).action() – What does this jQuery syntax format do? 5. How to select odd
elements from
elements? 6. Write jQuery script which allows a click event that gets fired on a paragraph element. 7. How to remove all or the specified class (es) from the set of matched elements using jQuery? 8. Consider the following code.
India is a famous country all over the world. Citizens of India are very polite and understanding in nature. India is a democratic country where its public is authorized to take decisions for the betterment of the country.
Write jQuery script to find word “India” using find () method. 9. Write jQuery snippet code to set background-color purple of children of a division.
This is a pen.
Blue
Red
Black
10. What shall be the output of following jQuery script? $(".div1").siblings("*").css("background-color","pink"); Long questions: 1. Discuss any five similarities between jQuery and JavaScript. 2. Consider the following snippet code.
This is a paragraph.
This is another paragraph.
Write jQuery scripts to perform following actions while clicking on a button. i. Set background color green of a body element using addClass() method. ii. Apply class “p1” on each paragraph using addClass() method. iii. Remove class “p1” from first paragraph element. iv. Add class “d1” on all divisions 3. What is the significance of attr(), removeAttr(), addClass() and removeClass() methods. Discuss using example of each. 4. What shall be the output of following snippet code?
Name
5. Explain any five traversing methods with suitable example of each. 6. Compare and contrast between patent() and parents() methods with suitable examples. 7. Consider the following snippet code and write missing jQuery script.
This is first paragraph in body.
Apple
Banana
Mango
Orange
Above are fruits
Heading 1
Write jQuery scripts to i. find all siblings of
element. ii. find parent elements of those element whose id is “or” iii. find children of element. iv. highlight all siblings of
element by yellow background. 8. Discuss how to narrow down the search using parents() and children() methods. Give an appropriate example of it. 9. Explain text() and html() methods which are used to set or return content of selected element? Give appropriate example of each. 10. Explain any five jQuery selectors with example of each. Multiple choice questions: 1. What will happen by $("#wblogo").html()? a. It will return html from wblogo id element. b. It will set blank html to wblogo id element. c. It will return html from wblogo class element. d. It will set blank html to wblogo class element. 2. Which of the following is not a use of jQuery? a. Contains animations, b. Communicate with server to send requests or get response, c. Handle events d. All of the above 3. Which of the following is invalid selector? a. #id b. * c. class.
Ms. Khushbu Patel 11
B. V. Patel Institute of Business Management, Computer and 2015 Information Technology, UTU
d. :first-child 4. What is the correct jQuery code to set the background color of all paragraph elements to red? a. $("p").manipulate("background-color","red"); b. $("p").style("background-color","red"); c. $("p").layout("background-color","red"); d. $("p").css("background-color","red"); 5. What does the dollar sign in jQuery statement do? a. It loads the jQuery methods. b. It loads the DOM. c. It loads JavaScript. d. It is used to define or access jQuery. 6. Which of the following jQuery method removes an attribute from each of the matched elements? a. deleteAttr( name ) b. removeAttr( name ) c. removeAttribute( name ) d. empty( ) 7. Which of the following is the correct syntax of attr() method to return the value of an attribute of matched element? a. $(selector).attr(attribute,value) a. $(selector).attr(attribute); a. $(selector).attr({attribute:value, attribute:value}) b. $(selector).attr(value, attribute); 8. How to remove src, alt and width attributes from following element?
a. $(“img”).removeAttr(“src alt width”); b. $(“img”).removeAttr(“src,alt,width”); c. $(“img”).removeAttr(“src:alt:width”); d. $(“img”).removeAttr(“src” “alt” “width”); 9. What is the true about parent () method? a. Only traverse a single level up the DOM tree. b. Traverse to the root element. c. Returns all ancestor elements of the selected element. d. Returns all descendant elements of the selected element. 10. Which of the following is the correct example of array in jQuery? a. var y=[“abc”, 12.45, “c”, 123]; b. var y={“abc”, 12.45, “c”, 123}; c. var y=((“abc”), (12.45), (“c”), (123)]; d. var y=[{“abc”}, {12.45}, {“c”}, {123}]; True or False 1. The text() is used to sets or returns the text content of selected elements. 2. The remove() method is used to remove attribute from a selected element. 3. When html() method is used to set content, it overwrites the content of first matched elements. 4. The text() method sets or returns the text content of the selected elements. 5. The parent() method returns all ancestor elements of the selected element. 6. The children() method returns first direct child of the selected element. 7. $("#test").hide() - hides the element with class="test".
Ms. Khushbu Patel 12
B. V. Patel Institute of Business Management, Computer and 2015 Information Technology, UTU
8. The addClass() method does not remove existing class attributes. 9. If no parameter is specified in removeClass() method, it will remove all class names from the selected elements. 10. The next() method is used to return very next siblings of selected element. Fill in the blanks 1. jQuery is ______library that enables to quickly and easily create web pages and web applications. 2. jQuery reads or manipulates a DOM document by using ______event of the document. 3. All selectors in jQuery start with the ______and ______. 4. The find() method returns ______elements of the selected element. 5. The attr() method is used to read, add and modify the ______of attributes of elements. 6. The ______method finds a set of elements containing all the unique siblings. 7. The parent() method returns the direct parent element of the ______element. 8. jQuery is available in the form of a single file that has the extension ______. 9. The ______method returns all previous siblings of selected element. 10. The ______method returns all direct children of the selected element.
Unit 4: jQuery Manipulator, Events and Effects Short questions: 1. What shall be the output of following snippet code?
This is
2. Write missing jQuery script in below code so that the all content of division is removing.
This is a paragraph.
This is another paragraph.
3. State any two differences between html( ) and text( ) methods. 4. What are the two alternative ways to set height and width of an image using jQuery? Write an
Ms. Khushbu Patel 13
B. V. Patel Institute of Business Management, Computer and 2015 Information Technology, UTU
example of it. 5. How an element gets focus? Write example of it. 6. What shall be the output of following snippet code?
First name: Last name:
Gender :
Male Female
Date of Birth :
E-Mail ID:
Contact Number:
Country:
Output:
Ms. Khushbu Patel 15
B. V. Patel Institute of Business Management, Computer and 2015 Information Technology, UTU
Insert jQuery snippet code in above code which triggered any five form element related events. 7. Differentiate between click, mousedown, mouseup, mouseover and mousemove events with example. 8. Write jQuery scripts to perform following actions. i. Hide all paragraphs while clicking on a right button of a mouse. ii. Change table’s background color pink while mouse pointer is over the table and yellow while mouse pointer leaves table. iii. Show the alert message when mouse left button is clicked twice. iv. A counter showing number of times mouse pointer is moved on a selected table. v. Display number of times keypressed in a textbox. 9. Explain animate() method with its parameter and example. 10. Differentiate between fadeIn( ), fadeOut( ) and fadeTo( ) effects with example. Multiple choice questions: 1. Which method is used to get the top and left position of an element relative to its offset parent using jQuery? a. leftTop() b. position() c. positionLeft() d. positionTop() 2. What is the use of empty() method? a. Remove all child nodes from the set of matched elements. b. Remove all parents element of selected element. c. Empty document d. Remove all child nodes 3. What is the use of after() method? a. It inserts specified content at the end of the selected elements. b. It inserts specified content after the selected elements. c. It inserts specified content before the selected elements. d. It inserts specified content between the selected elements. 4. What is the true about clone( ) method? a. The clone( ) method makes a copy of selected elements, without including child nodes, text and attributes. b. The clone( ) method makes a link of selected elements, including child nodes, text and
Ms. Khushbu Patel 16
B. V. Patel Institute of Business Management, Computer and 2015 Information Technology, UTU
attributes. c. The clone( ) method makes a copy of selected elements, with child nodes, text and attributes. d. The clone( ) method makes a copy of selected elements, including its child nodes only. 5. Which of the following is the correct to apply background color red, height and width of a table? a. $(“table”).css({“background-color”, “red”: “height”, “100%”: “width”, “100%”}); b. $(“table”).css({“background-color”: “red”, “height”: “100%”, “width”: “100%”}); c. $(“table”).css{“background-color”: “red”, “height”: “100%”, “width”: “100%”}; d. $(“table”).css({background-color: red : height : 100: width: 100%}); 6. Which properties of an object are returned by the position( ) method? a. bottom and left b. top and bottom c. left and right d. top and left 7. Which of the following event occurs when an option is selected from select menu? a. change b. select c. click d. scroll 8. Which of the following is a window event? a. change b. submit c. resize d. click 9. What is the effect of using fadeOut( ) method? a. Gradually changes the opacity, for selected elements, from visible to hidden. b. Gradually changes the opacity, for selected elements, from hidden to visible. c. Gradually changes the opacity, for selected elements, to a specified opacity. d. None of the above 10. What is the output of following code? $("#btn1").click(function( ) { $("p").hide(2000,function( ) { alert("Paragraph Hidden"); }); }); a. Only first matched paragraph will be hidden in 2000 milliseconds on a clicking of a button and display alert message “Paragraph Hidden” after paragraph hides. b. All matched paragraph will be hidden in 2000 milliseconds on a clicking of a button and display alert message “Paragraph Hidden” after paragraph hides. c. All matched paragraph will be hidden in 2000 milliseconds on a clicking of a button and display alert message “Paragraph Hidden” before paragraph hides d. No output because of syntactical error. True or False 1. The append( ) method inserts specified content at the end of the selected elements. 2. The clone( ) method does not remove the element itself, or its attributes. 3. When height( ) and width( ) methods are used to set height and width, they sets the height and width of first matched elements.
Ms. Khushbu Patel 17
B. V. Patel Institute of Business Management, Computer and 2015 Information Technology, UTU
4. The focus event occurs when an element loses focus. 5. The fadeTo() method is often used together with the fadeIn() method. 6. show() method shows the hidden, selected elements. 7. The fadeTo() method gradually changes the opacity 0 for selected elements. 8. The easing attribute having linear and non-linear values. 9. The property names must be camel-cased when used with the animate() method. 10. The keyup event is fired when a key is released on the keyboard. Fill in the blanks 1. The ______method inserts specified content in front of the selected elements. 2. The hasClass() method checks if any of the selected elements have a specified ______. 3. The width() method is used to ______or ______the width of the selected elements. 4. The scrollLeft() method sets or returns the ______scrollbar position for the selected elements. 5. The ______event occurs when a form is submitted. 6. The unload event occurs when the user ______away from the page. 7. The delay() method sets a timer to delay the execution of the ______item in the queue. 8. The toggle() method toggles between ______and ______for the selected elements. 9. Fill the missing parameter in given syntax. $(selector).fadeTo(speed,______,easing,callback) 10. The styles is one of the parameter of ______method. Unit 5: eXtensible Markup Language Short questions: 1. What is called XML? 2. What is an extension of XML document? 3. Why XML is called user-define language? 4. What does DTD stands for? 5. State a significance of entity references in XML. List ant five entity references with example. 6. Convert the following nested element employee into empty element. E1Paresh 7. What shall be the output of following code? This is a "a car".Car&aposs color is white. 8. How to define a namespace in XML? Write an example of it. 9. Can you define namespace in root element? If yes, then how? 10. Consider the following code, identify the errors and correct it. Banana Mango Grapes
Ms. Khushbu Patel 18
B. V. Patel Institute of Business Management, Computer and 2015 Information Technology, UTU
Dog
9. Is there a name conflicts in following code? If yes, how can you solve? C Programming $ 50 JAVA: The Complete Reference $ 70 Fundamentals of jQuery $ 40
Ms. Khushbu Patel 19
B. V. Patel Institute of Business Management, Computer and 2015 Information Technology, UTU
10. Consider the following table and create an XML document accordingly. Book Publish- ID Author Title Genre Price Date Description XML Gambardella, An in-depth look at creating bk101 Developer's 10/1/2000 Matthew applications with XML. Guide Computer $44.95 The Art of The art of computer bk102 Donald E. Knuth Computer programming. Programming Computer $50 12/4/2001 Brian W. bk103 Kernighan Anci C Computer $76.50 1/10/1999 Programming language
Multiple choice questions: 1. Which of the following is an extension of a XML document? a. .html b. .xsl c. .xml d. .xl 2. Which of the following is not a feature of XML? a. Language independent b. Platform dependent c. Extensible d. Structured language 3. Which of the following is the true about XML? a. XML focus on presenting data i.e. how data looks. b. XML focus on describing data, i.e what data is. c. XML focus on both presenting and describing data. d. XML neither focus on presenting nor describing data. 4. Comments in XML document is given by a. -- --> b. c. d. /* … */ 5. Which of the following string is the correct XML element name? a. 123student b. _student123 c. Student 123 d. ?student 6. In XML the attribute value must always be quoted with a. double quotes b. single quotes c. both a and b d. name of attributes 7. What is called well-formed XML document? a. It contains a root element. b. It contains an element.
Ms. Khushbu Patel 20
B. V. Patel Institute of Business Management, Computer and 2015 Information Technology, UTU
c. It contains one or more element. d. Must contain one or more elements and root element must contain all other elements. 8. Which of the following XML documents are well-formed? a. some text goes here another text goes here b. some text goes here another text goes here c. some text goes here another text goes here d. some text goes here another text goes here 9. In XML, variable names are separated from values by a. Dot b. Space c. Comma d. Assignment operator 10. Which of the following is the correct declaration of namespace in XML? a. b. c. d. True or False 1. XML can be used with any other technology or languages. 2. Non-validating parser does not check the DTD files that are referred in the XML document. 3. XML provides specific notions for integer, string, Boolean and so on. 4. User can create stand-alone elements in XML document. 5. XML declaration statement can be written anywhere in the document. 6. An attribute is a name-value pair contained in the element’s end tag. 7. Namespaces can only declare in the XML root element. 8. The XML parser loads the document into the computer’s memory and then manipulates it using the DOM node-tree structure. 9. The &dblquot; entity reference represents the double quotation marks (“). 10. You cannot write comment inside a tag or another comment. Fill in the blanks 1. HTML is focus on ______data and XML is focus on ______data. 2. Root element does not have ______element, but can have ______elements. 3. The elements which contain other elements are known as ______. 4. In XML, namespace is used by assigning a name ______to it. 5. The ______parser validates the XML document as well as DTD files referred in the document. 6. The ______entity reference represents the ampersand (&) symbol. 7. In XML, ______character is used to open a tag and ______is used to close the tag. 8. A ______is not a part of the program and therefore it is not parsed by the parser. 9. Multiple attributes used in a single element are separated by ______. 10. The ______element can be written without an end tag.
Ms. Khushbu Patel 21
B. V. Patel Institute of Business Management, Computer and 2015 Information Technology, UTU
Unit 6: Validating and Transforming XML Document Short questions: 1. Is the following XML Schema declaration syntax correct? If No, then correct it. 2. Which types of values are returned by XPath expression? 3. How to differentiate complex type element with simple type elements? 4. How pre-define data types are differs from user-define data types? In XML, How to define pre- define and user-define data types? Give an example of each. 5. Consider the following XML snippet code and identify the name of element and data type of an element. 6. List XPointer functions that returns location sets. 7. What is the point in the XPointer? 8. State a difference between simple links and extended links in XLink. 9. How to create XSL stylesheet? 10. Write the syntax of xsl:if element in XSLT. Long questions: 1. What is the need of XML Schema? Explain in detail. 2. Explain Simple Type and Complex Type elements with example of each. 3. How to declare element and attributes in XML Schema? Explain with appropriate example. 4. Explain built-in data types that are used to declare an attribute. 5. Consider the following XML document and write the result of given XPath expressions. PenPencilBook
XPath Expressions: 1. PRODUCT_INFO/PRODUCT[1] 2. PRODUCT_INFO/PRODUCT[last()] 3. PRODUCT_INFO/PRODUCT[last() - 1] 4. PRODUCT_INFO/PRODUCT[position()<2] 6. Explain apply-templates, stylesheet, attributes and choose XSLT elements with example of each. 7. Explain looping and sorting in XSLT with example. 8. Consider the following data and answer the following question using XSL style sheet. 1. Perform loop for display all data. 2. Change the background color of row which category has java. 3. Sort the price in ascending order.
Ms. Khushbu Patel 22
B. V. Patel Institute of Business Management, Computer and 2015 Information Technology, UTU
4. Filter the data where title is XML
Author Title Category Price
Ron Schmelzer XML Java 500.50
Chad Doby Java Java 300
9. Create an XML document which has customer information like id, name, address, city, state, zip, phone number and email. Create XSD file to parse the element and attribute from XML document using complex type. 10. Create an XML document which has which has project information like pro_id, pro_name, stud_name, guide_name. Create XSD file to parse the element and attribute from XML document using simple type element. Multiple choice questions: 1. What are the two attributes that XML Schema contains? a. name and type b. id and name c. id and type d. version and type 2. What is the role of the XPath language in XSL processing? a. XPath identifies the order or path of processing to be followed as the XSL language is processed b. XPath identifies locations in XML data to be transformed in the source tree and the locations to be generated in output tree specified in XSL translation prescriptions c. XPath identifies the path to be followed in the execution of XSL translation prescriptions d. XPath specifies which XSL transform files are to be used in the translation of XML 3. In simple Type Built into XML schema Boolean type holds a. True, False b. 1,0 c. both (1) & (2) d. True/False and any number except 0 4. Some characters have a special meaning in XML those are called as______. a. Variables b. Entities c. Symbols d. None of these 5. Which of the following provides extra information about XML elements? a. Attributes b. Entities c. Tags d. Values 6. Which of the following statement about Complex type element is correct? a. A complex type element can contains only text and cannot have child elements or attributes. b. A complex type element can have child elements or attributes but cannot contain text. c. A complex type element can contain only child elements. d. A complex type element can have child elements, attributes and text. 7. Which of the following XSLT element specify that element that provides multiple conditional
Ms. Khushbu Patel 23
B. V. Patel Institute of Business Management, Computer and 2015 Information Technology, UTU
testing? a. xsl:comment b. xsl:choose c. xsl:multiple d. xsl:attribute 8. What is the use of xsl:for-each XSLT element? a. Specifies an element that creates an attribute node. b. Specifies an element that can display a number in decimal format. c. Specifies an element that applies a template repeatedly to every node of a set. d. All of the above 9. Which of the following is not an attribute of xsl:template element? a. name b. priority c. mode d. href 10. What are the possible values of order attributes of xsl:sort element? a. asce and desc b. ascending and descending c. as and de d. ascend and descend True or False 1. A simple type element can contain only text. 2. Data types of an XML element or attribute are specifies in a XML schema document. 3. The time data type is used to specify a time in the format ss:mm:hh. 4. The xsl:attribute specifies an element that creates an attribute node. 5. The xsl:template element defines a template or set of rules to produce output. 6. The xsl:choose element is used in conjunction with the xsl:when and xsl:otherwise elements to express multiple conditional tests. 7. The select attribute is optional attribute in xsl:for-each element. 8. The case-order attribute of xsl:sort element having values upper and lower. 9. The dateTime data type in XML return the date and time in the format “hh:mm:ssTYYYY-MM-DD”. 10. XML does not provide miscellaneous data types. Fill in the blanks 1. The ______is a document that describes the structure of an XML document. 2. The XML document that refers to a single XML Schema is known as ______. 3. XPointer uses ______expressions to navigate in XML documents. 4. The ______element is the mixed attribute. 5. A ______is an XML element that contains only text. It cannot contain any other elements or attributes. 6. In a XPath, ______operator used for select an attribute. 7. The ______XSLT element specifies a simple if conditional in a template. 8. The xsl:sort specifies an element that inserts sort criteria for node lists selected by using the ______or ______XSLT elements. 9. The ______is the process of arranging items or displaying the result in a specified sequence. 10. The xsl:element element is used to create ______in the result tree.