2. HTML is a subset of ______

a) SGMD
b) SGML
c) SGMH
d) None of the above

    ANSWER : b

3. ALL HTML tags are enclosed in what?

a) # and #
b) ? and !
c) < and >
d) { and }

    ANSWER : c

4. To create HTML page, you need _____

a) Web browser
b) text editor
c) Both [A] and [B]
d) None of the above

    ANSWER : c

5. <a> and </a> are the tags used for ______

a) Adding image
b) Aligning text
c) Audio-voiced text
d) Adding links to your page

    ANSWER : d

6. To add a plain color background to your web page, use which of the following?

a) <body bgcolor= “36,24,35”>
b) <body color= “# FF000”>
c) <body bgcolor= “# FF000”>
d) All of the above

    ANSWER : c

7. The BODY tag is usually used after ______

a) HTML tag
b) EM tag
c) TITLE tag
d) HEAD tag

    ANSWER : d

8. Choose the correct HTML tag to make a text italic

a) <i>
b) <italic>
c) <it>
d) <il>

    ANSWER : a

9. What does the <br> tag add to your webpage?

a) Long break
b) Paragraph break
c) Line break
d) None of the above

    ANSWER : c

10. Adding a border to your image helps the visitor to recognize it as what?

a) A frame
b) A link
c) A picture
d) None of the above

    ANSWER : b

11. The tag which allows you to nest other HTML tags within the description

a) <CAPTION>
b) <TD>
c) <TR>
d) None of the above

    ANSWER : a

12. The first tag inside <TABLE> tag is _______

a) <HEAD>
b) <CAPTION>
c) <TH>
d) <TD>

    ANSWER : b

13. WYSIWYG stands for _______

a) What You See Is What You Get
b) What you See Is What You Gain
c) When You Start Is When You Go
d) None of the above

    ANSWER : a

14. Which tag tells the browser where the page starts and stops?

a) <html>
b) <body>
c) <head>
d) <title>

    ANSWER : a

15. Which program do you need to write HTML?

a) A graphics program
b) Any text editor
c) HTML -development suite 4
d) All of the above

    ANSWER : b

16. In HTML, tags that include both on and off tag are called

a) comment tag
b) document tag
c) container tag
d) None of the above

    ANSWER : c

17. Which tag will you add to specify a font for your whole page?

a) <defaultfont>
b) <targetfont>
c) <basefont>
d) <font>

    ANSWER : a

18. The main container for <TR>, <TD> and <TH> is _______

a) <DATA>
b) <GROUP>
c) <TABLE>
d) None of the above

    ANSWER : c

19. When is the content of a table shown?

a) Before the border loads
b) After the table is loaded
c) In pieces as it loads
d) None of the above

    ANSWER : b

20. The tag used for creating hypertext and hypermedia links is

a) <HR>
b) <BR>
c) <PRE>
d) <A>

    ANSWER : d

21. What is the correct HTML for creating a hyperlink?

a) <a>https://w.w.w.gkseries.com</a>
b) <a name=”https://w.w.w.gkseries.com”> Gkseries.com</a>
c) <a url=”https://w.w.w.gkseries.com> Gkseries.com</a>
d) <a href=”https://www.gkseries.com”> Gkseries.com</a>

    ANSWER : d

22. All normal webpages consists of ______

a) Top and bottom
b) Body and frameset
c) Head and body
d) None of the above

    ANSWER : c

23. <! Is a ______

a) Comment tag
b) Underlined tag
c) Underlined with italic tag
d) None of the above

    ANSWER : a

24. Choose the correct HTML tag for the largest heading

a) <h1>
b) <h2>
c) <h4>
d) <h6>

    ANSWER : a

25. To created a bulleted list, use _____

a) <ol>
b) <ul>
c) <il>
d) None of the above

    ANSWER : b

26. What kind of list will <ol> tags create?

a) Numbered list
b) Bulleted list
c) Unordered list
d) None of the above

    ANSWER : a

27. Increasing the cellpadding means __________

a) Increase the softness of your site
b) Increase the space between cells
c) Increase the distance between cell and content
d) All of the above

    ANSWER : c

28. The tag which is used to establish the absolute base for relative URLs used in the documents hypertext links

a) <BODY>
b) <TITLE>
c) <BASE>
d) <BR>

    ANSWER : c

29. The <BASE> tag is designed to appear only between _______

a) <BODY>
b) <HEAD>
c) <TITLE>
d) <PRE>

    ANSWER : b

30. A much better approach to establish the base URL is to use the ______ element.

a) HEAD
b) BODY
c) BASE
d) None of the above

    ANSWER : c

31. Which colors consist of equal amounts of all basic colors?

a) white, blue and gray
b) white, black and gray
c) purple, green and blue
d) None of the above

    ANSWER : b

32. HTML tags are recognized by ____

a) <!
b) <= =>
c) < >
d) None of the above

    ANSWER : c

33. Choose the correct HTML tag to make a text bold

a) <bd>
b) <bold>
c) <bl>
d) <b>

    ANSWER : d

34. Which tag adds a paragraph break after the text?

a) <BR>
b) <P>
c) <PARAGRAPH>
d) <HR>

    ANSWER : b

35. How can you make a list that list the items with numbers?

a) <ul>
b) <list>
c) <ol>
d) None of the above

    ANSWER : c

36. Gif and jpg are the two main types of what?

a) animated effects
b) videos
c) images
d) None of the above

    ANSWER : c

37. Which tag will add rows to your tables?

a) <tr> and </tr>
b) <th> and </th>
c) <td> and </td>
d) None of the above

    ANSWER : a

38. Which of the following is underline tag?

a) <PRE>
b) <UL>
c) <U>
d) <HR>

    ANSWER : c

39. Any target specified in the BASE element can be overridden on a case-by-case basis by specifying a different target in different forms

a) Anchor
b) Imagemap
c) Link
d) All of the above

    ANSWER : d

40. Which tag can set the background color for your page?

a) <body>
b) <font>
c) <head>
d) <title>

    ANSWER : a

41. <P> is called

a) paragraph tag
b) container tag
c) head tag
d) None of the above

    ANSWER : a

42. The <small> and <big> tags are special in what way?

a) They are for images only
b) They work on anything
c) They can be repeated
d) None of the above

    ANSWER : c

43. To start a list using circles, use

a) <ul “round”>
b) <ul type=”circle”>
c) <ul type=”round”>
d) <ul =”round”>

    ANSWER : b

44. Which tag is used to insert images into your web page?

a) img
b) scr
c) im
d) None of the above

    ANSWER : a

45. Choose the correct HTML tag to left-align the content inside a table cell

a) <td leftalign>
b) <td align=”left”>
c) <td valign=”left”>
d) <td=”left”>

    ANSWER : b

46. The tag which allows some Web server search engines to search your Web page

a) <SEARCH>
b) <ISINDEX>
c) <HEAD>
d) <LINK>

    ANSWER : b

47. The special formatting tag is e) <P>

a) <TT>
b) <PRE>
c) None of the above

    ANSWER : c

48. Which of the following will NOT be found in the <head> section?

a) <Table>
b) <Metatags>
c) <Title>
d) None of the above

    ANSWER : a

49. If you create an HTML page in word processor,

a) save it with binary file
b) save it with WMF file
c) save it with ASCII text file
d) All of the above

    ANSWER : c

50. Generally, there are

a) 4 headers in most HTML page
b) 5 headers in most HTML page
c) 6 headers in most HTML page
d) 7 headers in most HTML page

    ANSWER : c

51. The <HR> tag is used for

a) horizontal ruler
b) new line text
c) new pargraph
d) vertical ruler

    ANSWER : a

52. How can you make a list that lits the items with bullets?

a) <dl>
b) <ul>
c) <ol>
d) None of the above

    ANSWER : b

53. What is the correct HTML code for inserting an image?

a) <img>image.gif</img>
b) <img href=”image.gif/>
c) <img src=”image.gif”>
d) None of the above

    ANSWER : c

54. What will be the added by using <td> and </td> tag?

a) rows
b) steps
c) cell
d) columns

    ANSWER : d

55. Imagelink can show a text label if you add property

a) alt
b) str
c) alternative
d) All of the above

    ANSWER : a

56. Which format usually works best for photos?

a) HTML
b) GIF
c) JPG
d) All of the above

    ANSWER : c

57. Which property tells how many rows a cell should span?

a) colspan=n
b) rowspan=n
c) Both (A) and (B)
d) None of the above

    ANSWER : b

58. Which tag is used to add columns to tables?

a) <td>
b) <tr>
c) <th>
d) <colspan>

    ANSWER : a

59. Which tag can add colspan=n?

a) <tr>
b) <td>
c) <table>
d) <th>

    ANSWER : b

60. To set the font for a single link, where do you add the <font></font> tags?

a) In the  <head> tag
b) Outside the <a> and </a> tags
c) Inside the <a> and </a> tags
d) None of the above

    ANSWER : c

61. How can you open a link in a new browser window?

a) <a href=”url target=”_blank”>
b) <a href=”url target=”new”>
c) <a href=”url” blank>
d) None of the above

    ANSWER : a

62. If the background image is smaller than the screen, what will happen?

a) It will be streteched
b) It will be repeated
c) It will leave a blank space at the bottom of your page
d) None of the above

    ANSWER : b

63. The HTML tags are all

a) in lower case
b) in upper case
c) case sensitive
d) not case sensitive

    ANSWER : d

64. The <i> tag makes text….?

a) Inline
b) Underline
c) Italic
d) None of the above

    ANSWER : c

65. Why should you add alternative text to your images?

a) So the user can save the image using the text as a name
b) So the users can get an idea of what the image is before
c) In case the user wishes to load a different picture
d) All of the above

    ANSWER : b

66. Which of these tags are all <table> tags?

a) <table><tr><tt>
b) <table><body><tr>
c) <table><tr><td>
d) None of the above

    ANSWER : c

67. Which tag tells where a link starts?

a) <a>
b) <i>
c) <body>
d) None of the above

    ANSWER : a

68. Which the correct e-mail link?

a) <a href=”mailto:xxx@yyy”>
b) <mail>xxx@yyy</mail>
c) <a href=”xxx@yyy”>
d) <href=”xxx@yyy”>

    ANSWER : a

69. Which section is used for text and tags that are shown directly on your web page?

a) Head
b) Metatags
c) Body
d) title

    ANSWER : c

70. The MIME text file is saved with

a) CSS extension
b) HTML extension
c) HMT extension
d) None of the above

    ANSWER : b

71. The attribute used choose the type of font in HTML is?

a) Character
b) Face
c) Text-type
d) All of the above

    ANSWER : b

72. What is the correct HTML tag for inserting a line break?

a) <break>
b) <lb>
c) <pre>
d) <br>

    ANSWER : d

73. To start a list at the count of 3, use

a) <ol begin=”3”>
b) <ol list=”3”>
c) <ol start=”3”>
d) <ol num=”3”>

    ANSWER : c

74. To change the size of an image in HTML, use

a) Pliers
b) Bigger and smaller
c) Top and bottom
d) Height and width

    ANSWER : d

75. The tag for the table rows is

a) <TR>
b) <TD>
c) <TH>
d) None of the above

    ANSWER : a

76. What does vlink mean?

a) active link
b) visible link
c) visited link
d) None of the above

    ANSWER : c

77. Who is making the Web standards?

a) The World Wide Web Consortium
b) Internet Explorer
c) Netscape Navigator
d) None of the above

    ANSWER : a

78. What is the most important tool for adding color to certain areas of the page rather than the entire background?

a) Fonts
b) Image
c) Tables
d) All of the above

    ANSWER : c

79. The paragraphs are break using

a) U tag
b) P tag
c) BR tag
d) HR tag

    ANSWER : b

80. When making bulleted lists, which options do you have?

a) triangle, disc, circle
b) triangle, square, circle
c) disc, circle, square
d) square, disc, polygon

    ANSWER : d

81. Tags and text that do not show directly on the page are placed in

a) Head
b) Body
c) Title
d) None of the above

    ANSWER : a

82. All HTML documents will be basically

a) Graphs
b) Text
c) Pictures
d) None of the above

    ANSWER : b

83. Which of these is not valid HTML?

a) <fontface=”verdana”>
b) <font face=”verdana”>
c) <font face=”verdana, arial”>
d) All of the above

    ANSWER : a

84. To create a list using lowercase letters, use

a) <ol “a”>
b) <ol=”a”>
c) <ol letter=”a”>
d) <ol type=”a”>

    ANSWER : d

85. Which code will led text wrap down the side of the image?

a) <img src= “myImage.gif” wrap= “on”>
b) <img src= “myImage.gif” align= “wrap”>
c) <img src= “myImage.gif” align= “right”>
d) None of the above

    ANSWER : c

86. The tag for the table data is

a) <TR>
b) <TD>
c) <TH>
d) None of the above

    ANSWER : b

87. Defining clickable sub-areas on an image is called

a) image linking
b) multiple mapping
c) image mapping
d) None of the above

    ANSWER : c

88. The tag used to create a new list item and also include a hyperlink

a) <LI>
b) <UL>
c) <DL>
d) None of the above

    ANSWER : a

89. The attribute that defines the relationship between the current document and the HREF’ed URL is

a) URL
b) REV
c) REL
d) PRE

    ANSWER : b

90. The basic format for text link is

a) <HRE=”URL”></A>
b) <HRE=”URL”>Text describing link</A>
c) <A HRE=”URL”>Text describing link</A>
d) None of the above

    ANSWER : c

91. The attribute used to create the actual section within the current HTML document is

a) LINK
b) HERF
c) BASE
d) NAME

    ANSWER : d

92. The <A> tag acts almost like the

a) <P>
b) <B>
c) <U>
d) <I>

    ANSWER : a

93. When images are used as links they get a blue border.

a) Always
b) Never
c) Unless border is set to zero
d) None of the above

    ANSWER : c

94. Where do you place the <title> tag in HTML?

a) Base
b) Head
c) Body
d) None of the above

    ANSWER : b

95. What is the correct HTML code for inserting a background image?

a) <body background=”background.gif”>
b) <img src=”background.gif” background />
c) <background image=”background.gif”>
d) <background=”background.gif”>

    ANSWER : a

96. The tags which are required for every HTML page you create

a) Document
b) Comment
c) Container
d) None of the above

    ANSWER : a

97. The style element holds the document for setting

a) colour, alignment and border
b) font, colour and alignment
c) font, colour, alignment and border
d) colour, alignment

    ANSWER : c

98. How many characters can be written with 1 kilobyte?

a) 1000
b) 1024
c) 1048
d) None of the above

    ANSWER : b

99. One should never combine the “start” and “type” option.

