第1页(共5页)咸阳师范学院加中大学生IT实训基地期班JQUERY试题题号一二三四五六七八总分登分人审核人分数答卷注意事项:1.学生必须用蓝色(或黑色)钢笔、圆珠笔或签字笔直接在试题卷上答题。2.答卷前请将密封线内的项目填写清楚。3.字迹要清楚、工整,不宜过大,以防试卷不够使用。4.本卷共4大题,总分为100分。一、选择题(共40分,每空2分)1、HTML代码:pone/pdivptwo/p/divpthree/pjQuery代码:$(divp);结果:(A)A、[ptwo/p]B、[pone/p]C、[pthree/p]D、[divptwo/p/div]2、HTML代码:divDIV/divspanSPAN/spanpP/pjQuery代码:$(*)结果:(D)A、[divDIV/div]B、[spanSPAN/span]C、[pP/p]D、[divDIV/div,spanSPAN/span,pP/p]3、HTML代码:divclass=notMedivclass=notMe/divdivclass=myClassdivclass=myClass/divspanclass=myClassspanclass=myClass/spanjQuery代码:$(.myClass);结果:(D)A、[divclass=notMedivclass=notMe/div]B、[divclass=myClassdivclass=myClass/div]C、[spanclass=myClassspanclass=myClass/span]D、[divclass=myClassdivclass=myClass/div,spanclass=myClassspanclass=myClass/span]4、HTML代码:divDIV1/divdivDIV2/divspanSPAN/spanjQuery代码:$(div);结果:(B)A、[divDIV2/div]B、[divDIV1/div,divDIV2/div]C、[divDIV1/div]5、HTML代码:divid=notMepid=notMe/p/divdivid=myDivid=myDiv/divjQuery代码:$(#myDiv);结果:(A)A、[divid=myDivid=myDiv/div]B、[pid=notMe/p]C、[divid=notMepid=notMe/p/div]D、[divid=notMepid=notMe/p/divdivid=myDivid=myDiv/div]6、HTML代码:divdiv/divpclass=myClasspclass=myClass/pspanspan/spanpclass=notMyClasspclass=notMyClass/pjQuery代码:$(div,span,p.myClass)结果:(A)A、[divdiv/div,pclass=myClasspclass=myClass/p,spanspan/span]B、[pclass=myClasspclass=myClass/p]C、[pclass=notMyClasspclass=notMyClass/p]D、[divdiv/div]7、HTML代码:formlabelName:/labelinputname=name/fieldsetlabelNewsletter:/labelinputname=newsletter//fieldset/forminputname=none/得分评卷人…………………………上…………………………装…………………………订…………………………线…………………………班级:计科0801姓名:吴雷学号:0810014116…………………………下…………………………装…………………………订…………………………线…………………………第2页(共5页)jQuery代码:$(forminput)结果:(B)A、[inputname=name/]B、[inputname=name/,inputname=newsletter/]C、[inputname=newsletter/]8、HTML代码:formlabelName:/labelinputname=name/fieldsetlabelNewsletter:/labelinputname=newsletter//fieldset/forminputname=none/jQuery代码:$(forminput)结果:(D)A、[inputname=name/]B、[inputname=newsletter/]C、[inputname=none/]D、[labelNewsletter:/label]9、HTML代码:formlabelName:/labelinputname=name/fieldsetlabelNewsletter:/labelinputname=newsletter//fieldset/forminputname=none/jQuery代码:$(label+input)结果:(C)A、[inputname=newsletter/]B、[inputname=name/]C、[inputname=name/,inputname=newsletter/]D、[labelNewsletter:/label]10、HTML代码:formlabelName:/labelinputname=name/fieldsetlabelNewsletter:/labelinputname=newsletter//fieldset/forminputname=none/jQuery代码:$(form~input)结果:(C)A、[inputname=newsletter/]B、[inputname=name/]C、[inputname=none/]D、[labelNewsletter:/label]11、HTML代码:tabletrtdHeader1/td/trtrtdValue1/td/trtrtdValue2/td/tr/tablejQuery代码:$(tr:eq(1))结果:(B)A、[trtdValue1/td/tr]B、[tdValue1/td]C、[tdValue2/td]D、[tdHeader1/td]12、HTML代码:tabletrtdHeader1/td/trtrtdValue1/td/trtrtdValue2/td/tr/tablejQuery代码:$(tr:first)结果:(D)A、[trtdHeader1/td/tr]B、[tdValue1/td]C、[tdValue2/td]D、[tdHeader1/td]13、HTML代码:tabletrtdHeader1/td/trtrtdValue1/td/trtrtdValue2/td/tr/tablejQuery代码:$(tr:gt(0))结果:(B)A、[trtdHeader1/td/tr]B、[trtdValue1/td/tr,trtdValue2/td/tr]C、[trtdValue2/td/tr]D、[tdValue2/td]第3页(共5页)14、HTML代码:tabletrtdHeader1/td/trtrtdValue1/td/trtrtdValue2/td/tr/tablejQuery代码:$(tr:odd)结果:(A)A、[trtdValue1/td/tr]B、[trtdHeader1/td/tr]C、[tdValue1/td]D、[trtdValue2/td/tr]15、HTML代码:tabletrtdValue1/tdtd/td/trtrtdValue2/tdtd/td/tr/tablejQuery代码:$(td:empty)结果:(D)A、[tdValue1/td]B、[td/td,td/td]C、[tdValue2/td]D、[td/td]16、HTML代码:tabletrtdValue1/tdtd/td/trtrtdValue2/tdtd/td/tr/tablejQuery代码:$(td:parent)结果:(A)A、[tdValue1/td]B、[td/td,td/td]C、[tdValue2/td]D、[tdValue1/td,tdValue1/td]17、HTML代码:tabletrstyle=display:nonetdValue1/td/trtrtdValue2/td/tr/tablejQuery代码:$(tr:hidden)结果:(一)一、[trstyle=display:nonetdValue1/td/tr]二、[trtdValue2/td/tr]三、[tdValue1/td]四、[tdValue2/td]18、HTML代码:inputname=man-news/inputname=milkman/inputname=letterman2/inputname=newmilk/jQuery代码:$(input[name*='man'])结果:(A)A、[inputname=man-news/]B、[inputname=milkman/]C、[inputname=letterman2/]D、[inputname=man-news/,inputname=milkman/,inputname=letterman2/]19、HTML代码:forminputname=emaildisabled=disabled/inputname=id//formjQuery代码:$(input:enabled)结果:(B)A、[inputname=emaildisabled=disabled/]B、[inputname=id/]C、[inputname=emaildisabled=disabled/inputname=id/]20、HTML代码:div/divjQuery代码:$(div).html(pHelloAgain/p);结果:(B)A、[div/div]B、[divpHelloAgain/p/div]C、[pHelloAgain