a) Window object and Document Object only
b) Navigator object and Event only
c) Window object, Document object, Navigator object and Event
d) None of the above
ans:c
202. Will the following code work or will it throw an error:
<html>
<p>Move the mouse over the words to see the cursor change</p>
<span style="cursor: auto">Auto</span><br>
<span style="cursor: crosshair">Crosshair</span><br>
<span style="cursor: default">Default</span><br>
<span style="cursor: hand">Hand</span><br>
</html>
a) It will throw an error
b) It will not throw an error
ans:b
203. The window object method used to Scroll the window to the specified scroll position is
a) scroll()
b) scrollBy()
c) scrollTo()
d) resizeBy()
ans:c
204.16. A Browser will throw an exception while displaying a HTML page whose </HTML> is missing?
a) TRUE
b) FALSE
c) NA
d) NA
ans:b
205.18. You can hide the information sent to the web server by using which of the following techniques
a) Use get method to submit the form
b) Use post method to submit the form
c) Use Get method over https to submit the form
d) none of the above
ans:b
206.20. This tag is very important for search engines.
a) Body
b) Table
c) Form
d) Meta
ans:d
207.Which of the following elements can have a border attribute?
i. Image
ii. Table
iii. List
a) Only (i)
b) Only (ii)
c) (i) and (ii)
d) All three
ans:c
208.Can the following code be part of the HTML code of a web page?
<textarea name="Comment" rows="60" cols="20"></textarea>
a) Yes
b) No
c) Yes, but browser specific
ans:c
209.The number of event handlers for a HTML control is
a) One
b) two
c) three
d) No limit
ans:d
210.The attribute which is used to restrict the number of characters entered in a textbox is
a) maxsize
b) size
c) maxlength
d) length
ans:c
211.Which of the following statements is True?
a) If the Submit button is outside the form, it will submit all the forms in the page
b) If the Reset button is outside the form, it will Reset all the form elements in the page
c) You cannot have Submit button on a form.
d) One HTML page can have multiple forms
ans:d
212. Which of the following statements is false?
a) A form object can consist of elements like textbox, radio button etc
b) It is possible to have a list box with multiple items selected
c) Each and every element on the form has to have the VALUE attribute filled
d) A form can have any number of submit buttons
ans:c
213. Which of the following elements can have JavaScript code for validating the length of the user input?
a) Textbox
b) Textarea
c) Password field
d) None
ans:a,b and c
214. <hr> HTML tag is a
a)container tag
b)empty tag
c)both
d)none
ans:b
215. Ordered Lists can be nested in an HTML Page
a)true
b)false
ans:a
216.How many submit buttons can a form in HTML have?
a)1
b)2
c)Any number
d)Depends on the version
ans:c
217.The element used to draw a line in HTML is
a)<LINE>
b)<RULE>
c)<HR>
d)<LN>
ans:c
218.Which of the following is syntactically correct?
a)<A HREF="abc.html">Click here to go there</A>
b)<A HREF="abc.html Click here to go there</A>
c)<A REF="abc.html">Click here to go there</A>
d)<A REF="abc.html>Click here to go there</A>
ans:a
219.Which of the following is not a valid HTML tag?
a)<B>
b)<MIN>
c)<I>
d)<BR>
ans:b
220.Which of the following is not a tag for creating a list?
a)<DL>
b)<OL>
c)<UL>
d)<LL>
ans:d
221.Which of the following is not a valid TYPE in the <INPUT> tag in a form?
a)TEXT
b)PASSWORD
c)COMBO
d)RADIO
ans:c
222.Clicking on the button defined by <INPUT TYPE=RESET VALUE="New"> will cause
a)All the fields in the form to get cleared
b)All the fields in the form to regain their original values
c)An error - no such TYPE exists
d)All the fields in the form to get set to the same value i.e. "New"
ans:b
223.Which character is represented by the HTML code " "?
a)Backspace
b)Space
c)Numlock on; Break pressed
d)None of the above
ans:b
224.If a browser does not support a tag, it will
a)Ignore both the tag and the text inside it
b)Ignore the tag, but display the text inside it
c)Display an error message
d)Display both the tag and the text inside it
ans:b
225.Tags e.g. <P> that don’t need to have the closing part (i.e. </P>) are called
a)Empty tags
b)Container tags
c)Single tags
d)Leading tags
ans:a
226.<TABLE>
<TR><TD COLSPAN=3>cell</TD>
<TD>Cell</TD></TR>
<TR ALIGN=CENTER >
<TD>Cell</TD>
<TD>Cell</TD>
<TD>Cell</TD>
<TD>Cell</TD></TR>
</TABLE>
a)Will create a table with 2 rows and 2 columns
b)Will create a table with 2 rows and 3 columns
c)Will create a table with 2 rows and 4 columns
d)Will cause an error
ans:c
227.Which of the statements about radio buttons are not true?
a)Radio buttons can be grouped such that only one of them can be selected at a time
b)The CHECKED keyword ensures that a particular radio button is selected by default as the form loads
c)The SELECTED keyword ensures that a particular radio button is selected by default as the form loads
d)Radio buttons are elements under the form object
ans:c
228.If an html document contains three images, one can refer to the second image as
a)image[2]
b)image[1]
c)images[1]
d)images[2]
ans:c
229.The Javascript code in a HTML document can be in the
(i) HEAD tag
(ii) BODY tag
(iii) In a separate file altogether
a)(i) and (ii)
b)(ii) and (iii)
c)(i) and (iii)
d)All three
ans:d
230.DHTML is a combination of
(i) HTML
(ii) JavaScript
(iii) Stylesheets
(iv) Browser
a)(i),(ii) and (iii)
b)(ii), (iii) and (iv)
c)(i), (iii) and (iv)
d)All four
ans:a
PREVIOUS NEXT