a) True
b) False
c) Sometimes True, Sometimes False
d) None of the above

    ANSWER : b

100. To start a numbered list with regular numerals, use

a) <ol type=”I”>
b) <ol type=”a”>
c) <ol type=”A”>
d) <ol type=”1”>

    ANSWER : d

101. The tag for title text for rows and columns is

a) <TD>
b) <TR>
c) <TH>
d) None of the above

    ANSWER : c

102. How do you add a link which will allow the visitor to send an email from your page?

a) Add <a href=”mailto:youraddress>
b) Add <a href=”sendmailtoyouraddress”>
c) Add <a=”mailto:youraddress>
d) clour, alignment

    ANSWER : a

103. The symbol used at the beginning of the HREF text is

a) @
b) &
c) $
d) #

    ANSWER : d

104. The format of the <BASE> tag is

a) <HREF=”absolute URL”>
b) <BASE=”absolute URL”>
c) <BASE URL=>
d) <base href=”https://www.gkseries.com”>

    ANSWER : d

105. The tag used to create a hypertext relationship between the current document and an external resource is

a) <ISINDEX>
b) <LINK>
c) <A>
d) None of the above

    ANSWER : b

106. The default value of BORDER attribute is

a) 1 pixel
b) 2 pixel
c) 3 pixel
d) None of the above

    ANSWER : a

107. To set the color for table borders, use ______

a) bgcolor=#003300
b) bgimage=#003300
c) bordercolor=#003300
d) tablecolor=#003300

    ANSWER : c

108. What is the correct HTML for adding a background color?

a) <body style = “background-color : yellow”>
b) <body background= “yellow”>
c) <background>yellow</background>
d) All of the above

    ANSWER : a

109. The background image will scroll when the user scrolls down the page, you add which property to the <body> tag?

a) bgproperties = “fixed”
b) bgproperties = “move”
c) bgproperties = “holdstill”
d) None of the above

    ANSWER : c

110. The most basic element of any HTML page is

a) ASCII text
b) text
c) BCD text
d) None of the above

    ANSWER : a

111. To separate single list, use

a) <ol> and </ol>
b) <ul> and </ul>
c) <li> and </li>
d) All of the above

    ANSWER : c

112. To create a numbered list, use

a) <il>
b) <ol>
c) <ul>
d) <li>

    ANSWER : b

113. Which of the following is italic tag

a) <LI>
b) <II>
c) <IT>
d) <I>

    ANSWER : d

114. HTML is simple than

a) SGML
b) CTML
c) STML
d) None of the above

    ANSWER : a

115. Why should you specify a background color if you are using an image for the actual background of your page?

a) So the text shows up better
b) In case the image doesn’t fit right
c) The background color will be shown until the image loads
d) None of the above

    ANSWER : c

116. Which attribute is used to name an element uniquely?

a) class
b) id
c) dot
d) All of the above

    ANSWER : b

117. Text within <strong> tag is displayed as

a) list
b) italic
c) underline
d) bold

    ANSWER : d

118. To create a combo box which tag will you use?

a) <select>
b) <list>
c) <input type=”dropdown”>
d) None of the above

    ANSWER : a

119. Which tag create a check box for a form in HTML?

a) <checkbox>
b) <select>
c) <input type-“checkbox”>
d) None of the above

    ANSWER : c

 

134) CGI stand for

A)  Command Gate Interface

B)  Common Gateway Interface

C)  Common Gate input

D)  None of the above

  Answer:  B

 

135) For a particular font its size attribute can be an absolute value ranging from

A)  1-10

B)  1-9

C)  1-8

D)  1-7

  Answer:  D

 

136) Which of the following is true

A)  In tables, header cells are centred by default and the data cells are right-aligned.

B)  In the case of character formatting the tag <TW> is used for typewriter-like text

C)  Unordered list starts with <UL> and ends with <UL>

D)  <SUPR> tag is used for superscripts text

  Answer:  C

 

137) Which of the following is true?

A)  BR tag is used to have a blank line

B)  In tables, the header cell is centred by default and the data cells are right-aligned

C)  The <TR> is used to create a data cell

D)  INPUT tag must have at least 4 attributes

  Answer:  A

 

138) Example for bitmap application is

A)  MS paint

B)  Photoshop

B) Sound recorder

D) None of the above

  Answer:  A

 

139) The ideal rate for animation is

A) 30 Frames/second                          B) 20 Frames/second

C) 40 Frames/second                          D) None of the above

  Answer:  A

 

140) The symbol that identities that HREF attribute as the name of a NAME anchor rather than an address or filename is

A)  “&”

B)  “$”

C)  “#”

D)  “!”

  Answer:  C

 

141) The purpose of markup is to

A)  Add hypertext capabilities

B)  Enhance the document

C)  Both a) & b)

D)  None of the above

  Answer:  C

 

142) to get the ordered list we use

A)  <HI>

B)  <UL>

C)  <OL>

D)  <ML>

  Answer:  C

 

143) HTML is the method where ordinary text can be converted into

A)  ASCII Text

B)  EBCDIC Text

C)  Hypertext

D)  None of the above

  Answer:  C

 

144). OLE stands for

A)  Object-level embedding

B)  Object linking and embedding

C)  Object-level extraction

D)  None of the above

  Answer:  B

 

145) Example of picture editing software is

A)  MS paint

B)  Photoshop

C)  Sound recorder

D)  None of the above

  Answer:  B

 

146) Which of the following tags do not require a terminator?

A)  <U>

B)  <BR>

C)  <B>

D)  None of above

  Answer:  B

 

147) The tag to give visual division between sections of the page and which causes the browser to draw an embossed line is

A)  <HL>

B)  <HR>

C)  <UR>

D)  None of the above

  Answer:  B

 

148) Which one of the following tags is used to insert graphics on the web page?

A)  <IMAGE>

B)  <IMAGES>

C)  <IMG>

D)  <GRAPHICS>

  Answer:  C

 

149) In HTML ______ tag contains the information about the current document such as title etc. A) Body

B)  TD

C)  HEAD

D)  None of the above

  Answer:  C

 

150) Which of the following is false?

A)  TYPE and NAME are the attributes of the INPUT tag

B)  SCR is a must if UNPUT TYPE is image

C)  POST allows the content of the forms to be passed one element at a time D) GET allows accepting one element at a time

  Answer:  D

 

151) The components of multimedia are

A)  Text, pictures, video, sound

B)  Text pictures, animation

C)  Text, pictures, video, animation, sound

D)  None of the above

  Answer:  C

 

152) Which of the following NOT a sound property

A)  Asterisk

B)  Critical stop

C)  Default beep

D)  Frame grabber

  Answer:  C

 

153) If you want to allow to play music on your web page with Internet Explorer; will not work with people browsing with Netscape.

a)  <BGSOUND SRC=sounds.wav loop=infinite>

b)  <Bgsound = abc.wav loop =infinite>

c)  <background sound= sound.wav loop= infinite >

d)  None of the above

  Answer:  A

 

154) The application of creative mixer is

A)  To control the only output of the audio signal

B)  To control only input of the audio signal

C)  To control both input and output of the audio signal

D)  None of the above

  Answer:  C

 

155) JPEG stands for

A)  Joint photographic embedded group

B)  Joint photographic extended group

C)  Joint photographic experts group

D)  None of the above

  Answer:  C

 

156) Morphing is also related to

A)  Text

B)  Sound

C)  Animation

D)  None of the above

  Answer:  C

 

157) Minimum main memory required to set up a multimedia computer is

A)  4GB

B)  4MB

C)  200MB

D)  8MB

  Answer:  D

 

158) CD-ROM stands for

A)  Computer disk read-only memory

B)  Computer disk readout memory

C)  Compact disk read-only memory

D)  Compact disk readout memory

  Answer:  C

 

159) MIDI stands for

A)  Musical interface digital instrument

B)  Musical instrument digital interfaces

C)  Musical instrument digital input

D)  Musical instrument digital instrument

  Answer:  B

 

160) TIFF stands for

A)  Tagged image file format

B)  Textual images file format

C)  Tagged image font file

D)  None of the above

  Answer:  A

 

161) WMF is a

A)  Text format

B)  Vector format

C)  CompuServe

D)  None of the above                                      

 Answer:  B

 

162) The application of wave studio is

A)  Transfer sound information from analog to digital

B)  It is used to record play and edits 8-bit or 16-bit wave data

C)  Transfer sound information from waveform to avi form

D)  None of the above

  Answer:  B

 

163) The main factor in the rapid growth of net was the inclusion of ___ protocol in the Berkely versions of ___ A) TCP/IP, Xenix

B)  TCP/IP, Linux

C)  TCP/IP, Punix

D)  None of the above

  Answer:  C


165) FTP applications are

A)  Used to download and upload files

B)  Internet browsers

C)  Used to send E-mails

D)  Used to chat with other people

  Answer:  A

 

166) Which of the following FTP program found in all the windows system? A) WFTP.EXE.

B)  FTP.EXE.

C)  WSFTP.EXE

D)  TFTP.EXE

  Answer:  B

 

167) The domain for India is

A)  Ind

B)  Indi

C)  In

D)  Indus

  Answer:  C


169) Which of the following is true?

A)  TCP/IP account is less expensive than the shell account and does not allow graphics to download.

B)  TCP/IP account is more expensive than the shell account and does allow graphics to download. C) TCP/IP account is more expensive than the shell account and allow graphics to download D) None of the above

  Answer:  C

 

170) DNS server is used for

A)  To translate the domain name of another computer into IP address only

B)  To translate the domain name of another computer into IP address and vice versa on request C) To translate the IP address to the domain name

D) None of the above

  Answer:  B

 

171) The program which can be used to make your computer act as a terminal is

A)  Terminal simulation program

B)  Terminal emulation program

C)  Terminal emulsion program

D)  None of the above

  Answer:  B

 

172) ____is widely known as the father of the world wide web

A)  Tom Berners-lee

B)  Tom bruce-lee

C)  Tim bruce-lee

D)  Tim Berners-Lee

  Answer:  D

 

173) The search engine, which lets you search across sites in many languages, ranging from greek to Hebrew to Estonian.

A)  www.isleuth.com.

B)  www.altavista.digital.com.

C)  www.excite.com.

D)  www.yahoo.com.

  Answer:  B

 

174) The leading bit pattern for the class c network is

A)  0

B)  10

C)  101

D)  None of the above

  Answer:  D

 

165) Which of the following is true

A)  TCP/IP link allows your computer to function as an internet host

B)  Local area network link allows your computer to function as an internet host

C)  TCP/IP link does not allow the computer to the internet host

D)  Local area network link cannot be used as intranet host

  Answer:  A

 

176) URL is an acronym for

A) Universal research locator                  

 B) Universal resource locator

C) Uniform research locator   

D) Uniform resource locator   

Answer:  D

 

177) The following is best suitable for remote administration of a computer

A)  WAIS

B)  Browsers

C)  Telnet

D)  None of the above

  Answer:  C

 

178) Www.lycos.com was developed by

A)  Cambridge university

B)  California university

C)  Carnegie-Mellon university

D)  None of the above

  Answer:  C

 

179) Which of the following is not a layer of the OSI reference models

A)  Session

B)  Data transmission

C)  Network

D)  Physical

  Answer:  B

 

180) ARPA is the acronym for

A)  Applied research project agency

B)  Advanced remote project agency

C)  Applied remote project agency

D)  Advanced research project agency

  Answer:  D

 

181) VSNL is an acronym for

A)  Vishesh Samachar Nigam ltd

B)  Virat Sanchar Nigam ltd

C)  Videsh Sanchar Nigam ltd

D)  Videsh Samachar Nigam ltd

  Answer:  C

 

182) TCP is the acronym for

A)  Transmission control protocol

B)  Transit control protocol

C)  Transmission calling protocol

D)  None of the above

  Answer:  A

 

183) The network address of all ones represents

A)  This network

B)  All network

C)  This node

D)  None of the above

  Answer:  B

 

184) Most of the E-mail service providers use either ___ or ___ protocol for e-mail

A) X.25, X.500                                  

B) X.50, X.400

C) X.25, X.400                                   

D) None of the above

  Answer:  C

 

185) IMAP is an acronym for

A)  Internet mail access protocol

B)  International mail access protocol

C)  Interactive mail access protocol

D)  None of the above

  Answer:  C

 

186) URI is the acronym for

A)  Universal resource identifier

B)  Unified resource identifier

C)  Universal reference identifier

D)  None of the above

  Answer:  A

 

187) HTML is acronym for

A)  Hypertext marking language

B)  Hypertext making language

C)  Hypertext markup language

D)  Hyper transport markup language

  Answer:  C

 

188) The domain name “gov.” stands for

A)  U.S.Governmet

B)  Any Government

C)  Developed nations government

D)  None of the above

  Answer:  A

 

189) BBS are ventured usually run by

A)  Government

B)  Institutes

C)  Students

D)  None of the above

  Answer:  A

 

190) Which of the following is not correct in regard to the E-mail system

A) Using encryption you could electronically deliver confidential documents saving time and money

B) Limited only to local area network

C) Cost of sending messages across the world is the same as that of sending across the city D) If the recipient is not around, the message is delivered to this mailbox   

Answer:  B

 

191) Every resource available on the web has an address that may be encoded by a

A)  URI

B)  HTTP

C)  BOTH A) & B)

D)  None of the above

  Answer:  A

 

192) The actual number of usable class a network is

A) 127                                    

B) 128

C) 126                                    

D) None of the above

  Answer:  A

193) In Microsoft Outlook Express, if the same e-mail has to be sent to many addresses what can be done?

A)  The addresses are typed in the to box separated by a comma or a colon

B)  E_Mail are sent one by one typing the addresses separately

C)  Same messages cannot be sent to different users

D)  None of the above

  Answer:  A

 

194) While sending e-mail addresses typed against BCC receive________

A)  Blank Carbon Copy

B)  Block Carbon Copy

C)  Blind Carbon Copy

D)  None of the above

  Answer:  C

 

195) In India E-mail through an Internet service provider is available since

A)  August 15, 1994

B)  August 14, 1995

C)  August 15, 1995

D)  August 14, 1996

  Answer:  C

 

196) HTTP stands for

A)  Hyper Text Transfer Protocol

B)  Hyper Text Transfer Process

C)  Higher Text Transfer Process

D)  None of the above

  Answer:  A

 

197) The class B network format is

A)  Network. Node. Network. Node

B)  Network. Node. Node. Node

C)  Network. Network. Network. Node

D)  Network. Network. Node. Node

  Answer:  D

 

198) POP is an acronym for

A)  Process Order Protocol

B)  Post Order Protocol

C)  Power Order Protocol

D)  Post Office Protocol

  Answer:  D

 

