10-11XML语言及其应用09226021A卷_第1页
10-11XML语言及其应用09226021A卷_第2页
10-11XML语言及其应用09226021A卷_第3页
10-11XML语言及其应用09226021A卷_第4页
10-11XML语言及其应用09226021A卷_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

中南财经政法大学2010–中南财经政法大学2010–2011学年第一学期期末考试试卷课程名称:《XML语言及其应用》(A)卷 课程代号:09226021_考试形式:闭卷、笔试使用对象:电子商务0802等_______________________________________________________________________题号一二三四五六总分总分人分值202010151520100得分______________________________________________________________________________得分评阅人一、SingleChoice:readthefollowingquestionsandchooseONLYonecorrectanswerforeachquestion.(共10题,每题2分,共20分)QuestionNo.12345678910answerwhichofthefollowingxmlelementsisright?A<Title>HelloWorld</title>B<title>HelloWorld</title>C</Title>HelloWorld<Title>D<Title>HelloWorld<Title>whichofthefollowingisright?A<birthdaydate=10/28/2010>B<birthdaydate="10/28/2010">C<?--Thisisainstructionoracomment--?>D<!xmlversion="1.0"!>whichofthefollowingelementnamesislegal?A<helloworld>B<helloworld>C<315helloworld>D<xmlhelloworld>院(系):专业:年级:学生姓名:学号:课堂号:________密封线whichofthefollowingiswrong?whichofthefollowingiswrong?A<movietype="comedy&play">B<movietype="’comedy’">C<EMPLOYEEStatus=”‘downsized’“>D<moviename="mama'sbag">whichofthefollowingexamplesofattributespecificationsislegal.?A<EMPLOYEEStatus=""downsized"">B<ALBUMType="<CD>">C<WEATHERForecast="Cold&Windy">D<CANDIDATEname=”hello”>whichofthefollowingexpressionsislegal?A<vehicle><![CDATA[Defender90!>ByRogers&Hammerstein]]></vehicle>B<?xm1version="1.0"?><![CDATA[trueorfalse?]]><addressbook>…..</addressbook>C<movies><movie<![CDATA[trueorfalse??]]>>…..</movie></movies>D<?<![CDATA[trueorfalse?]]>?>whichofthefollowingelementsisnotvalid,conformingtotheDTD?<!ELEMENTmovie(#PCDATA,actor+,actress+)>,A<movie>TheUsualSuspects<actor>StephenBaldwin</actor></movie>B<movie>TheUsualSuspects</movie>C<movie>TheUsualSuspects<actor>StephenBaldwin</actor><actor>GaleAnneHurd</actor><actress>JamesCameron</actress></movie>D<movie><actress>JamesCameron</actress><actor>StephenBaldwin</actor></movie>第1页(共4页)8.whichofthefollowingelementsisnotright,conformingtotheattribute8.whichofthefollowingelementsisnotright,conformingtotheattributedeclaration:?<!ATTLISTFILMClass(fictional|instructional|documentary)“fictional”>A<FILMClass=“instructional”>B<FILMClass=“fictional”>C<FILMClass=“documentary”>D<FILMClass=“story”>9.whichofthefollowingentitiesdoesnotexist?AgeneralexternalunparsedBparameterexternalparsedCgeneralinternalparsedDparameterexternalunparsed10.whichofthefollowingstatementsisnottrue?Awecandeclareaparticularelementtypeonlyonce.BTheinternalDTDsubsetisconsideredtocomeaftertheexternalDTDsubsetCIfanattributewiththesamenameandelementtypeisdeclaredmorethanonce,theXMLprocessorusesthefirstdeclarationandignoresallsubsequentones.DwecanusebothanexternalDTDsubsetandaninternalDTDsubset得分评阅人二、Fillintheblanksineachofthefollowingquestions.(共20空,每空1分,共20分)TheSGMLstandsfor(代表)structured。XMLstandsfor(代表)。ADTDcancontainthefollowingtypesofmarkupdeclarations:Elementtypedeclarations、、Entitydeclarations、、Processinginstructions、、Parameterentityreferences。Textina/ansectionisnotparsed.KeywordspecifiesthattheattributecanonlytakeaspecificvaluethathasbeendefinedintheDTD.Thecontentofanelementcanbe、、generalentityreferencesorcharacterreference、、processinginstructions、and。AnXMLdocumentconsistsoftwomainparts:andthe.Inaddition,awell-formedXMLdocumentcanincludecomments,processinginstructions,andwhitespace.DSOstandsfor。密封线得分得分评阅人三、Findoutwhetherthefollowingstatementaretrueorfalse.Putaforeachtruestatementandputaforeachfalsestatement.(共10题,每题1分,共10分)SGMListhemotherofallmarkuplanguage.()XMLisatechnologyforcreatingmarkuplanguages.()TheXMLDSOmodifiesonlythecopyoftheXMLdatathattheDSOhastemporarilycachednmemory,nottheoriginalXMLdocumentontheserver.()XSLcanbeusedtolinktoanyXMLdocumentandgivesyoucompletecontroloftheoutput.()Thedocumenttypedeclaration,DOCTYPE,introducesDTDinXMLdocuments.()TagsarepredefinedinXML.()AnXSLtemplatecontainstwokindsofXMLelements:XMLelementsthatrepresentHTMLmarkupandXSLelements.()Acommenthasthefollowinggeneralform:<!comment?>()TheXMLentitymechanismisatime-savingtoolaswellasawaytoincorporatediversetypesofdataintoyourXMLdocuments.()AnXMLdocumentisconsideredwell-formedifitissyntacticallycorrect.()得分评阅人四、Answerthefollowingquestionsbriefly.(共15分)1.WhatisthemaindifferencesbetweenXMLandHTML?(5分)2.Whatkindofrulesweshouldconformtoifwewanttocreateavalidxmldocument?(5分)3.WhatrequirementsshouldanXMLdocumentmeetsifwewanttousedatabindingtechniquetolinkanXMLdocumenttoanHTMLpage?(5分)第2页(共4页)得分评阅人五、CreateaDTDbasedontheexistingXMLdocumentandmakethedocumentvalidaccordingtothecommentsintheXMLdocument.(共15分)<?xmlversion="1.0"encoding="GBK"?><!--StartofDTDhere--><!--EndofDTDhere-->密封线<purchaseOrderorderid="0102"><purchaseOrderorderid="0102"><!--orderid必须出现,且能够唯一确定订单--><shipTocountry="US"> <name>AliceSmith</name> <street>123MapleStreet</street> <city>MillValley</city> <state>CA</state> <zip>90952</zip></shipTo><billTocountry="US"><!--country必须出现--> <name>RobertSmith</name> <street>8OakAvenue</street><city>OldTown</city> <state>PA</state> <zip>95819</zip></billTo><items><!--item应至少出现1次--> <itempartNum="872-AA"><!--partNum必须有,为字符串--> <productName>Lawnmower</productName> <quantity>1</quantity> <USPrice>148.95</USPrice><shipDate>2003-05-21</shipDate> </item> <itempartNum="926-AA"> <productName>BabyMonitor</productName> <quantity>1</quantity> <USPrice>39.98</USPrice><shipDate>2003-06-21</shipDate> </item></items></purchaseOrder><!--EndofFile-->第3页(共4页)得分评阅人得分评阅人六Fillingblanksoftheprogram(共20分)HereisaCustomer_Hierarchy.xmldocumentandpleaseusedatabindingtodisplaythedatainthexmldocument(20分,每空2分,共10空)1.Customer_Hierarchy.xml<?xmlversion="1.0"encoding="GB2312"?><!--FileName:Customer_Hierarchy.xml--><客户列表> <城市> <城市名>上海</城市名> <客户> <公司名称>东南实业</公司名称> <联系人>王先生</联系人> <职位>销售经理</职位> <地址>临江东街62号</地址> <电话>65785678</电话> </客户>…………<!--中间省略若干元素--><客户> <公司名称>大光明乳业</公司名称> <联系人>钟女士</联系人> <职位>销售代表</职位> <地址>茂苑西大街369号</地址> <电话>64095009</电话> </客户> </城市></客户列表>2.Customer_Hierarchy.htm<!--FileName:Customer_Hierarchy.htm--><HTML><HEAD> <TITLE>嵌套表格显示客户信息</TITLE></HEAD><BODY> <XMLID=""SRC=""></XML> <C

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论