JAVASCRIPT QUIZ QUESTIONS WITH
100% CORRECT ANSWERS
What are the basic ways to provide hints for search engines?
a) Put keywords in the <TITLE> tag of the Web page.
b) Put keywords in the first few lines of the Web page.
c) Put keywords as many times as possible in the Web page.
d) All of the above for every major search engines. - Answer-d) All of the above for
every major search engines.
The Web security issues are involved in
a) Server.
b) CGI script.
c) Client.
d) All of the above. - Answer-d) All of the above.
What should you keep in mind when you use links in a Web page?
a) Never put two links immediately adjacent to one another.
b) Keep the link content as concise as possible.
c) Both A and B.
d) Need not worry too much about links in general. - Answer-c) Both A and B.
What should you keep in mind when you use images in a Web page
a) Keep the image simple.
b) Isolate large graphics.
c) Both A and B.
d) Need not worry about putting in images in general. - Answer-c) Both A and B.
In an HTML form, if you require users to input a number that has a maximum of ten
digits, like a telephone number, you can use the _____ property/attribute to make sure
that no more than ten digits are accepted in the field.
a) Length
b) Maxlength
c) Value
d) None of the above. - Answer-b) Maxlength
In HTML, use the _____ property/attribute to set a default value that displays in an
input box when the form is initially displayed.
, a) Default
b) Value
c) Form
d) None of the above. - Answer-b) Value
In HTML, the _____ property/attribute identifies the CGI script that will process a form.
a) Value
b) Action
c) Enctype
d) hidden - Answer-b) Action
In JavaScript, the following loop will execute ________ times.
for (x=1; x<11; x++)
a) 9
b) 10
c) 11
d) cannot tell from this portion of the Script - Answer-b) 10
The majority of a typical Web document will be found in:
a) the head tag.
b) the title tag.
c) the body tag.
d) a comment tag. - Answer-c) the body tag.
In JavaScript, the symbols + - * and / are:
a) operators.
b) expressions.
c) comparison operators.
d) None of the above. - Answer-a) operators.
In JavaScript, the expression x!=y returns false if:
a) the variables are equal.
b) x is less than y.
c) the variables are not equal.
d) None of the above. - Answer-a) the variables are equal.
In JavaScript, which of the following is a logical operator?
a) |
b) &&
c) %
d) / - Answer-b) &&
When you want to use JavaScript to manipulate the browser window, the browser
window's JavaScript object name is:
a) Frame
b) Document
100% CORRECT ANSWERS
What are the basic ways to provide hints for search engines?
a) Put keywords in the <TITLE> tag of the Web page.
b) Put keywords in the first few lines of the Web page.
c) Put keywords as many times as possible in the Web page.
d) All of the above for every major search engines. - Answer-d) All of the above for
every major search engines.
The Web security issues are involved in
a) Server.
b) CGI script.
c) Client.
d) All of the above. - Answer-d) All of the above.
What should you keep in mind when you use links in a Web page?
a) Never put two links immediately adjacent to one another.
b) Keep the link content as concise as possible.
c) Both A and B.
d) Need not worry too much about links in general. - Answer-c) Both A and B.
What should you keep in mind when you use images in a Web page
a) Keep the image simple.
b) Isolate large graphics.
c) Both A and B.
d) Need not worry about putting in images in general. - Answer-c) Both A and B.
In an HTML form, if you require users to input a number that has a maximum of ten
digits, like a telephone number, you can use the _____ property/attribute to make sure
that no more than ten digits are accepted in the field.
a) Length
b) Maxlength
c) Value
d) None of the above. - Answer-b) Maxlength
In HTML, use the _____ property/attribute to set a default value that displays in an
input box when the form is initially displayed.
, a) Default
b) Value
c) Form
d) None of the above. - Answer-b) Value
In HTML, the _____ property/attribute identifies the CGI script that will process a form.
a) Value
b) Action
c) Enctype
d) hidden - Answer-b) Action
In JavaScript, the following loop will execute ________ times.
for (x=1; x<11; x++)
a) 9
b) 10
c) 11
d) cannot tell from this portion of the Script - Answer-b) 10
The majority of a typical Web document will be found in:
a) the head tag.
b) the title tag.
c) the body tag.
d) a comment tag. - Answer-c) the body tag.
In JavaScript, the symbols + - * and / are:
a) operators.
b) expressions.
c) comparison operators.
d) None of the above. - Answer-a) operators.
In JavaScript, the expression x!=y returns false if:
a) the variables are equal.
b) x is less than y.
c) the variables are not equal.
d) None of the above. - Answer-a) the variables are equal.
In JavaScript, which of the following is a logical operator?
a) |
b) &&
c) %
d) / - Answer-b) &&
When you want to use JavaScript to manipulate the browser window, the browser
window's JavaScript object name is:
a) Frame
b) Document