




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)
文檔簡介
中南財經(jīng)政法大學(xué)2010–中南財經(jīng)政法大學(xué)2010–2011學(xué)年第一學(xué)期期末考試試卷課程名稱:《XML語言及其應(yīng)用》(A)卷 課程代號:09226021_考試形式:閉卷、筆試使用對象:電子商務(wù)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>院(系):專業(yè):年級:學(xué)生姓名:學(xué)號:課堂號:________密封線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必須出現(xiàn),且能夠唯一確定訂單--><shipTocountry="US"> <name>AliceSmith</name> <street>123MapleStreet</street> <city>MillValley</city> <state>CA</state> <zip>90952</zip></shipTo><billTocountry="US"><!--country必須出現(xiàn)--> <name>RobertSmith</name> <street>8OakAvenue</street><city>OldTown</city> <state>PA</state> <zip>95819</zip></billTo><items><!--item應(yīng)至少出現(xiàn)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--><客戶列表> <城市> <城市名>上海</城市名> <客戶> <公司名稱>東南實業(yè)</公司名稱> <聯(lián)系人>王先生</聯(lián)系人> <職位>銷售經(jīng)理</職位> <地址>臨江東街62號</地址> <電話>65785678</電話> </客戶>…………<!--中間省略若干元素--><客戶> <公司名稱>大光明乳業(yè)</公司名稱> <聯(lián)系人>鐘女士</聯(lián)系人> <職位>銷售代表</職位> <地址>茂苑西大街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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 傳媒公司協(xié)議合同范本
- 制作簡易合同范本
- 農(nóng)戶貸款保證合同范本
- 農(nóng)村住宅設(shè)計合同范本
- 上海植物租擺合同范本
- 公積金租房合同范本
- 五人合伙合同范本
- 二手公寓房購買合同范本
- 正規(guī)合同范本買賣
- 倉庫貨品保管合同范本
- GB/T 3452.2-2007液壓氣動用O形橡膠密封圈第2部分:外觀質(zhì)量檢驗規(guī)范
- GB/T 30797-2014食品用洗滌劑試驗方法總砷的測定
- GB/T 20057-2012滾動軸承圓柱滾子軸承平擋圈和套圈無擋邊端倒角尺寸
- GB/T 19808-2005塑料管材和管件公稱外徑大于或等于90mm的聚乙烯電熔組件的拉伸剝離試驗
- GB/T 12771-2019流體輸送用不銹鋼焊接鋼管
- 工程驗收及移交管理方案
- 班組建設(shè)工作體系課件
- 圖片編輯概述課件
- 第章交通調(diào)查與數(shù)據(jù)分析課件
- 2023年岳陽職業(yè)技術(shù)學(xué)院單招職業(yè)技能考試筆試題庫及答案解析
- 北師大版八年級數(shù)學(xué)上冊《認(rèn)識無理數(shù)(第2課時)》參考課件2
評論
0/150
提交評論