Tải bản đầy đủ (.docx) (9 trang)

Câu hỏi trắc nghiệm kỹ thuật lập trình HTML doc

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (52.87 KB, 9 trang )

Bài HTML:
1. Từ HTML là từ viết tắt của từ nào?
Hyperlinks and Text Markup Language
Home Tool Markup Language
Hyper Text Markup Language
2. Ai (tổ chức nào) tạo ra Web standards?
The World Wide Web Consortium
Microsoft
Netscape
3. Đâu là tag tạo ra tiêu đề web kích cỡ lớn nhất.
<heading>
<h1>
<h6>
<head>
4. Đâu là tag để xuống dòng trong web?
<lb>
<br>
<break>
5. Đâu là tag tạo ra mầu nền của web?
<body color="yellow">
<body bgcolor="yellow">
<background>yellow</background>
6. Đâu là tag tạo ra chữ in đậm
<b>
<bold>
<bld>
<bb>
7. Đâu là tag tạo ra chữ in nghiêng
<ii>
<italics>
<i>


8. Đâu là tag tạo ra liên kết (links) trong web
<a url="">W3Schools.com</a>
<a></a>
<a href="">W3Schools</a>
<a name="">W3Schools.com</a>
9. Đâu là tag tạo ra liên kết đến email?
<a href="***@yyy">
<a href="mailto **@yyy">
<mail>***@yyy</mail>
<mail href="***@yyy">
10. Làm sao để khi click chuột vào link thì tạo ra cửa sổ mới?
<a href="url" new>
<a href="url" target="new">
<a href="url" target="_blank">
11. Đâu là những tag dành cho việc tạo bảng?
<table><tr><td>
<thead><body><tr>
<table><head><tfoot>
<table><tr><tt>
12. Đâu là tag căn lề trái cho nội dung 1 ô trong bảng
<tdleft>
<td valign="left">
<td align="left">
<td leftalign>
13. Đâu là tag tạo ra 1 danh sách đứng đầu bằng số
<ul>
<list>
<ol>
<dl>
14. Đâu là tag tạo ra 1 danh sách đứng đầu bởi dấu chấm?

<list>
<ul>
<ol>
<dl>
15. Tag nào tạo ra 1 checkbox?
<check>
<input type="check">
<checkbox>
<input type="checkbox">
16. Tag nào tạo ra 1 text input field?
<textfield>
<textinput type="text">
<input type="text">
<input type="textfield">
17. Tag nào tạo ra 1 drop-down list?
<select>
<list>
<input type="dropdown">
<input type="list">
18. Tag nào tạo ra 1 text area?
<input type="textbox">
<textarea>
<input type="textarea">
19. Tag nào dùng để chèn 1 hình vào web?
<image
<img>image.gif</img>
<img <img href="image.gif>
20. Tag nào dùng để tạo hình nền cho web?
<body background="background.gif">
<background img="background.gif">