199) BBS based message can be echoed across the world through

A)  Globalnet

B)  Fidonet

C)  Didonet

D)  Internet

  Answer:  D

 

200) E-mail works on

A) Forward and Backward Principle                   

B) Store and Retrieve Principle

C) Store and Forward Principle           

D) Front and Back Principle   

Answer:  C

 

201) The Web relies on the following mechanisms to make it resource readily available.

A)  A uniform naming scheme

B)  Protocols

C)  Hypertext D) All the above.

  Answer:  B


203) WINS stands for

a)  windows intranet named service

b)  world internet name server

c)  world intranet named service

d)  windows internet name service

  Answer:  (D)

 

204) SLIP is an acronym for

a)  selected line input process

b)  selected line inputs provider

c)  serial line internet protocol

d)  serial line input process

  Answer:  (c)

 

205) PPP is an acronym for

a)  process to process protocol

b)  process to process pointing

c)  point to point process

d)  point to point protocol

  Answer:  (d)

 

206) A modem is used for

a)  to connect the local area network to TCP/IP network

b)  to connect internet via telephone line

c)  to connect internet via satellite

d)  all the above

  Answer:  (D)

 

207) Which of the following FTP program found in all the windows system? a) wftp.exe

b)  wsftp.exe

c)  ftp.exe

d)  tftp.exe

  Answer:  c)

 

208) OSI stands for

 

a) open system interconnect 

b) open system interface

 

c) other system interface   

d) none of the above         

Answer:  b)


 

210) Which of the following is not a layer of the OSI reference model.

a)  Session

b)  Data transmission

c)  Network

d)  Physical   

Answer:  b)

 

211) SMTP stands for

a)  simple mail transfer protocol

b)  single mail transfer protocol

c)  sequential mail transfer protocol

d)  none of the above

  Answer:  a)

 

212) Email works on

a)  forward and backward principle

b)  store and retrieve principle

c)  store and forward principle

d)  front and back principle

  Answer:  a)

 

213) The domain name “gov” stands for a) us government

b)  any government

c)  developed nations government

d)  none of the above

  Answer:  b)

 

214) ftp application is

a) internet browsers

b)  used to send email

c)  used to download and upload files

d)  none of the above

  Answer:  c)

 

215) http stands for

a)  hyper text transfer process

b)  hyper text transfer protocol

c)  higher text transfer process

d)  none of the above

  Answer:  b)

 

216) url is the acronym for

a)  Uniform research location. 

b)  Uniform resource locator

c)  Uniform resource location.    

d)  Uniform resistor locator.

  Answer:  b)

 

1. What is HTML?

a) HTML describes the structure of a webpage

b) HTML is the standard markup language mainly used to create web pages

c) HTML consists of a set of elements that helps the browser how to View the content

d) All of the mentioned

 Answer: d

Explanation: HTML is the standard markup language mainly used to create web pages. HTML describes the structure and layout of a webpage. HTML consists of a series of elements that helps the browser how to display content easily.

2. Who is the father of HTML?

a) Rasmus Lerdorf

b) Tim Berners-Lee

c) Brendan Eich

d) Sergey Brin

Answer: b

Explanation: Timothy John Berners-Lee (TimBL) is known as the father of HTML. He is a British computer scientist, best known as the inventor of the World Wide Web.

3. HTML stands for __________

a) HyperText Markup Language

b) HyperText Machine Language

c) HyperText Marking Language

d) HighText Marking Language

 Answer: a

Explanation: HTML stands for “HyperText Markup Language”. HTML is the standard markup language mainly used to design and create web pages and web applications.

4. What is the correct syntax of doctype in HTML5?

a) </doctype html>

b) <doctype html>

c) <doctype html!>

d) <!doctype html>

Answer: d

Explanation: The correct syntax of HTML5 doctype is <!doctype html>, doctype is the very first thing to write in HTML5. <!doctype html> or <!DOCTYPE HTML>

5. Which of the following is used to read an HTML page and render it?

a) Web server

b) Web network

c) Web browser

d) Web matrix

 Answer: c

Explanation: A web browser (commonly referred to as a browser) is a software application for retrieving, presenting and traversing information resources on the World Wide Web. A web server

process, store and display output to the client as per their request. Web matrix is a discontinued cloud-connected website builder and HTML editor for Windows.

6. Which of the following is not a difference between HTML and XHTML?

a) Charset in both html and xhtml is “text/html”

b) Tags and attributes are case-insensitive in HTML but not in XHTML

c) Special characters must be escaped using character entities in XHTML unlike HTML

d) Charset in html is “text/html” where as in xhtml it is “application/xml+xhtml”

 Answer: a

Explanation: HTML is case insensitive while XHTML is case sensitive. In XHTML, special characters can be escaped using character entites but not in HTML. Charset in HTML is “text/html”

where as it is “application/xml+xhtml” for XHTML.

7. Which of the following tag is used for inserting the largest heading in HTML?

a) head

b) <h1>

c) <h6>

d) heading

Answer: b

Explanation: Headings in HTML starts from <h1> to <h6> in which <h1> heading is the largest one and <h6> is smallest one among those. The heading tags are <h1> <h2> <h3> <h4> <h5> and

<h6> that are used for the creations of headings.

8. What is DOM in HTML?

a) Language dependent application programming

b) Hierarchy of objects in ASP.NET

c) Application programming interface

d) Convention for representing and interacting with objects in html documents

 

Answer: d

Explanation: The Document Object Model is a cross-platform and language-independent application programming interface that treats an HTML, XHTML, or XML document as a tree structure. A

document can be Viewed as a logical tree with help of DOM Model.

9. In which part of the HTML metadata is contained?

a) head tag

b) title tag

c) html tag

d) body tag

 Answer: a

Explanation: Metadata is information about data. The meta tag provides metadata/meta information about the HTML document. Metadata will not be displayed on the page. Metadata is present in

head. The body tag defines document’s body. A title tag is an HTML element which specifies the title of a web page.

10. Which element is used to get highlighted text in HTML5?

a) <u>

b) <mark>

c) <highlight>

d) <b>

 Answer: b

Explanation: The <mark> element is used to highlight a section of text. It is useful for quoting a text or if one wants to bring attention to the text. The <b> tag is used to make text/paragraph bold.

<u> tag is used to underline the text you wanted.

<p>This is the example.<mark> I like this dog. </mark></p>

Output: This is the example. I like this dog.

11. Which of the following is not a HTML5 tag?

a) <track>

b) <video>

c) <slider>

d) <source>

Answer: c

Explanation: <video> tag is used to display video clips in HTML5. Multiple media resources for media elements is specified by <source> tag. Text track for media elements i.e. <audio> & <video>

is provided by <track> tag in HTML5. There is no such thing as slider tag in HTML5.

12. How do we write comments in HTML?

a) </…….>

b) <!……>

c) </……/>

d) <…….!>

 

Answer: b

Explanation: Browser ignores comment in a code. There are always two types of command i.e. single line command and multiple line command. If one wants to add a comment in code, add the text

between these characters <!…..comment….>. It will not visible in the user’s browser.

13. Which of the following elements in HTML5 defines video or movie content?

a) <video>

b) <movie>

c) <audio>

d) <media>

 Answer: a

Explanation: The media to which linked document is optimized is given by <media> tag. Before HTML5, videos could only be played with a plug-in (like flash). The HTML5 video element

specifies a standard way to embed a video in a webpage. As like <video> elements, <audio> element contains additional files or streams like music, recording, etc.

14. Which of the following is not the element associated with the HTML table layout?

a) alignment

b) color

c) size

d) spanning

 Answer: b

Explanation: There are three elements in HTML table layout i.e. size, spanning and alignment. Layout type can be achieved by setting Rows elements layout attribute to Fixed or Auto. Auto

attribute relies on browser compatibility whereas fixed layout relies on developer specification.

15. Which element is used for or styling HTML5 layout?

a) CSS

b) jQuery

c) JavaScript

d) PHP

 Answer: a

Explanation: For styling HTML5, CSS i.e Cascading Style Sheet is used. It is style sheet language and designed to describe presentation of its content including layouts, colors and fonts. CSS can

control the layout of multiple webpages.

16. Which HTML tag is used for making character appearance bold?

a) <u>content</u>

b) <b>content</b>

c) <br>content</br>

d) <i>content</i>

 Answer: b

Explanation: By enclosing words in the tags <b>and</b> we can make characters appear bold. <i> element is for content in italics, <u> is for underlined content, <br> is for vertical breaking.

17. Which HTML tag is used to insert an image?

a) <img url=”htmllogo.jpg” />

b) <img alt=”htmllogo.jpg” />

c) <img src=”htmllogo.jpg” />

d) <img link=”htmllogo.jpg” />

 Answer: c

Explanation: In HTML, <img> tag is used to insert an image in HTML page. Image tag has two attributes (src and Alt).

–> Src attribute is used to specify the image path.

–> Alt attribute is used to specify the alternate text for the image.

advertisement

18. HTML is a subset of ___________

a) SGMT

b) SGML

c) SGME

d) XHTML

 

Answer: b

Explanation: HTML is a subset of SGML. SGML (Standard Generalized Markup Language) is a standard for specifying a document markup language or tag set.

19. Which character is used to represent when a tag is closed in HTML?

a) #

b) !

c) /

d) \

 

Answer: c

Explanation: The forward-slash (/) is used to indicate the closure of a tag within HTML.

20. Which of the following HTML code will make an image clickable?

a)

<a href="https://www.sanfoundry.com/">Sanfoundry Home Page</a>

b)

<img src="https://www.sanfoundry.com/sanfoundry-logo">

<a href="https://www.sanfoundry.com/">Sanfoundry Home Page</a>

</img>

c)

<a href="https://www.sanfoundry.com/">Sanfoundry Home Page</a>

<img src="https://www.sanfoundry.com/sanfoundry-logo" />

d)

<a href="https://www.sanfoundry.com/"><img src="https://www.sanfoundry.com/sanfoundry-logo" /></a>

 

Answer: d

Explanation: <a> tag defines a hyperlink, which is used to link from one page to another page. Suppose if we want an image to be clickable then it should go inside <a> Tag.

21. Among the following, which is the HTML paragraph tag?

a) <p>

b) <pre>

c) <hr>

d) <a>

 

Answer: a

Explanation: <p> tag is used for paragraph in HTML.

22. In HTML, which attribute is used to create a link that opens in a new window tab?

a) src=”_blank”

b) alt=”_blank”

c) target=”_self”

d) target=”_blank”

 

Answer: d

Explanation: Add the target=”_blank” attribute in the Anchor tag. target=”_blank” attribute makes a link open in a new window tab.

23. Which HTML element is used for short quote?

a) <em>

b) <abbr>

c) <q>

d) <blockquote>

 

Answer: c

Explanation: <em> element indicates emphasis, browser will show the contents of <em> element in italic. A section which is quoted from another source is specified by <blockquote>. The <abbr>

defines abbreviation. We used <q> element for shorter quote. Browser put quote around <q> element.

<p>This is a <q>black dog</q>.</p>

Output: This is a “black dog”.

24. Which of the following HTML tag is used to create an unordered list?

a) <ol>

b) <ul>

c) <li>

d) <ll>

 

Answer: b

Explanation: <ul> tag is used to create the unordered list items in an HTML document. By default, unordered list items will display in a bulleted format.

Different types of unordered list Attribute Values are:

Disc

Circle

Square

None

Syntax: <ul> Unordered List Items </ul>

25. Which HTML element is used for abbreviation or acronym?

a) <abbr>

b) <blockquote>

c) <q>

d) <em>

 

Answer: a

Explanation: <em> element indicates emphasis, browser will show the contents of <em> element in italic. We used <q> element for shorter quote. Browser put quote around <q> element. A section

which is quoted from another source is specified by <blockquote>. For using, abbreviation or acronym <abbr> element is helpful. A title element is to be used with abbr.

<p>The <abbr title=”Doctor”>Dr.</abbr> is on the way.</p>

Output: The Dr. is on the way.

26. Which of the following HTML tag is used to add a row in a table?

a) <th>

b) <td>

c) <tr>

d) <tt>

 

Answer: c

Explanation: In HTML, <tr> tag is used to create a row in the table. <th> tag is used to set the header cell of a table.

27. What is the work of <address> element in HTML5?

a) contains IP address

b) contains home address

c) contains url

d) contains contact details for author

 

Answer: d

Explanation: The contact details for author of a page is specified by <address> attribute. The content is often displayed in italics,

e.g.

<address>

<a href="mailto:[email protected]">Sanfoundry</a>

</address>

Output:

Sanfoundry

28. Which of the following tag is used to create a text area in HTML Form?

a) <textarea> </textarea>

b) <text></text>

c) <input type=”text” />

d) <input type=”textarea” />

 

Answer: a

Explanation: The text area tag (<textarea>) is used in a form to declare a text area element. It allows the user to enter text in multiple rows.

29. To show deleted text, which HTML element is used?

a) <del>

b) <em>

c) <strong>

d) <ins>

 

Answer: a

Explanation: <strong> element shows the importance of text/paragraph between it’s tags. <em> element indicates emphasis, browser will show the contents of <em> element in italic. <ins> element

shows the content that has been inserted, usually it has underline. <del> element shows text that has been deleted from, usually it has a line through the content.

<p>This is <del>not</del> for deletion </p>

Output: This is not for deletion.

30. What is the correct syntax of web address?

a) port://domain.filenmae:path/scheme/prefix

b) prefix://scheme.port:domain/filename/path

c) path://prefix.port:domain/filename/scheme

d) scheme://prefix.domain:port/path/filename

 

Answer: d

Explanation: The correct syntax for a web address is scheme://prefix.domain:port/path/filename, where scheme is for https or http, prefix is for domain like www, domain denotes domain name,

port defines port number, path defines path at server, filename is for name of the document.

31. Which tag is used to create a dropdown in HTML Form?

a) <input>

b) <select>

c) <text>

d) <textarea>

 

Answer: b

Explanation: <select> element is used to create a drop-down list in HTML Forms. It is mainly used to collect user input. Option tags are used within the <select> element to define available options

from the drop-down list.

32. Which tag is used to create a numbered list in HTML?

a) <ol>

b) <ul>

c) <li>

d) <ll>

 

Answer: a

Explanation: <ol> tag is used to create the numbered list or ordered list items in an HTML document. An ordered list can be numerical or alphabetical order. <li> tag is used to define each list item.

Syntax: <ol> Ordered List Items </ol>

33. How to create a checkbox in HTML Form?

a) <input type=”text”>

b) <input type=”textarea”>

c) <input type=”checkbox”>

d) <input type=”button”>

 

Answer: c

