




已阅读5页,还剩21页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1. (1)The W3C DOM Core interfaces defines a minimal set of: aA. interfaces for accessing and manipulating document objects B. Java object implementations for use with XML parsers. C. Conventions and processes for creating live HTML pages. D. Mutable document trees.2. (1) Which of the following lists contains only valid W3C XML Schema Language simple schema types?(d)A. anyURL, char,encoding, UTF8B. fullname, double, long, intC. TOKEN, timestamp, range,charD. byte, duration, ENTITY, NMTOKEN3. (1)Assume that a W3C XML Schema Language document designer uses the following prefix declaration d The designer evaluates the choice of attribute versus elements to describe a structure. Which of the following is a valid reason to avoid attributes for a complex structural representation?A. Elements are approximateley twice as concise as attributes.B. An elements is restricted to meta-data representation.C. An attribute value is restricted to representing string data.D. An attribute value cannot contain elements.4. (1)During parsing, how many startElement messages will the ContentHandler for the following XML document receive? (a) Joe Schmoe A. 5 B. 8 C. 9 D. 125. (1)Several small XML documents need to be merged and transformed into a single XHTML result. Which of the following actions is best to accomplish this task?(c)A. Parse each document using DOM, and import the results into a common DOM. Pass the resulting DOM to an XSLT transformer to convert to XHTML.B. Use an external utility to concatenate all the XML documents and pass the resulting XML to an XSLT transformer to convert to XHTML.C. Use XSL “document()” function to merge all documents, and then perform a normal transformation to convert to XHTML output.D. Use XQuery to extract the entire contents of each document into a single DOM, which will then be passed into an XSLT transformer to convert to XHTML.6. (1)An auto parts supplier stores customer data as XML in a database in the following format.(B) SwellMobile Kansas CityMO Assume that the function XMLCOLUMN(“cust.data”) returns the XML documents from the database. Which of the following XQuery statements returns the names of the customers who have purchased item 123?A. for $i in XMLCOLUMN (“cust.data”)/customer/purchase/itemwhere $i/ id=123return XMLCOLUMN(“cust.data”)/customer/nameB. for $c in XMLCOLUMN(“cust.data”)/customerwhere $c/purchase/item/id=123return $c/nameC. for $c in XMLCOLUMN(“cust.data”)where $c/purchase/item/id=123return $c/nameD. for $c in XMLCOLUMN(“cust.data)/customer/purchase/itemid=123return $c/name7. (1)A W3C Schema Language document designer must incorporate declarations from an external Web-hosted type library schema belonging to another namespace. Which schema element can the designer use to incorporate the external schema so as to reuse its types and elements?(C)A. xs:require B. xs:include C. xs:import D. xs:redefine8. (1)Consider the given XML fragment:(B) To which of the following namespaces does the element Item1 belong?A. .B. .C. /namespace.D. It does not belong to any namespaces.9. (1)A complex XML format is to be widely shared acoross organizations that do not normally interact. At a minimum, what kind of information about the format should be shared?(C)A. An XSDL document for the format.B. The documents ebXML grammar.C. Formal schemas or DTDs for the format.D. A stylesheet.10. (1) To make XSLT templates more robust, the parameters(x,y) are checked for errors and boundary conditions.(D)Which of the following tests is NOT necessary?A. x = yB. x != yC. x has a non-numeric valueD. y does not have a value11. (1) An application applies internal business rules to generate XML documents. XSL stylesheets can then perform complex calculations on the XML documents to produce summary reports.What is the best solution to resolve the complexities of the XSLT calculations?(C)?(A)?A. Extract all the calculation logic form the XSL and put them into included functions to be shared by all the stylesheets.B. Move the calculations into the business rules logic of the applicaction and export the results as part of the XML content.C. Create a common stylesheet to perform all the calculations appending the results to the XML, which is then input into the appropriate stylesheet for the actual rendering.D. Create a custom XSL extensions for each calculation and import them into each defined stylesheet.12. (1)A form contains the following fields: 1)First name 2)Middle name 3)Last name 4)Street 5)City 6)State 7)Postal codeWhich of the following is the most appropriate XML representation?(A)A. Elvood P Suggins 123 Elm St. Lizard Lick NC 27699 B. Elvood P Suggins 123 Eln St Lizard Lick NC 27699 C. D. 13. (1)Given an external DTD line(B) and an internal DTD line: Which of the following statements is true concerning the document that refers to these DTDs?A. Document will not validate, due to the conflicting declarations.B. An available_date must be present for a residence to be valid in the document.C. An available_date is optional for a residence to be valid in the document.D. The last declaration the parser encounters takes precedence.14. (1) An applicatin menu bar will contain a tree of labeled command item elements nested to an arbitrary depth. Which of the following XML fragments can define the menu bar?(D)A. B. C. D. 15. (2)Which two of the following may NOT be nested within a CDATA section?(CE)A. HTML documentsB. Javascript sourceC. Other CDATA sectionsD. The XML escape characters(,&,an”)E. XSLT that needs to be processed16. (1)In a museum, XML data stored on powerful servers is served to customers through Web browsers running on network-connected computers. The performance of those computers is limited. Which of the following approaches will best suit the XML transformation?(D)A. Pass both the XML data and stylesheets to web browsers.B. Output XHTML via a server-side XSL transformation.C. Use only a subset of the XHTML and use Format Objects to apply style.D. Transform the XML data into the open format document and display.17. (1)An XML document consists of one element and three elements representing different vendors selling price. What is the best approach to define this XML document?(C)A. To differentiate vendors prices, add a prefix before each Price tag. such as .B. When defining this XML documents schema, use different date types for element .C. At the beginning of the XML document, add Price namespace declarations for different vendors.D. Put three same Price tags into the XML document, XML processor has embedded mechanism to differentiate them.18. (1)An HR application will carry out arbitrary read-only queries across employees, managers, and departments. The data will be saved in a persistence store. Which of the following supports XML as the HR applications data medium?(B)A. XQuery supports insert, update, and delete operations.B. XQuery supports FLWOR join operations across three XML documents.C. XSLT supports transformation of SQL result sets. SQL aliases cannot be used for column names and table names.D. SQL supports quering the contents of XML documents stored as BLOBs. SQL does not support namespaces.19. (1)XML is being transformed using XSLT. An xsl:variable is needed later in this process to set an element color. Which of the following is the way to initialize the xsl:variable hue based upon the value of the context nodes status attribute?(C)A. red green B. red green C. red green D. red green 20. (1)How should an XML developer store binary data which has been encoded (as base64) as the content of an element image in an XML document?(C)A. !CDATA.Binary data encoded as character data. B. .Binary data encoded as character data. C. D. E. Binary data cannot be stored. 21.(1)The XML spec constrains the valid values for an ID attribute. Which of the following is FALSE?(C)A. ID attribute value cannot begin with and contain any whitespace. B. ID attribute value cannot begin with a number. C. ID attribute value cannot match the value of an existing IDREF attribute value. D. ID attribute value has to be unique throughout the whole XML document. 22. (1)How should a CSS stylesheet be applied to an XML document?(D)A. Preprocess the XML using and XSLT stylesheet to transform the document to valid HTML first. Then send the XHTML document to the browser.B. Embed a . element within the XML document that contains CSS rendering instructions.C. Use XSLTC to apply the CSS to the XML DOM, and return the results as an XHTML document to the browser.D. Insert a instruction referencing an external CSS file.23. (1)A comma delimited list is being constructed via the XSLT fragment below. Which of the following ways is most appropriate to conditionally write a comma after each value in the list except for the last one?(B) A. ,B. ,C. ,D. ,24. (1)What is the default axis in XPath?(C)A. descendant: B. descendant-or-self:C. child: D. parent:25. (1)Given the following DTD lines, which XML document fragment would be valid?(D)A. computer scientist AlanTuringB. AlanTuringwas a computer scientistC. AlanTuringOn Computable NumbersD. AlanTuring26. (1)An application saves and restores internal program state across invocations. The offline state resides in an XML file. Only that one application reads and writes the file. The designer wrote a constraint schema for the XML, and had the application validate the state file upon input. Which of the following indicates why?(A)A. To detect data corruption.B. To automatically convert string fields to numeric.C. To optimize parsing.D. To bind the file to a set of state objects.27. (1)A company is developing an AJAX(Asynchronous JavaScript and XML) application which passes XML between the client and the server. After the clients Web browser receives the server response, which technology is NOT suited for rendering the XML data?(D)A. XSLT B. XSL-FO C. CSS D. Javascript28. (1)Which of the following is NOT necessarily a trait of “tail recursion”?(B)A. Depending upon the stylesheet processor, it may not exhaust the stack space as quickly as general recursion.B. Each recursive call sets up the next sub-problem to be half as large as the current one.C. Stylesheet processors may optimize this kind of recursion by internal transformation into an iterative solution.D. The recursive call comes at the end of the template.29. (1) Considering the following XML doc
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- Unit 6 Entertaining Us教学设计-2025-2026学年高中英语重庆大学版选修九-重大版2004
- 《用“四舍”法试商的除法》(教学设计)-2024-2025学年四年级上册数学人教版
- 蔬菜培训基本知识总结课件
- 蔬菜品种知识培训课件
- Unit 9 Section A 1a - 2c 说课稿 2024-2025学年人教版八年级英语下册
- 2.2《大战中的插曲》教学设计 2023-2024学年统编版高中语文选择性必修上册
- 怎样通知最快 (教学设计)-2024-2025学年五年级下册数学人教版
- 2025年常识试题及答案解析
- 蓄电池知识培训课件
- 《游动物园》(教学设计)-2024-2025学年一年级上册数学冀教版
- 高温中暑急救教学
- 模块十 轴测图的基本知识(课件)-中职高考《机械制图》一轮复习(高教版第5版)
- 妇科临床科室管理制度
- DB13-T 6050-2025 学校社会工作服务规范
- 红火蚂蚁咬伤急救
- 再回首二部合唱简谱金巍
- 广西南宁市三中2025届高三第二次模拟考试英语试卷含解析
- 五年级体育课教案全集
- 2025年注册测绘师测绘综合能力的真题卷(附答案)
- 项目城市轨道交通风险管理与安全评估刘连珂
- 道路施工机械设备安全知识培训
评论
0/150
提交评论