<img src="background.gif" background>
Bài CSS:
1. CSS là viết tắt của?
Creative Style Sheets
Computer Style Sheets
Cascading Style Sheets
Colorful Style Sheets
2. Muốn liên kết xHTML với 1 file định nghĩa CSS ta dùng dòng nào sau đây?
<style src=”mystyle.css”>
<stylesheet>mystyle.css</stylesheet>
<link rel=”stylesheet” type=”text/css” href=”mystyle.css”>
3. đặt dòng liên kết với file CSS ở vùng nào trong file xHTML?
In the <body> section
In the <head> section
At the top of the document
At the end of the document
4. tag nào định nghĩa CSS ở ngay trong file xHTML?
<css>
<script>
<style>
5. thuộc tính nào định nghĩa CSS ngay trong 1 tag?
font
class
style
styles
6. dòng nào tuân theo đúng cú pháp của CSS?
body {color: black}
{body;color:black}
body:color=black
{body:color=black(body}

7. dòng nào thể hiện đúng một comment (lời chú thích) trong CSS?
/* this is a comment */
// this is a comment //
‘ this is a comment
// this is a comment
8. dòng nào dùng để thay đổi màu nền?
color:
bgcolor:
background-color:
9. làm thế nào thêm màu nền cho tất cả các phần tử <h1> ?
h1.all {background-color:#FFFFFF}
h1 {background-color:#FFFFFF}
all.h1 {background-color:#FFFFFF}
10. làm thế nào thay màu nền của chữ (text)?
text-color=
fgcolor:
color:
text-color:
11. thuộc tính nào thay đổi kích cỡ chữ?
font-style
font-size
text-style
text-size
12. thuộc tính nào làm chữ trong tag p trở thành chữ đậm?
p {text-size:bold}
<p style=”font-size:bold”>
<p style=”text-size:bold”>
p {font-weight:bold}
13. làm sao để hiển thị liên kết mà ko có gạch chân bên dưới?
a {decoration:no underline}

a {text-decoration:no underline}
a {underline:none}
a {text-decoration:none}
14. làm sao để mỗi từ trong 1 dòng đều viết hoa ở đầu từ?
text-transform:capitalize
text-transform:uppercase
You can’t do that with CSS
15. làm sao để thay đổi font của mỗi phần tử?
font=
f:
font-family:
16. làm sao để tạo chữ đậm?
font-weight:bold
style:bold
font:b
17. làm thế nào để hiển thị viền 1 phần tử với kích thước đườ ng viền như sau:
The top border = 10 pixels
The bottom border = 5 pixels
The left border = 20 pixels
The right border = 1pixel?
border-width:5px 20px 10px 1px
border-width:10px 5px 20px 1px
border-width:10px 1px 5px 20px
border-width:10px 20px 5px 1px
18. làm sao để thay đổi lề trái của một phần tử?
margin-left:
text-indent:
margin:
indent:
19. để định nghĩa khoảng trống giữa các cạnh (viền) của phần tử và nội dung, bạn sử dụng thuộc tính

padding, có thể gán giá trị âm cho thuộc tính này không?
Yes
No
20. làm thế nào để hình ở đầu mỗi dòng của 1 list (danh sách) có hình vuông?
type: 2
type: square
list-type: square
list-style-type: square
Text j
1/ a logical error is usually đetece by :
a.the teaching assistant
b.JVM
c.java compiler
d.the operating system
2/given
abstract class techno{
abstract void techmethod();}
class techsub extends techno{
void techmethod();}
which of the following statements are legal instantiations of a techno variable
a/techno tsup=new techsub();
b/techno tsup = new techno();
c/none of the above
3/how can you destroy an object?
a/call x.remove(), where x is the object's name
b/set all of the object's reference to null
c/call x.finalize(), where x is the object's name
d/only the garbage collection system can destroy an object
e/null all the reference to the object
f/ call Runtime.getRuntime().gc

4/how would you describe the relation between java.awt.frame and java.awt.container?
a/"has a" b/"is a" c/"modifys" d/"implements"
5/how to run Java codes
a/java codes > complie > bytecode > interpret
b/java codes > run directly
c/java codes > complie > run
d/java codes > interpret > bytecode > run
Ðáp an tr?c nghi?m html va javacript:
HTML:
1. Hyper Text Markup Language
2.The World Wide Web Consortium(w3c)
3.<h1>
4.<br>
5.<body bgcolor="yellow">
6.<b>
7.<i>
8.<a href="">W3Schools</a>
9.<a href="mailto**@yyy">
10.<a href="url" target="new">
11.<table><tr><td>
12.<td align="left">
13.<ol>(oder list)
14.<ul>
15.<input type="checkbox">
16.<input type="text">
17.<input type="dropdown">
18.<input type="textarea">
19.<img 20.<body background="background.gif">
/* */
CSS:

1.Cascading Style Sheets
2.<link rel=”stylesheet” type=”text/css” href=”mystyle.css”>
3.In the <head> section
4.<style>
5.style
6.body {color: black}
7./* this is a comment */
8.background-color:
9.h1 {background-color:#FFFFFF}
10.color.
11.font-size
12.p {font-weight:bold}
13.a {text-decoration:none}
14.text-transform:capitalize
15.font-family
16.font-weight:bold
17.border-width:10px 1px 5px 20px(top-right-bottom-left)
18.margin
19.No
20.list-style-type: square

×