Explanation: <input type=”checkbox”> is used to create a checkbox in HTML Form. Checkboxes allow a user to select one or more options of a limited number of choices.

34. How to insert Hyperlink in HTML Page?

a)

<a href="https://www.sanfoundry.com/1000-html-questions-Answers/">HTML MCQ</a>

b)

<a target="https://www.sanfoundry.com/1000-html-questions-Answers/" HTML Quiz />

c)

<a src="https://www.sanfoundry.com/1000-html-questions-Answers/">HTML Test</a>

d)

<a>https://www.sanfoundry.com/1000-html-questions-Answers/</a>

 

Answer: a

Explanation: An anchor tag (<a>) and href attribute are used to create a hyperlink in HTML.

35. Which of the following extension is used to save an HTML file?

a) .hl

b) .h

c) .htl

d) .html

 

Answer: d

Explanation: .html or .htm extensions are used to save the HTML file.

36. Which tag is used to create a blank line in HTML?

a) <b>

b) <br>

c) <em>

d) <a>

 

Answer: b

Explanation: In HTML, <br> tag is used to create a blank line. <b> tag is used to specify the bold text. <em> tag is used to define the emphasized text.

37. Which HTML tag is used to convert the plain text into italic format?

a) <b>

b) <p>

c) <i>

d) <a>

 

Answer: c

Explanation: In HTML, <i> tag is used to convert the plain text into italic format.

38. What is the use of <hr/> tag in HTML?

a) For making content appearance italics

b) To create vertical rule between sections

c) To create a line break

d) To create horizontal rule between sections

 

Answer: d

Explanation: To create a break between themes-such as a change of topic in a book or a new scene in a play-you can add a horizontal rule between sections using <hr/> tag

39. Which attribute is not essential under <iframe>?

a) frameborder

b) width

c) height

d) src

 

Answer: a

Explanation: An iframe is equivalent to a window that has been cut into our page, it is created using <iframe> element. Src, height, width attribute are essentially used inside of this. Src attribute

specifies the URL of the page which is to be shown. Height and width specify the height and width of an iframe in pixels.

40. Which works similar to <b> element?

a) <blockquote>

b) <strong>

c) <em>

d) <i>

 

Answer: b

Explanation: The words are written inside <strong> can be said with strong emphasis. Browser shows contents written inside <strong> element in bold.

Example:

<p>1000 <strong>HTML</strong> MCQs.</p>

Output: 1000 HTML MCQs.

41. Which tag is used to underline the text in HTML?

a) <p>

b) <u>

c) <i>

d) <ul>

 

Answer: b

Explanation: In HTML, underline tag (<u>) is used to display the underlined text.

Example: HTML stands for <u>HyperText Markup Language</u>.

42. Which attribute specifies a unique alphanumeric identifier to be associated with an element?

a) type

b) article

c) id

d) class

 

Answer: c

Explanation: HTML is Hyper Text Markup Language that is used to create web pages and applications. The id attribute is most used to point to a style in a style sheet, and by JavaScript (via the

HTML DOM) to manipulate the element with the specific id. Class is a name given to HTML elements that can be used by CSS and JavaScript for styling web pages. A self-contained content is

called an attribute.

43. Which of the following is an HTML specification used to add more information to HTML tags?

a) Modifydata

b) Minidata

c) Macrodata

d) Microdata

 

Answer: d

Explanation: The Microdata spec provides a standardized syntax for additional semantic markup to your web pages to enhance the machine readability of your web pages. The planning for

distribution center operation is offered by minidata. Macrodata and Modifydata are not any terms related to HTML5.

44. Which HTML element is used for YouTube videos?

a) <samp>

b) <small>

c) <frame>

d) <iframe>

 

Answer: d

Explanation: We can host our videos through YouTube and can easily embed them into our website. <iframe> tag will be used for YouTube videos.

E.g. <iframe width=”670” height=”612” src= “https://sanfoundry.com”> </iframe>

45. Which of the following HTML element is used for canvas graphics?

a) <css>

b) <paint>

c) <canvas>

d) <graphic>

 

Answer: c

Explanation: CSS i.e. Cascading Style Sheet is a scripting language. Canvas graphics are introduced in HTML5. Element used for canvas graphics is <canvas>. The HTML canvas element is used

to draw graphics, on the fly, via scripting (usually JavaScript).

46. State whether the given statement is true or false. !DOCTYPE is case sensitive”.
a) True
b) False


Answer: b
Explanation: XML is a case sensitive while HTML is case insensitive. So the declaration “!DOCOTYPE” is case sensitive in XML and it is not case sensitive in HTML, we can write the “!DOCTYPE” declaration in both lowercase and uppercase, thus both are valid.

47. Choose the correct statement.
a) In traditional XHTML close tag for some elements is optional but not encouraged
b) In traditional HTML close tag for some elements is optional but not encouraged
c) In both traditional XHTML and HTML close tag for some elements is not optional
d) In both traditional XHTML and HTML close tag for some elements is optional


Answer: b
Explanation: In XHTML all elements must always be closed and empty elements also be closed. XHTML close tags are not optional neither they are encouraged. HTML is case insensitive and thus closing tags for some elements including empty elements is optional and is ignored by browsers.

48. Which of the following XHTML doctype declaration contains all HTML elements and attributes, including presentational and deprecated elements (like font) but not framesets?
a) !DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”
b) !DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”
c) !DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Frameset//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd”
d) <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” “http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd”>


Answer: b
Explanation: The !DOCTYPE declaration is not an HTML tag; it is an instruction to the web browser about what version of HTML the page is written in. The XHTML doctype declaration “!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”” is of XHTML 1.0 strict, “!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”” is of XHTML 1.0 transitional, “!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Frameset//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd”” is of XHTML 1.0 frameset and “<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” “http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd”>” is of XHTML 1.1.

49. Which of the following is not a difference between HTML and XHTML?
a) Charset in html is “text/html” where as in xhtml it is “application/xml+xhtml”
b) Charset in both html and xhtml is “text/html”
c) Tags and attributes are case-insensitive in HTML but not in XHTML
d) Special characters must be escaped using character entities in XHTML unlike HTML


Answer: b
Explanation: HTML is case insensitive while XHTML is case sensitive. In XHTML, special characters can be escaped using character entites but not in HTML. Charset in HTML is “text/html” where as it is “application/xml+xhtml” for XHTML.

50. What indicates the content in file is HTML when delivered on the network.
a) The extension of the file “.html”
b) The “content-type” header
c) Both “.html” extension and “content-type” header
d) The “content_type” header


Answer: b
Explanation: Content-type: header indicates the content in the file is HTML and we can see file content through it when delivered on the network. “.html” is the file extension for HTML.

51. State whether the given statement is true or false. “We can intermix XHTML and HTML 4.01 documents”
a) True
b) False


Answer: b
Explanation: HTML is not in XML format. You have to make the changes necessary to make the document proper XML before you can get it accepted as XML.

52. HTML and XHTML stands for ______
a) Hyper Text Markup Language and Extensible HyperText Markup Language
b) Hyper Text Markup Language and Extensible HyperText Marking Language
c) Hyper Text Marking Language and EXtensible HyperText Marking Language
d) Hyper Text Marking Language and Extensible HyperText Markup Language


Answer: a
Explanation: HTML stands for “Hyper Text Markup Language” and XHTML stand for “Extensible HyperText Markup Language”.

53. Choose the correct tag for the largest heading in HTML.
a) h6
b) heading
c) h1
d) head


Answer: c
Explanation: Headings in HTML starts from <h1> to <h6> in which <h1> heading is the largest one and <h6> is smallest one among those. The heading tags are <h1> <h2> <h3> <h4> <h5> and <h6> that are used for the creations of headings.

54. Which of the following are table tags?
a) table, thead, tr, td
b) colspan, table, tr
c) table, tt, tr, td
d) thead, colspan, td, tr


Answer: a
Explanation: Table has different tags such as table, thead, tr, td, etc whereas colospan is an attribute of table.

55. Choose the correct HTML for width attribute and its value.
a) width=80
b) width=”80

c) WIDTH=
80
d) WIDTH=80


Answer: b
Explanation: Always mention the attribute value in quotes in HTML. It is one of the rule of HTML attributes.

 

 

 

1) There are ___ levels of heading in HTML

A) Three

b)  Four

c)  Five

d)  Six

Answerd :D

 


17) Which of the following tags do not require a terminator a) <u>

b)  <br>

c)  <b>

d)  none of the above

  Answer:  b)

 

18. CGI stand for

A)  Command Gate Interface

B)  Common Gateway Interface

C)  Common Gate input

D)  None of the above

  Answer:  B

 

19) For a particular font its size attribute can be an absolute value ranging from

A)  1-10

B)  1-9

C)  1-8

D)  1-7

  Answer:  D

 

20) Which of the following is true

A)  In tables, header cells are centred by default and the data cells are right-aligned.

B)  In the case of character formatting the tag <TW> is used for typewriter-like text

C)  Unordered list starts with <UL> and ends with <UL>

D)  <SUPR> tag is used for superscripts text

  Answer:  C

 

21) Which of the following is true?

A)  BR tag is used to have a blank line

B)  In tables, the header cell is centred by default and the data cells are right-aligned

C)  The <TR> is used to create a data cell

D)  INPUT tag must have at least 4 attributes

  Answer:  A

 

22) Example for bitmap application is

A)  MS paint

B)  Photoshop

B) Sound recorder

D) None of the above

  Answer:  A

 

23) The ideal rate for animation is

A) 30 Frames/second                 B) 20 Frames/second

C) 40 Frames/second                 D) None of the above

  Answer:  A

 

24) The symbol that identities that HREF attribute as the name of a NAME anchor rather than an address or filename is

A)  “&”

B)  “$”

C)  “#”

D)  “!”

  Answer:  C

 

25) The purpose of markup is to

A)  Add hypertext capabilities

B)  Enhance the document

C)  Both a) & b)

D)  None of the above

  Answer:  C

 

26) to get the ordered list we use

A)  <HI>

B)  <UL>

C)  <OL>

D)  <ML>

  Answer:  C

 

27) HTML is the method where ordinary text can be converted into

A)  ASCII Text

B)  EBCDIC Text

C)  Hypertext

D)  None of the above

  Answer:  C

 

28). OLE stands for

A)  Object-level embedding

B)  Object linking and embedding

C)  Object-level extraction

D)  None of the above

  Answer:  B

 

29) Example of picture editing software is

A)  MS paint

B)  Photoshop

C)  Sound recorder

D)  None of the above

  Answer:  B

 

30) Which of the following tags do not require a terminator?

A)  <U>

B)  <BR>

C)  <B>

D)  None of above

  Answer:  B

 

31) The tag to give visual division between sections of the page and which causes the browser to draw an embossed line is

A)  <HL>

B)  <HR>

C)  <UR>

D)  None of the above

  Answer:  B

 

32) Which one of the following tags is used to insert graphics on the web page?

A)  <IMAGE>

B)  <IMAGES>

C)  <IMG>

D)  <GRAPHICS>

  Answer:  C

 

33) In HTML ______ tag contains the information about the current document such as title etc. A) Body

B)  TD

C)  HEAD

D)  None of the above

  Answer:  C

 

34) Which of the following is false?

A)  TYPE and NAME are the attributes of the INPUT tag

B)  SCR is a must if UNPUT TYPE is image

C)  POST allows the content of the forms to be passed one element at a time D) GET allows accepting one element at a time

  Answer:  D

 

35) The components of multimedia are

A)  Text, pictures, video, sound

B)  Text pictures, animation

C)  Text, pictures, video, animation, sound

D)  None of the above

  Answer:  C

 

36) Which of the following NOT a sound property

A)  Asterisk

B)  Critical stop

C)  Default beep

D)  Frame grabber

  Answer:  C

 

37. If you want to allow to play music on your web page with Internet Explorer; will not work with people browsing with Netscape.

a)  <BGSOUND SRC=sounds.wav loop=infinite>

b)  <Bgsound = abc.wav loop =infinite>

c)  <background sound= sound.wav loop= infinite >

d)  None of the above

  Answer:  A

 

38) The application of creative mixer is

A)  To control the only output of the audio signal

B)  To control only input of the audio signal

C)  To control both input and output of the audio signal

D)  None of the above

  Answer:  C

 

39) JPEG stands for

A)  Joint photographic embedded group

B)  Joint photographic extended group

C)  Joint photographic experts group

D)  None of the above

  Answer:  C

 

40) Morphing is also related to

A)  Text

B)  Sound

C)  Animation

D)  None of the above

  Answer:  C

 

41) Minimum main memory required to set up a multimedia computer is

A)  4GB

B)  4MB

C)  200MB

D)  8MB

  Answer:  D

 

42) CD-ROM stands for

A)  Computer disk read-only memory

B)  Computer disk readout memory

C)  Compact disk read-only memory

D)  Compact disk readout memory

  Answer:  C

 

43) MIDI stands for

A)  Musical interface digital instrument

B)  Musical instrument digital interfaces

C)  Musical instrument digital input

D)  Musical instrument digital instrument

  Answer:  B

 

44) TIFF stands for

A)  Tagged image file format

B)  Textual images file format

C)  Tagged image font file

D)  None of the above

  Answer:  A

 

45) WMF is a

A)  Text format

B)  Vector format

C)  CompuServe

D)  None of the above                                  Answer:  B

46) The application of wave studio is

A)  Transfer sound information from analog to digital

B)  It is used to record play and edits 8-bit or 16-bit wave data

C)  Transfer sound information from waveform to avi form

D)  None of the above

  Answer:  B

 

47) The main factor in the rapid growth of net was the inclusion of ___ protocol in the Berkely versions of ___ A) TCP/IP, Xenix

B)  TCP/IP, Linux

C)  TCP/IP, Punix

D)  None of the above

  Answer:  C

 


52) Modem speeds are measured in a) bsp

b)  bps

c)  bds

d)  none of the above

  Answer:  B

 

53) Which of the following is true?

A)  TCP/IP account is less expensive than the shell account and does not allow graphics to download.

B)  TCP/IP account is more expensive than the shell account and does allow graphics to download. C) TCP/IP account is more expensive than the shell account and allow graphics to download D) None of the above

  Answer:  C

 

54) DNS server is used for

A)  To translate the domain name of another computer into IP address only

B)  To translate the domain name of another computer into IP address and vice versa on request C) To translate the IP address to the domain name

D) None of the above

  Answer:  B

 

55) The program which can be used to make your computer act as a terminal is

A)  Terminal simulation program

B)  Terminal emulation program

C)  Terminal emulsion program

D)  None of the above

  Answer:  B

 

56) ____is widely known as the father of the world wide web

A)  Tom Berners-lee

