Quiznetik
Introduction to Web Programming | Set 1
1. What tag uses to display a picture in a webpage?
A. picture
B. image
C. img
D. src
Correct : C. img
2. <b> tag makes the enclosed text bold. What is other tag to make text bold?
A. <strong>
B. <dar>
C. <black>
D. <emp>
Correct : A. <strong>
3. Tags and test that are not directly displayed on the page are written in _____ section.
A. <html>
B. <head>
C. <title>
D. <body>
Correct : B. <head>
4. Which tag inserts a line horizontally on a web page?
A. <hr>
B. <line>
C. <line direction=”horizontal”>
D. <tr>
Correct : A. <hr>
5. What should be the first tag in any HTML document?
A. <head>
B. <title>
C. <html>
D. <document>
Correct : C. <html>
6. Which tag allows us to add a row in a table?
A. <td> and </td>
B. <cr> and </cr>
C. <th> and </th>
D. <tr> and </tr>
Correct : D. <tr> and </tr>
7. How can we make a bulleted list?
A. <list>
B. <nl>
C. <ul>
D. <ol>
Correct : C. <ul>
8. How can we make a numbered list?
A. <dl>
B. <ol>
C. <list>
D. <ul>
Correct : B. <ol>
9. How can we make an e-mail link?
A. <a href=”xxx@yyy”>
B. <mail href=”xxx@yyy”>
C. <mail>xxx@yyy</mail>
D. <a href=”mailto:xxx@yyy”>
Correct : D. <a href=”mailto:xxx@yyy”>
10. Choose the correct HTML tag to make a text italic
A. <ii>
B. <italics>
C. <italic>
D. <i>
Correct : D. <i>
11. Choose the correct HTML tag to make a text bold?
A. <b>
B. <bold>
C. <bb>
D. <bld>
Correct : A. <b>
12. What is the correct HTML for adding a background color?
A. <body color=”yellow”>
B. <body bgcolor=”yellow”>
C. <background>yellow</background>
D. <body background=”yellow”>
Correct : B. <body bgcolor=”yellow”>
13. Choose the correct HTML tag for the smallest size heading?
A. <heading>
B. <h6>
C. <h1>
D. <head>
Correct : B. <h6>
14. What is the correct HTML tag for inserting a line break?
A. <br>
B. <lb>
C. <break>
D. <newline>
Correct : A. <br>
15. What does vlink attribute mean?
A. visited link
B. virtual link
C. very good link
D. active link
Correct : A. visited link
16. Which attribute is used to name an element uniquely?
A. class
B. id
C. dot
D. all of above
Correct : B. id
17. Which tag creates a check box for a form in HTML?
A. <checkbox>
B. <input type=”checkbox”>
C. <input=checkbox>
D. <input checkbox>
Correct : B. <input type=”checkbox”>
18. To create a combo box (drop down box) which tag will we use?
A. <select>
B. <list>
C. <input type=”dropdown”>
D. all of above
Correct : A. <select>
19. To create HTML document we require a
A. web page editing software
B. high powered computer
C. just a notepad can be used
D. none of above
Correct : C. just a notepad can be used
20. The special formatting codes in HTML document used to present content are
A. tags
B. attributes
C. values
D. none of above
Correct : A. tags
21. HTML documents are saved in
A. special binary format
B. machine language codes
C. ascii text
D. none of above
Correct : C. ascii text
22. Some tags enclose the text. Those tags are known as
A. couple tags
B. single tags
C. double tags
D. pair tags
Correct : D. pair tags
23. The _____ character tells browsers to stop tagging the text
A. ?
B. /
C. >
D. %
Correct : B. /
24. In HTML document the tags
A. should be written in upper case
B. should be written in lower case
C. should be written in proper case
D. can be written in both uppercase or lowercase
Correct : D. can be written in both uppercase or lowercase
25. Marquee is a tag in HTML to
A. mark the list of items to maintain inqueue
B. mark the text so that it is hidden in browser
C. display text with scrolling effect
D. none of above
Correct : C. display text with scrolling effect
26. There are ____ different of heading tags in HTML
A. 4
B. 5
C. 6
D. 7
Correct : C. 6
27. To create a blank line in your web page
A. press enter two times
B. press shift + enter
C. insert <br> tag
D. insert <bline>
Correct : C. insert <br> tag
28. Which of the following is not a style tag?
A. <b>
B. <tt>
C. <i>
D. all of above are style tags
Correct : D. all of above are style tags
29. The way the browser displays the object can be modified by _____
A. attributes
B. parameters
C. modifiers
D. none of above
Correct : A. attributes
30. Which of the following HTML code is valid?
A. <font colour=”red”>
B. <font color=”red”>
C. <red><font>
D. all of above are style tags
Correct : B. <font color=”red”>
31. Which of the following is an attribute related to font tag?
A. size
B. face
C. color
D. all of above are style tags
Correct : D. all of above are style tags
32. HTML supports
A. ordered lists
B. unordered lists
C. both type of lists
D. does not support those types
Correct : C. both type of lists
33. What tag is used to list individual items of an ordered list?
A. li
B. ol
C. ul
D. none of above
Correct : A. li
34. When should we use path along with file name of picture in IMG tag?
A. path is optional and not necessary
B. when the location of image file and html file are different
C. when image file and html file both are on same location
D. path is always necessary when inserting image
Correct : B. when the location of image file and html file are different
35. Which of the following is not a valid alignment attribute?
A. left
B. right
C. top
D. all of above
Correct : C. top
36. Which attribute is used with img tag to display the text if image could not load in browser?
A. description
B. name
C. alt
D. id
Correct : C. alt
37. Which attribute can be used with BODY tag to set background color green?
A. background=”green”
B. bgcolor=”green”
C. vlink=”green”
D. none of above
Correct : B. bgcolor=”green”
38. Which attribute we’ll use with TD tag to merge two cells horizontally?
A. merge=colspan2
B. rowspan=2
C. colspan=2
D. merge=row2
Correct : C. colspan=2
39. A webpage displays a picture. What tag was used to display that picture?
A. picture
B. mage
C. img
D. src
Correct : C. img
40. Which tag inserts a line horizontally on your web page?
A. <hr>
B. <line>
C. <line direction=”horizontal”>
D. <tr>
Correct : A. <hr>
41. Which tag allows you to add a row in a table?
A. <td> and </td>
B. <cr> and </cr>
C. <th> and </th>
D. <tr> and </tr>
Correct : D. <tr> and </tr>
42. What is the correct HTML for making a hyperlink?
A. <a href=”http://google.com”>google</a>
B. <a name=”http:// google.com”>google</a>
C. <http:// google.com </a>
D. url=”http:// google.com”>google
Correct : A. <a href=”http://google.com”>google</a>