A: <"hello",1,1>、<"hadoop",1>和<"world",1>
B: <"hello",2>、<"hadoop",1>和<"world",1>
C: <"hello",<1,1>>、<"hadoop",1>和<"world",1>
D: <"hello",1>、<"hello",1>、<"hadoop",1>和<"world",1>
举一反三
- 两个键值对<"a",1>和&...uot;,<1,1>>
- 对于HTML页面,在a开始标签中匹配href属性内容的最合理的正则表达式是什么?假设href属性内容使用双引号包围,需要将匹配内容放到第一个匹配组中。 A: <a href="([^"]*)"[^>*]> B: (?is)<as[^>*]href="([^"]*)"[^>*]> C: <as[^>*]href="([^"]*)"[^>*]> D: <as[^>*]href="([^"]*)">
- 下面哪种写法可以链接到百度网页? A: <a href="百度">百度</a> B: <a href="baidu.com" target="new">百度</a> C: <a href="http://baidu.com" target="new">百度</a> D: <a href="hhtp://www.baidu.com" target="new">百度</a>
- 下列的 HTML 中,可以产生超链接的是______。 A: < a href="http:// www.kmust.edu.cn " >昆明理工大学< /a > B: < a url="http://www.kmust.edu.cn" >昆明理工大学< /a > C: < a >http:// www.kmust.edu.cn < /a > D: < a name="http:// www.kmust.edu.cn " >昆明理工大学< /a >
- 在项目中已经建立了一个 JavaBean 该类为:bean.Student,给 bean 具有 name 属性,则下面标签用法正确的是:( ) A: <jsp:useBeanid="student" scope="session"></jsp:useBean> B: <jsp:useBeanid="student" scope="session">hello student!</jsp:useBean> C: <jsp:useBeanid="student" class="bean.Student" scope="session">hello student!</jsp:useBean> D: <jsp:getProperty name="name" property="student"/>
内容
- 0
以下操作能实现追加写入文件的是 A: echo "hello" > /tmp/test B: echo "hello" >> /tmp/test C: print "hello " >> /tmp/test D: printf "hello " >> /tmp/test
- 1
超级链接的基础语法是:() A: <a goto="URL"></a> B: <a herf="URL"></a> C: <a link="URL"></a> D: <a href="URL"></a>
- 2
if元素测试模式的基本语法为( )。 A: <if test="测试条件"> 输出内容 </if> B: <if when="测试条件"> 输出内容 </if> C: <if test="测试条件"> 输出内容 <else> 输出内容 </else></if> D: <if when="测试条件"> 输出内容 <else> 输出内容 </else></if>
- 3
定义名为“姓名”元素,该元素的内容不允许为空,下面正确的选项是( )。 A: <element name="姓名" required="true"/> B: <element name="姓名" required="false"/> C: <element name="姓名" nillable="true"/> D: <element name="姓名" nillable="false"/>
- 4
设置表格的宽度为600的HTML代码是( )。 A: <table height="500" width="600"></table> B: <table vspace="600" hspace="500"></table> C: <table height="600" width="500"></table> D: <table vspacet="500" hspace="600"></table>