B)  Tom bruce-lee

C)  Tim bruce-lee

D)  Tim Berners-Lee

  Answer:  D

 

57) The search engine, which lets you search across sites in many languages, ranging from greek to Hebrew to Estonian.

A)  www.isleuth.com.

B)  www.altavista.digital.com.

C)  www.excite.com.

D)  www.yahoo.com.

  Answer:  B

 

58) The leading bit pattern for the class c network is

A)  0

B)  10

C)  101

D)  None of the above

  Answer:  D

 

59) Which of the following is true

A)  TCP/IP link allows your computer to function as an internet host

B)  Local area network link allows your computer to function as an internet host

C)  TCP/IP link does not allow the computer to the internet host

D)  Local area network link cannot be used as intranet host

  Answer:  A

 

60) URL is an acronym for

A) Universal research locator                 B) Universal resource locator

C) Uniform research locator         D) Uniform resource locator   Answer:  D

61) The following is best suitable for remote administration of a computer

A)  WAIS

B)  Browsers

C)  Telnet

D)  None of the above

  Answer:  C

 

62) Www.lycos.com was developed by

A)  Cambridge university

B)  California university

C)  Carnegie-Mellon university

D)  None of the above

  Answer:  C

 

63) Which of the following is not a layer of the OSI reference models

A)  Session

B)  Data transmission

C)  Network

D)  Physical

  Answer:  B

 

64) ARPA is the acronym for

A)  Applied research project agency

B)  Advanced remote project agency

C)  Applied remote project agency

D)  Advanced research project agency

  Answer:  D

 

65) VSNL is an acronym for

A)  Vishesh Samachar Nigam ltd

B)  Virat Sanchar Nigam ltd

C)  Videsh Sanchar Nigam ltd

D)  Videsh Samachar Nigam ltd

  Answer:  C

 

66) TCP is the acronym for

A)  Transmission control protocol

B)  Transit control protocol

C)  Transmission calling protocol

D)  None of the above

  Answer:  A

 

67) The network address of all ones represents

A)  This network

B)  All network

C)  This node

D)  None of the above

  Answer:  B

 

68) Most of the E-mail service providers use either ___ or ___ protocol for e-mail

A) X.25, X.500                                B) X.50, X.400

C) X.25, X.400                              D) None of the above

  Answer:  C

69) IMAP is an acronym for

A)  Internet mail access protocol

B)  International mail access protocol

C)  Interactive mail access protocol

D)  None of the above

  Answer:  C

 

70) URI is the acronym for

A)  Universal resource identifier

B)  Unified resource identifier

C)  Universal reference identifier

D)  None of the above

  Answer:  A

 

71) HTML is acronym for

A)  Hypertext marking language

B)  Hypertext making language

C)  Hypertext markup language

D)  Hyper transport markup language

  Answer:  C

 

72) The domain name “gov.” stands for

A)  U.S.Governmet

B)  Any Government

C)  Developed nations government

D)  None of the above

  Answer:  A

 

73) BBS are ventured usually run by

A)  Government

B)  Institutes

C)  Students

D)  None of the above

  Answer:  A

 

74) Which of the following is not correct in regard to the E-mail system

A)            Using encryption you could electronically deliver confidential documents saving time and money

B)            Limited only to local area network

C)            Cost of sending messages across the world is the same as that of sending across the city D) If the recipient is not around, the message is delivered to this mailbox   Answer:  B

 

75) Every resource available on the web has an address that may be encoded by a

A)  URI

B)  HTTP

C)  BOTH A) & B)

D)  None of the above

  Answer:  A

 

76) The actual number of usable class a network is

A) 127                                    B) 128

C) 126                                 D) None of the above

  Answer:  A

77) In Microsoft Outlook Express, if the same e-mail has to be sent to many addresses what can be done?

A)  The addresses are typed in the to box separated by a comma or a colon

B)  E_Mail are sent one by one typing the addresses separately

C)  Same messages cannot be sent to different users

D)  None of the above

  Answer:  A

 

78) While sending e-mail addresses typed against BCC receive________

A)  Blank Carbon Copy

B)  Block Carbon Copy

C)  Blind Carbon Copy

D)  None of the above

  Answer:  C

 

79) In India E-mail through an Internet service provider is available since

A)  August 15, 1994

B)  August 14, 1995

C)  August 15, 1995

D)  August 14, 1996

  Answer:  C

 

80) HTTP stands for

A)  Hyper Text Transfer Protocol

B)  Hyper Text Transfer Process

C)  Higher Text Transfer Process

D)  None of the above

  Answer:  A

 

81) The class B network format is

A)  Network. Node. Network. Node

B)  Network. Node. Node. Node

C)  Network. Network. Network. Node

D)  Network. Network. Node. Node

  Answer:  D

 

82) POP is an acronym for

A)  Process Order Protocol

B)  Post Order Protocol

C)  Power Order Protocol

D)  Post Office Protocol

  Answer:  D

 

83) BBS based message can be echoed across the world through

A)  Globalnet

B)  Fidonet

C)  Didonet

D)  Internet

  Answer:  D

 

84) E-mail works on

A) Forward and Backward Principle                       B) Store and Retrieve Principle

C) Store and Forward Principle   D) Front and Back Principle   Answer:  C

85) The Web relies on the following mechanisms to make it resource readily available.

A)  A uniform naming scheme

B)  Protocols

C)  Hypertext D) All the above.

  Answer:  B

  

87) WINS stands for

a)  windows intranet named service

b)  world internet name server

c)  world intranet named service

d)  windows internet name service

  Answer:  (D)

 

88) SLIP is an acronym for

a)  selected line input process

b)  selected line inputs provider

c)  serial line internet protocol

d)  serial line input process

  Answer:  (c)

 

89) PPP is an acronym for

a)  process to process protocol

b)  process to process pointing

c)  point to point process

d)  point to point protocol

  Answer:  (d)

 

90) A modem is used for

a)  to connect the local area network to TCP/IP network

b)  to connect internet via telephone line

c)  to connect internet via satellite

d)  all the above

  Answer:  (D)

 

91) Which of the following FTP program found in all the windows system? a) wftp.exe

b)  wsftp.exe

c)  ftp.exe

d)  tftp.exe

  Answer:  c)

 


94) Which of the following is not a layer of the OSI reference model.


a)  Session

b)  Data transmission

c)  Network

d)  Physical   Answer:  b)

 

95) SMTP stands for

a)  simple mail transfer protocol

b)  single mail transfer protocol

c)  sequential mail transfer protocol

d)  none of the above

  Answer:  a)

 

96) Email works on

a)  forward and backward principle

b)  store and retrieve principle

c)  store and forward principle

d)  front and back principle

  Answer:  a)

 

97) The domain name “gov” stands for a) us government

b)  any government

c)  developed nations government

d)  none of the above

  Answer:  b)

 

98) ftp application is a) internet browsers

b)  used to send email

c)  used to download and upload files

d)  none of the above

  Answer:  c)

 

99) http stands for

a)  hyper text transfer process

b)  hyper text transfer protocol

c)  higher text transfer process

d)  none of the above

  Answer:  b)

 

This set of HTML Questions and     ANSWERs for Experienced people focuses on “Embracing the Reality of Web Markup”.

1. Which of the following element represents a thematic break rather than a horizontal rule, though that is the likely representation?

a) <dd>
b) <dt>
c) <hr>
d) <menu>

 

    ANSWER: c
Explanation: The <dd> & <dt> tag defines names/terms. <menu> tag in HTML is for list of commands. The hr tag defines a thematic break in an HTML page (e.g. a shift of topic). Thematic is break between paragraph-level elements.

 
 
2. Which of the following element was redefined to represent user interface menus, including context menus?

a) <ul>
b) <dt>
c) <hr>
d) <menu>

 

    ANSWER: d
Explanation: <dt> tag defines terms/names. The <hr> tag is used for thematic break between paragraph-level. <ul> tag is used to represent list of items/objects. <menu> tag in HTML is for list of commands. The menu tag is used for context menus, toolbars and for listing form controls and commands.

 
 

3. Which of the following HTML 4 attributes is not removed in HTML5?
a) text
b) rules
c) link
d) mark
 

    ANSWER: d
Explanation: Mark attribute is still used in HTML5 but rest of attributes i.e. text, rules, link are deprecated in HTML5.

4. Which of the following element is not removed by HTML5?
a) vlink
b) span
c) marginwidth
d) compact
 

    ANSWER: b
Explanation: A <span> element (used to color a part of a text) is still used in HTML5. Elements like vlink, marginwidth and compact has been removed in HTML5, which were part of HTML markup. In earlier they have been deprecated.

5. Which of the following is not a newly added element in HTML5?
a) article
b) audio
c) nav
d) frameset
 

    ANSWER: d
Explanation: An article tag is semantic element newly introduced in HTML5 along with nav and audio. Frameset was already introduced in HTML markup used to divide window/web page in frames.

6. ____________ defines the accelerator key to be used for keyboard access to an element.
a) data-X
b) accesskey
c) rp
d) command
 

    ANSWER: b
Explanation: Command tag specifies a command provided with action. When one want to provide parentheses around ruby text, rp tag is used. The accesskey attribute specifies a shortcut key to activate/focus an element. Data-X stores data.

7. Which of the following element represents the header of a section or the document and contains a label or other heading information for the related content?
a) data-X
b) header
c) mark
d) meter
 

    ANSWER: b
Explanat
ion: Data-X element consist of data. The mark element indicates highlighted/marked text. The header element represents a container for introductory content or a set of navigational links.

8. Which of the following element sets is an item of metadata?
a) itemscope
b) itemref
c) itemtype
d) none of the mentioned
 

 ANSWER: a
Explanation: Itemscope is a boolean global attribute that defines the scope of associated metadata. The itemscope attribute creates a new item, a group of name-value pairs. The URL of vocabulary is specified by itemtype global attribute. List of element ID’s is provided by itemref.

9. _____________ defines a group of content that should be used as a figure and may be labeled by a legend element.
a) figure
b) details
c) output
d) aside
 

 ANSWER: a
Explanation: The aside tag contains data related to its surrounding. <output> is result of anything. The figure tag specifies self-contained content, like illustrations, diagrams, photos, code listings, etc. Additional details that someone wants to know or hide as per demand are provided by details element.

This set of HTML Multiple Choice Questions &  ANSWERs (MCQs) focuses on “HTTP Overview”.

1. In OSI model USB lies under the layer ___________
a) data Link layer
b) physical layer
c) network layer
d) transport layer
 

 ANSWER: b
Explanation: There are seven layers namely Physical layer, data Link layer, network Layer, transport layer, session layer, presentation layer, and application layer. The physical layer is the first layer, it is used for transmitting electrical signal across the network. Examples are USB, Bluetooth or Ethernet.

2. IP is used in the level ___________
a) presentation layer
b) network layer
c) application layer
d) data Link layer
 

 ANSWER: b
Explanation: Network layer is the third layer, it deals with routing across complicated networks, Internet Protocol (IP) is very commonly used at this level. It is capable of traveling across multiple networks. It can also travel through intermediate devices like routers.

3. Which one is not the feature of HTTP protocol?
a) media independent
b) connectionless
c) responsive
d) stateless
 

 ANSWER: c
Explanation: There are basically three main features of HTTP protocol i.e HTTP is media independent, HTTP is connectionless and it is stateless also. Browser initiates HTTP request, and then client disconnects from the server.

Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

advertisement

4. Which of the following are not the valid character set in HTTP?
a) ISO-8859-1
b) US-ASCII
c) ISO-8859-7
d) ISO-8859-12
 

 ANSWER: d
Explanation: A character set must know to web browsers to display HTML pages correctly. For the preference of clients we use character sets for specifying characters. The default value is US-ASCII. The valid character sets are ISO-8859-1, US-ASCII or ISO-8859-7.

5. Which one is the correct syntax for specifying media type?
a) type ”/” subtype *( “;” parameter)
b) subtype ”/” type *(“;” parameter)
c) parameter “/” type *(“;” subtype)
d) (“;” subtype) “/” type *(parameter)
 

 ANSWER: a
Explanation: Internet media types are used in Content-Type and Accept header fields. Media types are registered with IANA (Internet Assigned Number Authority). The syntax for a media type is m-type = type “/” subtype *(“;” parameter). The name of subtype, type and parameter attribute all are case sensitive.

6. Which header field defines meta information?
a) Request-header
b) Response-header
c) General-header
d) Entity-header
 

 ANSWER: d
Explanation: A HTTP header which does not relate to the content of message is a response-header. A request-header is used to provide information about request or response. Entity-header field defines meta information about the body. If the body is not present resource is identified by request. The general syntax for all the header fields is msg-header=field-name “:” [field-value]. General-header field is for both response and request.

7. Which of the following is not the request method?
a) Head
b) Get
c) Remove
d) Put
 

 ANSWER: c
Explanation: There are various request methods on the resource identified by Request-URI. Get, post, head, delete, trace, connect, put and options are some of the methods. For retrieving information from the server we use Get method.

8. Which symbol is used when HTTP request does not apply to the particular source?
a) ‘&’
b) ‘*’
c) ‘#’
d) ‘@’
 

 ANSWER: b
Explanation: When HTTP request does not apply to particular resource ‘*’ is used. It is applied to the server itself. This is only allowed when the used method is not necessarily applied to the resource. E.g. OPTIONS * HTTP/1.1

9. Which of the following is not a request-header field?
a) Expect
b) Host
c) Delete
d) If-None-Match
 

 ANSWER: c
Explanation: For passing additional information about request we use request-header fields. These are also requested modifiers. There are several request-header fields like Accept-Encoding, Expect, Accept-Charset, Accept-Language, Form, Host, Authorization, If-Match, Proxy-Authorization, Range, User-Agent, TE, Referer, If-Unmodified-Since, If-Range.

10. What does ‘3xx’ code denote?
a) Redirection
b) Server Error
c) Success
d) Informational
 

 ANSWER: a
Explanation: ‘3xx’ means Redirection, any further action have to be taken for completing the request. ‘1xx’ is for Informational, it signifies that the request was received and the process is going on. ‘2xx’ denotes Success, which signifies the action was successfully understood, received and accepted.

11. Which of the following is not a response-header field?
a) Location
b) Server
c) ETag
d) Referer
 

 ANSWER: d
Explanation: For passing additional information about the response that can’t be placed in Status-Line, we use response-header fields. Some of the fields are Age, Accept-Ranges, Location, ETag, WWW-Authenticate, Vary, Server, Retry-After.

This set of HTML Multiple Choice Questions &  ANSWERs (MCQs) focuses on “HTML5 Introduction – 2”.

1. Which of the following defines the title of a work?
a) <cite>
b) <hr>
c) <a>
d) <address>
 

 ANSWER: a
