第一章 单元测试
1、单选题:
表示重定向的响应状态码是
选项:
A:302
B:304
C:200
D:
404
答案: 【302
】
2、多选题:
http协议中关于get请求与post请求说法正确的是
选项:
A:get方式传输数据大小有限制
B:post方式传可以传输大数据
C:get方式会将请求信息在地址栏上显示,post不会
D:http协议请求方式只有get和post
答案: 【post方式传可以传输大数据
;get方式会将请求信息在地址栏上显示,post不会
】
3、单选题:
下面哪个请求头信息可以实现防盗链
选项:
A:Referer
B:Refresh
C:Location
D:If-Modified-Since
答案: 【Referer
】
4、单选题:
WWW是()的意思。
选项:
A:浏览器
B:万维网
C:超文本传输协议
D:网页
答案: 【万维网
】
5、单选题:
域名http://www.pdsu.edu.cn/由4个子域组成,其中哪个表示主机名。
选项:
A:edu
B:www
C:cn
D:pdsu
答案: 【www
】
第二章 单元测试
1、单选题:
为了标识一个HTML文件应该使用的HTML标记是
选项:
A:<table></table>
B:<boby></body>
C:<p></p>
D:<html></html>
答案: 【<html></html>
】
2、单选题:
用HTML标记语言编写一个简单的网页,网页最基本的结构是
选项:
A:<html>……
B:<html><head>…</head><frame>…</frame></html>
C:<html><head>…</head><body>…</body></html>
D:<html><title>…</title><frame>…</frame></html>
答案: 【<html><head>…</head><body>…</body></html>
】
3、单选题:
有关网页中的图像的说法不正确的是
选项:
A:网页中的图像并不与网页保存在同一个文件中,每个图像多带带保存
B:HTML语言可以描述图像的位置、大小等属性
C:图像可以作为超级链接的起始对象
D:HTML语言可以直接描述图像上的像素
答案: 【HTML语言可以直接描述图像上的像素
】
4、单选题:
若要在页面中创建一个图形超链接,要显示的图形为myhome.jpg,所链接的地址为http://www.pcnetedu.com,以下用法中,正确的是(b)
选项:
A:<ahref=”http://www.pcnetedu.com”><imgsrc=”myhome.jpg”></a>
B:<imgsrc=”myhome.jpg”><ahref=”http://www.pcnetedu.com”></a>
C:<ahref=”http://www.pcnetedu.com”>myhome.jpg</a>
D:<ahref=http://www.pcneredu.com><imgsrc=”myhome.jpg”>
答案: 【<ahref=”http://www.pcnetedu.com”><imgsrc=”myhome.jpg”></a>
】
5、单选题:
若要在网页中插入样式表main.css,以下用法中,正确的是
选项:
A:<Includehref=”main.css”type=text/cssrel=stylesheet>
B:<LinkSrc=”main.css”type=text/cssrel=stylesheet>
C:<Linkhref=”main.css”type=text/cssrel=stylesheet>
D:<Linkhref=”main.css”type=text/css>
答案: 【<Linkhref=”main.css”type=text/cssrel=stylesheet>
】