版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
中南財(cái)經(jīng)政法大學(xué)2010–中南財(cái)經(jīng)政法大學(xué)2010–2011學(xué)年第一學(xué)期期末考試試卷課程名稱:《XML語(yǔ)言及其應(yīng)用》(A)卷 課程代號(hào):09226021_考試形式:閉卷、筆試使用對(duì)象:電子商務(wù)0802等_______________________________________________________________________題號(hào)一二三四五六總分總分人分值202010151520100得分______________________________________________________________________________得分評(píng)閱人一、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è):年級(jí):學(xué)生姓名:學(xué)號(hào):課堂號(hào):________密封線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頁(yè)(共4頁(yè))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得分評(píng)閱人二、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。密封線得分得分評(píng)閱人三、Findoutwhetherthefollowingstatementaretrueorfalse.Putaforeachtruestatementandputaforeachfalsestatement.(共10題,每題1分,共10分)SGMListhemotherofallmarkuplanguage.()XMLisatechnologyforcreatingmarkuplanguages.()TheXMLDSOmodifiesonlythecopyoftheXMLdatathattheDSOhastemporarilycachednmemory,nottheoriginalXMLdocumentontheserver.()XSLcanbeusedtolinktoanyXMLdocumentandgivesyoucompletecontroloftheoutput.()Thedocumenttypedeclaration,DOCTYPE,introducesDTDinXMLdocuments.()TagsarepredefinedinXML.()AnXSLtemplatecontainstwokindsofXMLelements:XMLelementsthatrepresentHTMLmarkupandXSLelements.()Acommenthasthefollowinggeneralform:<!comment?>()TheXMLentitymechanismisatime-savingtoolaswellasawaytoincorporatediversetypesofdataintoyourXMLdocuments.()AnXMLdocumentisconsideredwell-formedifitissyntacticallycorrect.()得分評(píng)閱人四、Answerthefollowingquestionsbriefly.(共15分)1.WhatisthemaindifferencesbetweenXMLandHTML?(5分)2.Whatkindofrulesweshouldconformtoifwewanttocreateavalidxmldocument?(5分)3.WhatrequirementsshouldanXMLdocumentmeetsifwewanttousedatabindingtechniquetolinkanXMLdocumenttoanHTMLpage?(5分)第2頁(yè)(共4頁(yè))得分評(píng)閱人五、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頁(yè)(共4頁(yè))得分評(píng)閱人得分評(píng)閱人六Fillingblanksoftheprogram(共20分)HereisaCustomer_Hierarchy.xmldocumentandpleaseusedatabindingtodisplaythedatainthexmldocument(20分,每空2分,共10空)1.Customer_Hierarchy.xml<?xmlversion="1.0"encoding="GB2312"?><!--FileName:Customer_Hierarchy.xml--><客戶列表> <城市> <城市名>上海</城市名> <客戶> <公司名稱>東南實(shí)業(yè)</公司名稱> <聯(lián)系人>王先生</聯(lián)系人> <職位>銷售經(jīng)理</職位> <地址>臨江東街62號(hào)</地址> <電話>65785678</電話> </客戶>…………<!--中間省略若干元素--><客戶> <公司名稱>大光明乳業(yè)</公司名稱> <聯(lián)系人>鐘女士</聯(lián)系人> <職位>銷售代表</職位> <地址>茂苑西大街369號(hào)</地址> <電話>64095009</電話> </客戶> </城市></客戶列表>2.Customer_Hierarchy.htm<!--FileName:Customer_Hierarchy.htm--><HTML><HEAD> <TITLE>嵌套表格顯示客戶信息</TITLE></HEAD><BODY> <XMLID=""SRC=""></XML> <C
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度新型節(jié)能環(huán)保設(shè)備采購(gòu)及安裝服務(wù)合同范本
- 2025年度科技產(chǎn)品廣告設(shè)計(jì)服務(wù)合同
- 2025年度創(chuàng)業(yè)孵化器股權(quán)投資合同
- 2025年度國(guó)際建筑技術(shù)與材料出口合同
- 2025年國(guó)際物流運(yùn)輸保險(xiǎn)合同范本
- 2025年度大廈物業(yè)客戶關(guān)系管理與投訴處理合同
- 2025年度海上船運(yùn)船舶清潔能源技術(shù)應(yīng)用合同
- 2025年國(guó)際水利樞紐工程承包合同二零二五年度版
- 2025年度國(guó)際房地產(chǎn)投資合作合同(海外市場(chǎng)版)
- 2025年度城市軌道交通設(shè)備采購(gòu)合同續(xù)約協(xié)議書(shū)
- 2025年山西國(guó)際能源集團(tuán)限公司所屬企業(yè)招聘43人高頻重點(diǎn)提升(共500題)附帶答案詳解
- 青海省海北藏族自治州(2024年-2025年小學(xué)六年級(jí)語(yǔ)文)統(tǒng)編版隨堂測(cè)試(上學(xué)期)試卷及答案
- 江蘇省無(wú)錫市2023-2024學(xué)年高三上學(xué)期期終教學(xué)質(zhì)量調(diào)研測(cè)試語(yǔ)文試題(解析版)
- 《民航安全檢查(安檢技能實(shí)操)》課件-第一章 民航安全檢查員職業(yè)道德
- DB34T4826-2024畜禽養(yǎng)殖業(yè)污染防治技術(shù)規(guī)范
- 腰麻課件教學(xué)課件
- 石油化工企業(yè)環(huán)境保護(hù)管理制度預(yù)案
- 2024年甘肅省高考?xì)v史試卷(含答案解析)
- 2024年山東省煙臺(tái)市初中學(xué)業(yè)水平考試地理試卷含答案
- 《小英雄雨來(lái)》讀書(shū)分享會(huì)
- 中央導(dǎo)管相關(guān)血流感染防控
評(píng)論
0/150
提交評(píng)論