Explanation: The <cite> tag defines the title of a work. The <hr> tag is used to give a horizontal break. When we want to link one page to another, then <a> tag is used. The <address> tag is used to define the contact information about owner of document.

2. Which element is design to wrap a single piece of information?
a) <time>
b) <nav>
c) <footer>
d) <header>
 

 ANSWER: a
Explanation: <time> tag wrap single piece of information i.e. it defines date, month and year. The <nav> element identifies a set of navigation links, <footer> is introduced in HTML5 which is present at the end of page and do conatins footer information i.e copyright information.

3. What an article element should not contain?
a) Main element
b) Text or embedded content
c) Image
d) Video & Audio
 

 ANSWER: a
Explanation: The <main> element must NOT be a descendant of an <article>, <aside>, <footer>, <header>, or <nav> element. The article element may contain audio/video clips, images and also text or embedded content.

4. Which of the following statement is true?
a) Canvas Contains built-in animations
b) SVG needs scripts to draw elements
c) In canvas, drawing is done with pixels
d) SVG don’t support to event handlers
 

 ANSWER: c
Explanation: In SVG drawing is done with vectors and it support event handlers. Canvas doesn’t contains any built-in-animations and drawing is done with pixels.

5. What does <main> include?
a) Header
b) Sidebar
c) Article
d) Footer
 

 ANSWER: c
Explanation: <header> element contains navigation links. Slidebar is for hoverable/sliding text. <footer> is introduced in HTML5 which is present at the end of page and do contains footer information i.e copyright information. Main content is the entire article which wraps the <article> element. It holds the page’s main content. It can be useful for screen readers. E.g. <main> <article>…………</article> </main>

6. Which of the following is not sectioning elements?
a) <article>
b) <aside>
c) <nav>
d) <header>
 

 ANSWER: d
Explanation: The <section> element represents a section of a document or application. Tags like <article>, <aside>, <nav>, <section> are the ones that create a nested, new outline inside the page.

7. How many times can HTML5 events be fired?
a) Multiple
b) One
c) Only two
d) Zero
 

 ANSWER: a
Explanation: We can call events like drag, ondragover, etc multiple times in HTML5.

8. Which element is used to get highlighted text in HTML5?
a) <highlight>
b) <b>
c) <mark>
d) <u>
 

 ANSWER: c
Explanation: The <mark> element is used to highlight a section of text. It is useful for quoting a text or if one wants to bring attention to the text. The <b> tag is used to make text/paragraph bold. <u> tag is used to underline the text you wanted.

<p>This is the example.<mark> I like this dog. </mark></p>

Output: This is the example. I like this dog.

This set of HTML Multiple Choice Questions &  ANSWERs (MCQs) focuses on “HTML5 Introduction – 1”.

1. Which feature was already introduced before HTML5?
a) Canvas/SVG
b) Video
c) Geolocation
d) Frames
 

 ANSWER: d
Explanation: Until recently you could not draw on the web and graphics were not very interactive but canvas/SVG which were introduced by HTML5 solved all the problems. Video, Geolocation were also new features introduced by HTML5. Frames were already there before the launch of HTML5.

2. Which tag is used with JavaScript?
a) <canvas>
b) <table>
c) <article>
d) <footer>
 

 ANSWER: a
Explanation: <canvas> tag is basically used for graphics via scripting i.e. usually with Java Script (scripting language, basically used to create animations). Other tags like <table>, <article>, <footer> can be used simply with HTML.

3. What application can one create even before the introduction of HTML5?
a) Web applications
b) Mobile applications
c) Forms
d) Browser based games
 

 ANSWER: c
Explanation: With the help of HTML5 and JavaScript it became possible to create excellent mobile applications, browser based games, web applications and many more other applications. Forms were already introduced before HTML5.

4. What is the correct syntax of doctype in HTML5?
a) <!doctype html>
b) <doctype html!>
c) <doctype html>
d) </doctype html>
 

 ANSWER: a
Explanation: The correct syntax of HTML5 doctype is <!doctype html>, doctype is the very first thing to write in HTML5. <!doctype html> or <!DOCTYPE HTML> both are same because ‘doctype’ keyword is not case sensitive.

5. What if one does not use the doctype in the starting of HTML document?
a) Browser finds the document in quirky mode
b) Browser finds a document in standard mode
c) Browser stops working
d) Browser crashes after showing the page
 

 ANSWER: a
Explanation: If the browser finds <!doctype html> in the starting of an HTML document it sets the document in standard mode but if one does not use a doctype, the browser goes to quirky mode. In this mode, certain content will not be displayed as per one wrote that. So it is always recommended to write a doctype at the very start of the HTML document.

Check this: MCA MCQs | Computer Science MCQs

6. Which of the following is not semantic element for text in HTML5?
a) <mark>
b) <time>
c) <wbr>
d) <article>
 

 ANSWER: d
Explanation: Semantic elements used for text are <mark>, <time>, <wbr> whereas <article>, <aside>, <figure>, <footer>, <header> etc. are the semantic elements for structuring a page in HTML5.

7. Which tag supports Non-English language?
a) <input>
b) <audio>
c) <embed>
d) <bdo>
 

 ANSWER: d
Explanation: <bdo>, <rp>, <rt>, <ruby> are some tags which support Non-English language. <input> is for web forms and <audio>, <embed> are the tags for audio and plug-ins.

8. Which element was not removed by HTML5?
a) <strike>
b) <center>
c) <small>
d) <big>
 

 ANSWER: c
Explanation: Although HTML5 adds new elements, it also kicked out some old elements like <big>, <center>, <font>, <tt>, <strike>. HTML5 adapted many elements also <small> is one among these. The <small> element represents “small print”.

This set of HTML Interview Questions and  ANSWERs for freshers focuses on “Major Themes of (X)HTML”.

1. Which tag is used if you want to highlight something that is important to the reader?

a) <b>
b) <strong>
c) <em>
d) <i>

 

 ANSWER: a
Explanation: : The <b> tag is used to make the text bold. The <strong> tag is used to highlight the importance of text. The <em> tag is emphasis tag and is displayed in italic by browser. <i> tag is used to write text in italic font.

 
 
2. Which tag is not used if you want to indicate the importance of the phrase?

a) <i>
b) <h1>
c) <em>
d) <strong>

 

 ANSWER: a
Explanation: Tags like <h1> (including all headings from h1 to h6), <em> and <strong> can be used to indicate the importance of the phrase. The <i> is none other than a type of font displaced in italic bond by the browsers.

 
 
3. Which of the following statement is not true?

a) XHTML DOCTYPE is mandatory
b) The xmlns attribute in <html> is mandatory
c) <html>, <head>, <title>, and <body> are mandatory
d) None of the mentioned

 

 ANSWER: d
Explanation: XHTML is a markup language. There are certain terms and conditions (rules and regulations) for it. There are as: 1) In XHTML, the DOCTYPE is compulsory, 2) Xmlns attribute in <html> in manndatory, 3) The basic building blocks of markup i.e. <html>, <head>, <title>, and <body> are must in one. 4) Last but not least, XHTML is case sensitive where as HTML is case in-sensitive.

 
 

4. According to the rules of XML and XHTML, all elements must be closed either with an end tag or by self-closing with space, slash, and a right-pointing angle bracket.
a) True
b) False
 

 ANSWER: a
Explanation: XML and XHTML are markup languages used for creating web pages. XHTML is case sensitive, and thus they must be closed either an end tag or by self-closing with a space, slash, and a right pointing angle bracket. Ex) <p></p> is paragraph tag closed with ending tag. <br/> is break tag whose closing is done either by a slash or right pointing angle bracket.

Note: Join free Sanfoundry classes at Telegram or Youtube

advertisement

Check this: Information Science MCQs | Computer Science Books

5. __________ is the XML equivalent to strict HTML 4.01.
a) XHTML 1.0 Strict
b) XHTML 1.0 Frameset
c) XHTML 1.0 Transitional
d) XHTML 1.1 Strict
 

 ANSWER: a
Explanation: XML is a markup language while XHTML is a extensible hypertext markup language. XHTML 1.0 Strict is the XML equivalent to strict HTML 4.01, and includes elements and attributes that have not been marked deprecated in the HTML 4.01 specification.

6. Which of the following statement is true?
a) Attribute names must be in uppercase
b) Attribute values must be quoted
c) Attribute minimization is mandatory
d) Attribute values should not be quoted
 

 ANSWER: b
Explanation: HTML is hypertext markup language. There are many rules and regulations in HTML for attribute specification. HTML is case in-sensitive and thus we can write attribute name in either uppercase or lowercase, none of it is going to make difference. There is nothing like that atrribute name should be minimized, we can write attribute name as long as and as short as we want. The only rule for attribute name is that it should be in quoted form.

7. The root element of an XHTML document must be html, and must contain an __________ attribute to associate it with the XHTML namespace.
a) source
b) src
c) xmlns
d) link
 

 ANSWER: c
Explanation: The xmlns attribute specifies the xml namespace for a document. It is manadatory in XHTML while in HTML5 it is optional. The root element of an XHTML document must be html, and must contain an xmlns atrribute to associate it with the XHTML namespace.

8. Which of the following encoding an XML parser assumes?
a) UTF-8
b) UTF-16
c) UTF-32
d) Both UTF-8 and UTF-32
 

 ANSWER: d
Explanation: Basically parsers are used in softwares and they convert user data into machine data in short in memory form to use. In XML, parser is used to read XML. If an XML document lacks encoding specification, an XML parser assumes that the encoding is UTF-8 or UTF-16.

9. __________ is an extended version of the XHTML markup language for supporting RDF through a collection of attributes and processing rules in the form of well-formed XML documents.
a) XHTML + RDFa
b) XHTML+XHTML5
c) XHTML1.0+XHTML2.0
d) XHTML + RDF
 

 ANSWER: a
Explanation: XHTML+RDFa (Extensible Hypertext Markup Language + Resource Description Framework in attributes) is an extended version of the XHTML markup language for supporting RDF through a collection of attributes and processing rules in the form of well-formed XML documents.

10. XML is a markup language where documents must be marked up correctly.
a) True
b) False
 

 ANSWER: a
Explanation: XML is markup language while XHTML is extensible hypertext version of markup language. XHTML is HTML defined as an XML application. XHTML is stricter than HTML

This set of HTML Multiple Choice Questions &  ANSWERs (MCQs) focuses on “Favicons and Icons”.

1. Which of the following applications/software can be used to create a favicon?
a) Unity
b) Adobe Photoshop
c) Dreamweaver
d) VLC
 

 ANSWER: b
Explanation: Favicon means favorite icon. To create a favicon, we can use any graphics editor program in the market such as Adobe Photoshop or Fireworks.

2. By default, iOS adds ____________ effects to icons.
a) reflective shine
b) square corners and reflective shine
c) rounded corners and reflective shine
d) apple trademark
 

 ANSWER: c
Explanation: Most of these icons are beautifully designed, and after Apple introduced a new meta tag named apple-touch-icon you can now display website icons on the iOS home screen when you bookmark a site. By default, IOS adds rounded corners with reflective shine.

3. Favicon stands for ______
a) Fave icon
b) Favorite icon
c) Both Fave icon and Favorite icon
d) Fav icon
 

 ANSWER: c
Explanation: A favicon which is also known as a shortcut icon, Web site icon, tab icon, Fave icon and also a Favorite icon. It is associated with a particular website or a web page. Favicon is a graphical representation for a site.

Subscribe Now: HTML Newsletter | Important Subjects Newsletters

advertisement

4. Which attribute is used for favicon?
a) icon
b) title
c) rel
d) head
 

 ANSWER: c
Explanation: Favicon is associated with a particular website or a web page. Favicon is a graphical representation for a site. The “rel” attribute is used for favicon generation. The syntax is

 <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />

.

Check this: Computer Science Books | HTML Books

5. Which image file format is not supported in Firefox?
a) MNG
b) PNG
c) SVG
d) APNG
 

 ANSWER: a
Explanation: There are different file formats such as MNG stands for “Multipe-image Network Graphics”, PNG stands for “Portable Network Graphics”, SVG stands for “Scalable Vector Graphics”, APNG stands for “Animated Portable Network Graphics” etc. Many browsers have theri own criteria to support those types of files. Among those, Firefox browser suuport PNG, APNG files, it also supports SVG partially. The MNG file format is not supported in Firefox.

6. The favicon was standardized by the _______
a) IANA
b) W3C
c) WIPO
d) EPO
 

 ANSWER: b
Explanation: In december 1999, the favicon was standardized by W3C i.e World Wide Web Consortium. IANA is Internet Assigned Numbers Authority. WIPO stands for World Intellectual Property Organization and EPO for European Patent Office.

7. In 2003, the .ico format was registered with the ____________
a) IANA
b) W3C
c) WIPO
d) EPO
 

 ANSWER: a
Explanation: In 2003, the .ico format was registered with the Internet Assigned Numbers Authority (IANA) under the MIME type image/vnd.microsoft.icon. W3C is World Wide Consortium which standardized facicon for HTML 4.01 recommendation. WIPO stands for World Intellectual Property Organization and EPO for European Patent Office.

8. The recommended basic size for a favicon is ___________ pixels.
a) 16×16
b) 26×26
c) 48×48
d) both 16×16 and 48×48
 

 ANSWER: d
Explanation: Facicon is a graphical representation of a site which stands for favorite icon. The basic size for a favicon varies from 16×16 pixels, 32×32 pixels, 48×48 pixels etc in ICO image file format.

9. In March 1999, Microsoft released Internet Explorer 5, which supported favicons for the first time.
a) True
b) False
 

 ANSWER: a
Explanation: Favicons are graphical interface given to a site. Firstly, in 1999, favicon was supported by Internet Explorer 5 which was owned by Microsoft. Later on, in 1999 favicon was standardized by the W3C.

10. A favicon is an image used by the browser to identify a website or web application.
a) True
b) False
 

 ANSWER: a
Explanation: Favicons are a graphical interface to a site. Browsers that provide favicon support typically display a page’s favicon in the browser’s address bar (sometimes in the history as well) and next to the page’s name in a list of bookmarks

This set of HTML Problems focuses on “Microdata”.

1. __________ is an HTML specification used to add more information to HTML tags.
a) Macrodata
b) Microdata
c) Minidata
d) Modifydata
 

 ANSWER: b
Explanation: The Microdata spec provides a standardized syntax for additional semantic markup to your web pages to enhance the machine readability of your web pages. The planning for distribution center operation is offered by minidata. Macrodata and Modifydata are not any terms related to HTML5.

2. The microdata model consists of groups of name-value pairs known as ________
a) Item
b) Property
c) Value
d) URL
 

 ANSWER: a
Explanation: The microdata model consists of groups of name-value pairs known as items. Each group is known as an item. Each item can have item types, a global identifier (if the vocabulary specified by the item types support global identifiers for items), and a list of name-value pairs. A Uniform Resource Locator, called URL, termed as web address and is used for a reference to a web resource for finding its location. Property is information about a particular id or else attribute.

3. Every HTML element may have an ____________ attribute specified.
a) itemtype
b) relevant types
c) itemscope
d) itemref
 

 ANSWER: c
Explanation: “itemtype” attribute specifies URL that is used to provide item’s data in data structure. An element with the itemscope attribute specified creates a new item, a group of name-value pairs.

Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

advertisement

4. Which of the following is true if the property value of a name-value pair added by an element with an itemprop attribute is a meta element?
a) The value is the item created by the element
b) The value is the value of the element’s value attribute, if it has one, or the empty string otherwise
c) On getting, if the element has a datetime content attribute, the IDL attribute must return that content attribute’s value
d) The value is the element’s textContent
 

 ANSWER: b
Explanation: When the property value of a name-value pair added by an element with an itemprop attribute which is a meta element then the value is the value of the element’s value attribute, if it has one, or the empty string otherwise. The “itemprop” attribute is a global attribute which adds properties to item.

5. Which of the following is true if the property value of a name-value pair added by an element with an itemprop attribute is a time element?
a) The value is the element’s datetime value
b) The value is the value of the element’s content attribute, if any, or the empty string if there is no such attribute
c) The value is the value of the element’s value attribute, if it has one, or the empty string otherwise
d) The value is the element’s textContent
 

 ANSWER: a
Explanation: The “itemprop” attribute is a global attribute which adds properties to item. When the property value of a name-value pair added by an element with an itemprop attribute which is a time element then the value is the element’s datetime value.

Check this: Information Science MCQs | MCA MCQs

6. The ___________ of an item is the value of its element’s itemid attribute.
a) token
b) typed item
c) global identifier
d) scope
 

 ANSWER: c
Explanation: The global identifier of an item is the value of its element’s itemid attribute, if it has one, resolved relative to the element on which the attribute is specified. If the itemid attribute is missing or if resolving it fails, it is said to have no global identifier. The “typed item” creates new item.

7. If the element has an itemscope attribute, it returns an __________ object with all the element’s properties.
a) itemscope
b) dom object
c) collection.namedItem
d) itemtype
 

 ANSWER: b
Explanation: When an HTML document is loaded into a web browser, it becomes a document object. In web browser, document model represents document as a logical tree. The “itemscope” attribute which is of boolean type is used to state the scope of metadata.

8. Which of the following is true if the property value of a name-value pair added by an element with an itemprop attribute is a data element?
a) The value is the value of the element’s value attribute if it has one, or the empty string otherwise
b) The value is the item created by the element
c) The value is the element’s datetime value
d) The value is item’s scope
 

 ANSWER: a
Explanation: The “itemprop” attribute is a global attribute which adds properties to item. When the property value of a name-value pair added by an element with an itemprop attribute which is a data element then the value is the value of the element’s value attribute if it has one, or the empty string otherwise.

9. Which method takes a string that contains an unordered set of unique space-separated tokens that are case-sensitive, representing types?
a) document.getItems
b) element.itemProp
c) collection.namedItem
d) object.itemref
 

 ANSWER: a
Explanation: When called, the method must return a live NodeList object containing all the elements in the document, in tree order, that are each top-level microdata items whose types include all the types specified in the method’s argument, having obtained the types by splitting the string on spaces.

10. The goal of microdata is to create a unified way to define the data in a way any web crawler or reader implementation can read it.
a) True
b) False
 

 ANSWER: a
Explanation: Microdata allows the user to create “custom” elements (sort of), to give a specific meaning to them. Microdata is an HTML specification is used to add more information to HTML. The Microdata spec provides a standardized syntax for additional semantic markup to your web pages to enhance the machine readability of your web pages

This set of HTML Multiple Choice Questions &  ANSWERs (MCQs) focuses on “Meta Data”.

1. Metadata store information about the web page that is not necessarily visible to end users.
a) True
b) False
 

 ANSWER: a
Explanation: Metadata is “data [information] that provides information about other data. Meta tags store information about the web page—known as metadata that is not necessarily visible to end users (unless you reveal the page source code).

2. In which part of the HTML metadata is contained?
a) body tag
b) html tag
c) head tag
d) title tag
 

 ANSWER: c
Explanation: Metadata is information about data. The meta tag provides metadata/meta information about the HTML document. Metadata will not be displayed on the page. Metadata is present in head. The body tag defines document’s body. A title tag is an HTML element which specifies the title of a web page.

3. Which of the following is not a function of robots meta tag?
a) noindex
b) nofollow
c) norepeat
d) noarchive
 

 ANSWER: c
Explanation: Valid values for the “CONTENT” attribute are: “INDEX”, “NOINDEX”, “FOLLOW”, “NOFOLLOW”, “NOARCHIVE”. “NOREPEAT” is not any of robots meta tag.

Note: Join free Sanfoundry classes at Telegram or Youtube

advertisement

4. What is the role of charset attribute? It specifies
a) a scheme to be used to interpret the value of the content attribute
b) a name for the metadata
c) the character encoding for the HTML document
d) the character decoding for the HTML document
 

 ANSWER: c
Explanation: A charset attribute is new in HTML5. The charset is used to provide the character support. The charset attribute specifies the character encoding which is in an external script file.

5. __________ prevents the page from being indexed altogether.
a) noarchive
b) nofollow
c) noindex
d) novalue
 

 ANSWER: c
Explanation: NOFOLLOW attribute instruct search engines that a hyperlink should not influence the link target’s ranking in search engine. NOINDEX prevents page from being indexed. To prevent a page from being cracked, NOARCHIEVE tag can be used. The noindex value of an HTML robots meta tag requests that automated Internet bots avoid indexing a web page.

Check this: Information Science MCQs | HTML Books

6. Which of the following is not supported in HTML5?
a) scheme
b) content
c) http-equiv
d) name
 

 ANSWER: a
Explanation: The scheme attribute is supported in HTML but not in HTML5. Rest of attributes like “content”, “http-equiv” and “name” are supported in both HTML as well as HTML5. The scheme element is deprecated from HTML5.

7. ___________ prevents search engines from following links inside the page.
a) noarchive
b) nofollow
c) noindex
d) novalue
 

 ANSWER: b
Explanation: NOFOLLOW attribute instruct search engines that a hyperlink should not influence the link target’s ranking in search engine. NOINDEX prevents page from being indexed. To prevent a page from being cracked, NOARCHIEVE tag can be used.

8. Different meta tags are defined by changing the __________ attribute to a valid value.
a) scheme
b) content
c) http-equiv
d) name
 

 ANSWER: d
Explanation: The information/value of the content is provided by http-equiv through http header. Some values associated with http-equiv and name attribute are given by the content attribute. A scheme that to be used to interpret the value of the content is specified by the scheme tag. The name attribute specifies the name of input element and thus provides information/value of it.

9. __________ prevents search engines from showing a cached link for the page.
a) nobot
b) nofollow
c) noarchive
d) nosearch
 

 ANSWER: c
Explanation: The “noarchive” meta tag is used to tell browsers not to store cached link for the page. A “nofollow” attribute instruct search engines that a hyperlink should not influence the link target’s ranking in search engine. The “noindex” prevents page from being indexed.

10. The value of the ___________ attribute refers to the time interval in seconds before the refresh is performed.
a) scheme
b) content
c) http-equiv
d) name
 

 ANSWER: b
Explanation: The information/value of the content is provided by http-equiv through http header. Some values associated with http-equiv and name attribute are given by the content attribute. A scheme that to be used to interpret the value of the content is specified by the scheme tag. The name attribute specifies the name of input element and thus provides information/value of it

This set of HTML Questions and  ANSWERs for Aptitude test focuses on “Compatibility Libraries”.

1. Which one of the following is an open source JavaScript library that enables styling for HTML5 elements in versions of Internet Explorer before IE 9 ?
a) HTML5
b) HTML5 Shiv
c) HTML5 Shim
d) HTML5 Sham
 

 ANSWER: b
Explanation: HTML5 Shiv is a JavaScript workaround, invented by Sjoerd Visscher, to enable styling of HTML5 elements in versions of Internet Explorer prior to version 9, which do not allow unknown elements to be styled without JavaScript. HTML 5 defines the properties and behaviors of web page content. It is a web language.

2. Which one of the following is not a step to install a library you need to perform the compatibility in browsers?
a) Download the library from the github location
b) Uncompress the file
c) Insert the following code inside the head tag
d) None of the mentioned
 

 ANSWER: d
Explanation: All steps are required.

3. Which property is used to detect the browser’s user agent and code based on the pertinent cases?
a) navigator.userAgent
b) navigator.user
c) navigator
d) return
 

 ANSWER: a
Explanation: An old strategy was to look at the property navigator.userAgent to detect the browser’s user agent and code based on the pertinent cases.

Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

advertisement

4. Some users have requested tests for IE’s float double margin bug, and support for position:fixed. Which API is suitable for them?
a) mq() media Plugin API
b) addTest() Plugin API
c) testAllProps() Plugin API
d) none of the mentioned
 

 ANSWER: b
Explanation: The navigator object contains information about the browser. UseAgent property gives user-agent header sent by browser to the server. A navigator.userAgent is used to detect the browser’s user agent and code based on the pertinent cases.

5. ___________ is an open source JavaScript library that allows support for different levels of experiences based on the capabilities of each browser.
a) Navigator
b) Modernizr
c) Geolocation
d) Google API
 

 ANSWER: b
Explanation: Modernizr is an open source JavaScript library that allows support for different levels of experiences based on the capabilities of each browser using a simple feature detection model. Geolocation is the identification of geographic location of an object. The navigator object contains information about the browser. Google API, i.e set of application programming interface which allow communication with Google Services & integration to other services.

Check this: HTML Books | Information Science MCQs

6. ____________ allows you to add custom styles to the document and test an element afterwards.
a) hasEvent()
b) testAllProps()
c) testProp()
d) modernizr.testStyles()
 

 ANSWER: d
Explanation: Modernizr.testStyles() allows you to add custom styles to the document and test an element afterwards. An element with the id of “modernizr” is injected into the page.

7. Modernizr does actually add missing functionalities to browsers save for the HTML5 tags styling support.
a) True
b) False
 

 ANSWER: b
Explanation: Modernizr is a JavaScript library which is designed to detect HTML5 and CSS3 features in various browsers, which lets JavaScript avoid using unimplemented features or use a workaround such as a shim to emulate them. Modernizr, in spite of its name, does not actually add missing functionalities to browsers save for the HTML5 tags styling support.

8. ___________ is used to test whether geolocation is supported in old browsers.
a) Modernizr
b) Modernizr.geolocation
c) Navigator.userAgent
d) Modernizr.js
 

 ANSWER: c
Explanation: Since Modernizr is a JavaScript object with methods, we can use Modernizr.geolocation to test whether geolocation is supported. Geolocation API Detects support for the Geolocation API for users to provide their location to web applications.

9. ____________ is a resource loader (CSS and JavaScript) that was made to specifically to work side-by-side with Modernizr.
a) HasEvent()
b) Navigator.userAgent
c) Modernizr.load
d) Modernizer.geolocation
 

 ANSWER: c
Explanation: Modernizr.load is optional in your build, but if you are loading polyfills, there’s a good chance it can save you some bandwidth and boost performance a bit. Modernizr.load objects print out on your page in the exact spot they should be, coming after the Modernizr.

10. In case we want to implement a JavaScript fallback, we would need to create a conditional statement using Modernizr.
a) True
b) False
 

 ANSWER: a
Explanation: Modernizr is a JavaScript library that detects which HTML5 and CSS3 features your visitor’s browser supports. Modernizer determines whether browser has implemented a given feature. Developers take advantage of new features that browsers support, still create fallbacks for browsers that lack support.

This set of HTML Multiple Choice Questions &  ANSWERs (MCQs) focuses on “Choosing Web Servers”.

1. Which of the following is not a web server?
a) Apache tomcat
b) BlueGriffon
c) Jetty
d) Tornado
 

 ANSWER: b
Explanation: Tornado is a web server written in python language. Eclipse is a web server (Java HTTP server). Apache Tomcat, is a web server which is also known as Tomcat server. BlueGriffon is an IDE.

2. Tomcat is an open source web server that provides a servlet container allowing you to run Java code.
a) True
b) False
 

 ANSWER: a
Explanation: Apache Tomcat, a web server developed by the Apache Software Foundation and which is also known as Tomcat Server. Apache Tomcat provides several Java EE specifications such as Java Servlet, JavaServer Pages (JSP), Java EL, and WebSocket. It also provides “Java” HTTP web server which is used to run java code.

3. Which of the following interface is not supported by LightTPD?
a) FastCGI
b) SCGI
c) GCGI
d) CGI
 

 ANSWER: c
Explanation: Interfaces like FastCGI, SCGI and CGI are supported by LightTPD to external programs to be used with the server.

Subscribe Now: HTML Newsletter | Important Subjects Newsletters

advertisement

4. Which of the following is not a prepackaged server stack?
a) WAMP
b) XAAMP
c) MAMP
d) NAMP
 

 ANSWER: b
Explanation: Collection of software that forms operational infrastructure is a server stack. WampServer refers to a software stack.XAMPP is prepackaged stack developed by Apache Friends. To run dynamic web sites on computers, a solution stack known as MAMP is used. There is nothing like NAMP.

5. Which of the following is not a channel of mozilla?
a) Firefox
b) Firefox alpha
c) Firefox Beta
d) Firefox Aurora
 

 ANSWER: b
Explanation: Mozilla Foundation & Corporation developed a open source web browser named Mozilla Firefox. Later on, new version of mozilla arrived in market, which are named as Firefox Beta & Firefox Aurora respectively. Firefox alpha is not a channel of mozilla.

Check this: Computer Science MCQs | HTML Books

6. Google Chrome has its own task manager, which allows you to view and manage your memory and CPU usage.
a) True
b) False
 

 ANSWER: a
Explanation: A task manager provides many functions to us including, managing applications, handling running pc, providing informative statistics, enabling computer on or off, etc. Google Chrome also has a task manager, which allows you to view and manage your memory and CPU usage.

7. Which of the following are automatically loaded and operates as a part of browser?
a) Add-ons
b) Plug-ins
c) Utilities
d) Widgets
 

 ANSWER: b
Explanation: Functionality of firefox can be extended as well as modified by using Add-ons. Plugin programs operates as a part of browser. A utility provides an addition to the capabilities provided by the operating system. A widget is a simple application extension that is already installed on the device.

8. Which of the following allows user to view a webpage?
a) Operating System
b) Website
c) Interpreter
d) Internet Browser
 

 ANSWER: d
Explanation: An interpreter is a computer program that directly executes, instructions written in a programming or scripting language. A website is a collection of related web pages, which contains multimedia content. An operating system is a balancing bridge between hardware and software. A web/internet browser allows user to view a webpage

9. What is DOM?
a) Hierarchy of objects in ASP.NET
b) Application programming interface
c) Convention for representing and interacting with objects in html documents
d) Language dependent application programming
 

 ANSWER: c
Explanation: The Document Object Model is a cross-platform and language-independent application programming interface that treats an HTML, XHTML, or XML document as a tree structure. A document can be viewed as a logical tree with help of DOM Model.

10.

<meta http-equiv="X-UA-Compatible" content="IE=8"> is used to _________

a) make web page compatible only with IE8
b) mimic behaviour of IE8
c) make web page incompatible only with IE8
d) make web page compatible with IE7 and IE8
 

 ANSWER: b
Explanation: X-UA-Compatible is a document mode meta tag that allows web authors to choose what version of Internet Explorer the page should be rendered as. The <meta http-equiv=”X-UA-Compatible” content=”IE=8
> display as IE 8 with or without a DOCTYPE. It provides fallback for IE8

This set of HTML Questions and  ANSWERs for Freshers focuses on “Choosing Editors and IDEs”.

1. Which of the following is not an IDE?
a) BlueGriffon 1.5.2
b) Aptana studio 3
c) TextEdit(Mac)
d) Dreamweaver
 

 ANSWER: c
Explanation: Dreamweaver is an Integrated Development Environment (IDE) tool. Aptana Studio 3 is an open-source integrated development environment (IDE) used for web applications. BlueGriffon 1.5.2 is an integrated development environment powered by Gecko. TextEdit is a simple, open-source word processor.

2. IDE stands for _________
a) Internet Development Environment
b) Integrated Development Environment
c) Intelligent Development Environment
d) Integrated Developed Environment
 

 ANSWER: b
Explanation: An integrated development environment (IDE) or interactive development environment is a software application that provides comprehensive facilities to computer programmers for software development. An IDE normally consists of a source code editor, build automation tools and a debugger.

3. We can define ________ number of sites with one copy of dreamweaver installed on our computer.
a) 990
b) 10
c) only 1
d) unlimited
 

 ANSWER: d
Explanation: Dreamweaver is an IDE to build custom web apps and applications. There is no definite liit to it.

Note: Join free Sanfoundry classes at Telegram or Youtube

advertisement

4. What should we add to a template in Dreamweaver in order to control where page content goes?
a) Editable Regions
b) HTML controllers
c) Frames
d) Content Controllers
 

 ANSWER: a
Explanation: A template is a special type of document that you use to design a “fixed” page layout; you can then create documents based on the template that inherit its page layout. Editable template regions control which areas of a template-based page a user can edit. Frames appear inside a web page.

5. Blue Griffon is based on ________ rendering engine.
a) WebKit
b) Gecko
c) Presto
d) Mecko
 

 ANSWER: b
Explanation: BlueGriffon is a new WYSIWYG content editor for the World Wide Web. Powered by Gecko, the rendering engine of Firefox, it’s a modern and robust solution to edit Web pages in conformance to the latest Web Standards. WebKit is a browser engine used in safari. Presto is a dynamic engine.

Check this: HTML Books | MCA MCQs

6. Swapping images in dreamweaver is best if __________
a) The images are the same “Mime” type
b) The images are the same color
c) The images are the same size
d) You use the “Constrain” tool
 

 ANSWER: c
Explanation: Before you start creating a more complex page design with Dreamweaver’s Swap Image behavior, look at a finished page. Swapping means replacing any or all images on the page. While swapping images, it is important to make all images of same size (height and width). MIME stands for “Multipurpose Internet Mail Extensions.

7. Choose the inappropriate option with respect to Blue Griffon 1.5.2. Blue Griffon _________
a) includes tools for developing HTML5 pages
b) abstracts out many css3 effects
c) supports direct embedding of audio and video files
d) supports swapping of videos of any length
 

 ANSWER: d
Explanation: Blue Griffon 1.5.2 is a new WYSIWYG content editor for the World Wide Web. Blue Griffon 1.5.2 includes tools for developing HTML5 pages. It can abstracts out many CSS3 effects, supports direct embedding of audio and video files. Blue Griffon 1.5.2 does not support swapping of videos of any length.

8. Maqetta is an open source initiative of the Dojo Foundation to geared towards visual designers through a WYSIWYG user interface.
a) True
b) False
 

 ANSWER: a
Explanation: Maqetta is an open source initiative of the Dojo Foundation to build an HTML5-based editor geared towards visual designers through a WYSIWYG user interface. Maqetta was developed by IBM and then donated to the Dojo.

9. Choose the correct statement.
a) Exo is a cloud-based ide that offers collaboration and developed features
b) Exo does not support java and python
c) Exo does not support javascript and html5
d) Exo is a cloud-based ide that offers collaboration and deployment features & its supports javascript and html5
 

 ANSWER: d
Explanation: Exo provides a free, cloud-based IDE that offers collaboration and deployment features. In addition to HTML5 and JavaScript, it supports the development of Java, Ruby, and Python applications.

10. Which of following statement is true?
i. Cloud9 has gained particular interest for its integration with GitHub and Bit Bucket authentication integration and real-time collaboration.
ii. Cloud9 does not account for SSH and FTP access.
a) ii
b) i
c) i and ii
d) Neither i and ii
 

 ANSWER: b
Explanation: Cloud9 IDE is an online integrated development environment, published as open source from version 2.0, until version 3.0. It Supports for the following code repositories: 1) GitHub, 2) BitBucket, 3) Mercurial repositories, 4) Git repositories, 5) FTP servers. Cloud9 support deployment to 1) Heroku 2) Joyent 3)SFTP/FTP.

This set of HTML Multiple Choice Questions &  ANSWERs (MCQs) focuses on “Web Browsers”.

1. A Rendering engine is not responsible for ________
a) parsing the markup content (HTML)
b) parsing style information (CSS, XSL, and so on)
c) generating a visual presentation of the formatted content including media files referenced
d) parsing style information (CSS only)
 

 ANSWER: d
Explanation: A rendering engine is a software that draws text and images on the screen. The engine draws structured text from a document (HTML, XML) and formats it properly based on the given style declarations (CSS, XSL, etc). The primary job of a browser engine is to transform HTML documents and other resources of a web page into an interactive visual representation on a user’s device.

2. Firefox uses _________ rendering engine.
a) WebKit
b) Gecko
c) Trident
d) Presto
 

 ANSWER: b
Explanation: Gecko is a web browser engine used in many applications developed by Mozilla Foundation and the Mozilla Corporation as well as in many other open source software projects. Gecko is free and open-source software subject to the terms of the Mozilla Public License version 2.

3. State true or false. It is faster to render HTML and CSS than to interpret and execute JavaScript.
a) True
b) False
 

 ANSWER: a
Explanation: When it comes to ordering your CSS and JavaScript, you want your CSS to come first. The reason is that the rendering thread has all the style information it needs to render the page. If the JavaScript includes come first, the JavaScript engine has to parse it all before continuing on to the next set of resources.

Note: Join free Sanfoundry classes at Telegram or Youtube

advertisement

4. What is the use of “defer” attribute?
a) It defers rendering of html page
b) It defers script execution until the page has been rendered
c) It defers rendering of css attributes
d) It is only for internal scripts
 

 ANSWER: b
Explanation: The defer attribute is a boolean attribute. The script is executed after the page has finished parsing. The defer attribute is used if and only if there is src attribute. Defer is for external not internal scripts.

5. Which of the following statements is false?
a) async and defer attributes of script tag execute before the DOMContentLoaded event
b) defer executes each script sequentially
c) async executes each script when it is ready
d) all older browsers supports async attribute
 

 ANSWER: d
Explanation: In async attribute, the script is executed asynchronously with the rest of the page (the script will be executed while the page continues the parsing). Defer, the Boolean attribute is set to indicate to a browser that the script is meant to be executed after the document has been parsed, but before firing DOMContentLoaded event. Older browsers doesn’t support async attribute.

Check this: Computer Science MCQs | MCA MCQs

6. Which of the following is used to read a HTML page and render it?
a) Web browser
b) Web server
c) Web matrix
d) Web network
 

 ANSWER: a
Explanation: A web browser (commonly referred to as a browser) is a software application for retrieving, presenting and traversing information resources on the World Wide Web. A web server process, store and display output to client as per their request. Web matrix is a discontinued cloud-connected website builder and HTML editor for Windows.

7. Which of the following is the first web browser?
a) Nexus
b) Netscape Navigator
c) Internet Explorer
d) Mosaic
 

 ANSWER: a
Explanation: The first web browser was invented in 1990 called World Wide Web which was later renamed to Nexus. In 1995, a graphical web browser named Internet Explorer was developed. The Netscape is a web browser produced by Netscape Communications. NCSA Mosaic, or Mosaic, is the web browser which in turn popularized World Wide Web.

8. Who created the first web browser
a) Tim Berners Lee
b) Jacobs, Lan
c) Marc Andeersen
d) Mozilla foundation
 

 ANSWER: a
Explanation: Sir Timothy John “Tim” Berners-Lee, also known as TimBL, is an English computer scientist, best known as the inventor of the World Wide Web. He made a proposal for an information management system in March 1989, and he implemented the first successful communication between a Hypertext Transfer Protocol (HTTP) client and server via the Internet sometime around mid-November of that same year.

9. Nexus is first graphical web browser.
a) True
b) False
 

 ANSWER: b
Explanation: Mosaic was the first browser to display images inline with text instead of displaying images in a separate window, while often described as the first graphical web browser.

10. The open source software version of netscape is _________
a) Chrome
b) Mozilla
c) Internet Explorer
d) Erwise
 

 ANSWER: b
Explanation: On February 23, 1998, Netscape Communications Corporation created a project called Mozilla to co-ordinate the development of the Mozilla Application Suite, the open source version of Netscape’s internet software, Netscape Communicator.

This set of HTML Interview Questions and  ANSWERs focuses on “The Rules of (X)HTML”.

1. Which of the following prints bold letters in traditional HTML?

i. <B>Go boldly</B>
ii. <B>Go boldly</b>
iii. <b>Go boldly</B>
iv. <b>Go boldly</b>

a) iv
b) i
c) i, ii, iii, and iv
d) both iv and i
 

 ANSWER: c
Explanation: Traditional HTML is case insensitive and thus we can write tag/element name either in lowercase or uppercase or both which will be ignored by browser by default.

Subscribe Now: HTML Newsletter | Important Subjects Newsletters

advertisement

2. XHTML is case insensitive and HTML is case sensitive.
a) True
b) False
 

 ANSWER: b
Explanation: Traditionally XHTML is case sensitive while HTML is case insensitive. In HTML these are ignored by default by browsers.

3. What output do you expect if the following markup is rendered?

Check this: Information Science MCQs | Computer Science MCQs

<strong>T   e    s   t   o  f  s  p  a  c  e  s</strong><br>
<strong>T e s t &nbsp;o f&nbsp; s p a c e s </strong><br>

a) T e s t o f s p a c e s
T e s t o f s p a c e s
b) Testofspaces
Testofspaces
c) T e s t o f s p a c e s
T e s t  o f  s p a c e s
d) T e s t o f s p a c e s T e s t o f s p a c e s
 

 ANSWER: c
Explanation: The strong tag is used to highlight the importance of text/paragraph. <br> tag is used for a line break in HTML. Ant white space between characters displays as a single space.

4. Which of the following options follows content model in HTML?

i.<ul>
     <p>Option one </p>
  </ul>
ii.<ul>
     <li>Option two </li>
  </ul>

a) i
b) ii
c) i and ii
d) Neither i nor ii
 

 ANSWER: b
Explanation: Content model specifies that certain elements are supposed to occur only within other elements. The <ul> tag which is for unordered list should contain <li> tags which are for list specification. The <p> tag is used for paragraph in HTML.

5. Which of the following is not an empty element?

a) <hr/>
b) <br/>
c) <p/>
d) Both <hr/> and <br/>

 

 ANSWER: c
Explanation: An element is said to be empty if it doesn’t contain any content in it. The <hr/> and <br/> tag which is used for a horizontal line and line break respectively, doen’t contains any content in it and thus are called empty elements in HTML. <p> tag contains text/paragraph in it so it’s not an empty element.

 
 

6. State true or false.

<p></p><p></p><p></p>produces numerous blank lines.

a) True
b) False
 

 ANSWER: b
Explanation: As a block tag, <p> induces a return by default, but when used repeatedly, like <p></p><p></p>, it does not have any effect on document.

7. Which of the following markup is correct?

i. <b><i>is in error as tags cross</b></i>
ii. <b><i>is not since tags nest</i></b>

a) i
b) ii
c) i and ii
d) Neither i nor ii
 

 ANSWER: b
Explanation: In markup, tags can be nested. The first tag who is going to nest other tag must end after that nested tag which means if <i> tag is nested in <b> tag then <b> must be closed after closing of the <i> tag.

8. Which of the following is not a correct (X)HTML rule?
a) Attributes should be quoted
b) Tags should not nest tag
c) Attribute minimization is forbidden
d) Unknown attributes are not ignored by the browser
 

 ANSWER: d
Explanation: Rules of XHTML are as- 1) XHTML elements must be properly nested
2) XHTML elements must always be closed
3) XHTML elements must be in lowercase
4) XHTML documents must have one root element
5) Attribute names must be in lower case
6) Attribute values must be quoted
7) Attribute minimization is forbidden

9. Choose the incorrect escape character entity.

a) &gt;
b) &#62;
c) &lt;
d) &st;

 

 ANSWER: d
Explanation: Character escapes in markup is to represent any Unicode character in HTML, XHTML or XML using only ASCII characters. There are different types of escape character entity in HTML. Some of them are > which is used for greater than(>) , > is basically a entity number which is used for greater than(>), < stands for less than(<), etc. There doesn’t exist any &st escape character entity in markup.

 
 

10. Identify the count of mistakes in the following markup.

<html>
<head>
</head>
<body>
<li>
   <ul><p>Hello</p></ul>
</li>
<br>
<hr>
</body>
</html>

a) 2
b) 3
c) 1
d) 0
 

 ANSWER: b
Explanation: We can write <p></p> tag in <ul></ul> tag as there is no such rule or else limitation. The tags <br> and <hr> are closed by default in browser