MCQ of Web Tech
MCQ of Web Tech
b. <body bgcolor=yellow>
c. <background>yellow</background>
d. <body background=yellow>
14. Choose the correct HTML tag for the smallest size heading?
a. <heading>
b. <h6>
c. <h1>
d. <head>
15. What is the correct HTML tag for inserting a line break?
a. <br>
b. <lb>
c. <break>
d. <newline>
16. What does vlink attribute mean?
a. visited link
b. virtual link
c. very good link
d. active link
Like mcqsets.com in Facebook & Google+
17. Which attribute is used to name an element uniquely?
a. class
b. id
c. dot
d. all of above
18. Which tag creates a check box for a form in HTML?
a. <checkbox>
b. <input type=checkbox>
c. <input=checkbox>
d. <input checkbox>
19. To create a combo box (drop down box) which tag will you use?
a. <select>
b. <list>
c. <input type=dropdown>
d. all of above
20. Which of the following is not a pair tag?
a. <p>
b. < u >
c. <i>
d. <img>
21. To create HTML document you require a
a. web page editing software
b. High powered computer
c. Just a notepad can be used
d. None of above
22. The special formatting codes in HTML document used to present content are
a. tags
b. attributes
c. values
d. None of above
23. HTML documents are saved in
a. Special binary format
b. Machine language codes
c. ASCII text
d. None of above
24. Some tags enclose the text. Those tags are known as
a. Couple tags
b. Single tags
c. Double tags
d. Pair tags
25. The _____ character tells browsers to stop tagging the text
a. ?
b. /
c. >
d. %
26. In HTML document the tags
a. background=green
b. bgcolor=green
c. vlink=green
d. None of above
40. Which attribute youll use with TD tag to merge two cells horizontally?
a. merge=colspan2
b. rowspan=2
c. colspan=2
d. merge=row2
41. A webpage displays a picture. What tag was used to display that picture?
a. picture
b. mage
c. img
d. src
42. <b> tag makes the enclosed text bold. What is other tag to make text bold?
a. <strong>
b. <dar>
c. <black>
d. <emp>
43. Tags and test that are not directly displayed on the page are written in _____ section.
a. <html>
b. <head>
c. <title>
d. <body>
44. Which tag inserts a line horizontally on your web page?
a. <hr>
b. <line>
c. <line direction=horizontal>
d. <tr>
45. What should be the first tag in any HTML document?
a. <head>
b. <title>
c. <html>
d. <document>
46. Which tag allows you to add a row in a table?
a. <td> and </td>
b. <cr> and </cr>
c. <th> and </th>
d. <tr> and </tr>
47. How can you make a bulleted list?
a. <list>
b. <nl>
c. <ul>
d. <ol>
48. How can you make a numbered list?
a. <dl>
b. <ol>
c. <list>
d. <ul>
49. How can you make an e-mail link?
a. <a href=xxx@yyy>
b. <mail href=xxx@yyy>
c. <mail>xxx@yyy</mail>
d. <a href=mailto:xxx@yyy>
50. What is the correct HTML for making a hyperlink?
a. <a href=http://example.com>examples</a>
b. <a name=http:// example.com> examples </a>
c. <http:// example.com</a>
d. url=http:// example.com> examples
51. Choose the correct HTML tag to make a text italic
a. <ii>
b. <italics>
c. <italic>
d. <i>
52. Choose the correct HTML tag to make a text bold?
a. <b>
b. <bold>
c. <bb>
d. <bld>
53. What is the correct HTML for adding a background color?
a. <body color=yellow>
b. <body bgcolor=yellow>
c. <background>yellow</background>
d. <body background=yellow>
54. Choose the correct HTML tag for the smallest size heading?
a. <heading>
b. <h6>
c. <h1>
d. <head>
55. What is the correct HTML tag for inserting a line break?
a. <br>
b. <lb>
c. <break>
d. <newline>
56. What does vlink attribute mean?
a. visited link
b. virtual link
c. very good link
d. active link
57. Which attribute is used to name an element uniquely?
a. class
b. d
c. dot
d. all of above
58. Which tag creates a check box for a form in HTML?
a. <checkbox>
b. <input type=checkbox>
c. <input=checkbox>
d. <input checkbox>
59. To create a combo box (drop down box) which tag will you use?
a. <select>
b. <list>
c. <input type=dropdown>
d. all of above
60. Which of the following is not a pair tag?
a. <p>
b. < u >
c. <i>
d. <img>
61. What is the full form of HTML?
a. Hyper text markup language
b. Hyphenation text markup language
c. Hyphenation test marking language
d. Hyper text marking language
62. What is the full form of HTTP?
a. Hyper text transfer protocol
b. Hyper text transfer package
c. Hyphenation text test program
d. none of the above
63. What is a search engine?
a. a program that searches engines
b. a web site that searches anything
c. a hardware component
d. a machinery engine that search data
64. What is the full form of TCP/IP?
a. transmission control protocol / internet protocol
b. telephone call protocol / international protocol
c. transport control protocol / internet protocol
d. none of the above
65. HTML document start and end with which tag pairs?
a. <HEAD>.</HEAD>
b. <BODY>.</BODY>
c. <HTML>.</HTML>
d. <WEB>.</WEB>
66. Which tag is used to create body text in HTML?
a. <HEAD>
b. <TEXT>
c. <TITLE>
d. <BODY>
67. Yahoo, Infoseek and Lycos are _________?
a. Search Engines
b. Browsers
c. News groups
d. None of the above
68. What does the .com domain represents?
a. Education domain
b. Commercial domain
c. Network
d. None of the above
69. In Satellite based communication, VSAT stands for?
a. Very Small Aperture Terminal
b. Varying Size Aperture Terminal
c. Very Small Analog Terminal
d. None of the above
70. Outlook Express is a _________
a. E-Mail Client
b. Browser
c. Search Engine
d. None of the above
71. <TITLE> </TITLE> tag must be within ________
a. Title
b. Form
c. Header
d. Body
72. Text within <EM> </EM> tag is displayed as ________
a. bold
b. italic
c. list
d. indented
73. Text within <STRONG> </STRONG> tag is displayed as ________
a. bold
b. italic
c. list
d. indented
74. <UL> </UL> tag is used to ________
a. display the numbered list
b. underline the text
c. display the bulleted list
d. bold the text
75. Which tag is used to display the numbered list?
a. <OL></OL>
b. <DL></DL>
c. <UL></UL>
d. <LI></LI>
76. Which tag is used to display the large font size?
a. <LARGE></LARGE>
b. <BIG></BIG>
c. < SIZE ></SIZE>
d. <FONT></FONT>
77. <SCRIPT> </SCRIPT> tag can be placed within ________
a. Header
b. Body
c. both A and B
d. none of the above
78. using <P> tag will
a. start a new paragraph
b. break the line
c. end the current paragraph
d. The Internet
85. What do I need to get onto the Internet?
a. Computer
b. Modem
c. Browser
d. All of the above
86. What is an ISP?
a. nternet System Protocol
b. nternal System Program
c. Internet Service Provider
d. None of the above
87. Which of the following is valid IP address?
a. 984.12.787.76
b. 192.168.321.10
c. 1.888.234.3456
d. 192.168.56.115
88. Which is not a domain name extension
a. mil
b. org
c. .int
d. .com
89. What is a FTP program used for?
a. Transfer files to and from an Internet Server
b. Designing a website
c. Connecting to the internet
d. None of the above
90. Which of the following are commonly found on web pages?
a. nternet
b. hyperlinks
c. intranet
d. all of the above
91. What is the correct syntax in HTML for creating a link on a webpage?
a. <LINK SRC= mcqsets.html>
2a
12 a
22 a
32 b
42 a
52 a
62 a
72 b
82 d
92 c
3b
13 b
23 c
33 d
43 b
53 b
63 b
73 a
83 a
93 d
4a
14 b
24 d
34 c
44 a
54 b
64 a
74 c
84 c
94 a
5c
15 a
25 b
35 a
45 c
55 a
65 c
75 a
85 d
95 b
6d
16 a
26 d
36 b
46 d
56 a
66 d
76 b
86 c
96 a
7c
17 b
27 c
37 d
47 c
57 b
67 a
77 c
87 d
97 b
8b
18 b
28 c
38 c
48 b
58 b
68 b
78 a
88 c
98 c
9d
19 a
29 c
39 b
49 d
59 a
69 a
79 b
89 a
99 c
10 a
20 d
30 d
40 c
50 a
60 d
70 a
80 b
90 b
100 a
SOAP
B.
SGML
C.
SQL
D.
ADO
B.
C.
D.
DTD.
B.
XSLT.
C.
HTML.
D.
SOAP.
SPAN is SPAN does not do formatting by itself. Also the DIV tag is used as a paragraph
break as it creates a logical division of the document in which it is applied. This is in
contrast to the SPAN as SPAN simply dos the functionality of applying the style and
alignment whatever was specified in it. DIV has ALIGN attribute in it which is not
present in case of SPAN. Thus DIV is used in cases where one wants to apply styles to a
block of text. But there may be situations in which there might not be clear well
structured block of text to work with. In those cases one can opt to apply SPAN which is
used to apply styles inline. That is in other words DIV is generally used for block of text
and SPAN is generally used for words or sentences. Suppose if you use div tag for a
single line in a big paragraph, it will give the space before and after the div tag line. If
you use span then it does not give any space.
For example you have a paragraph. In that paragraph third line you have a word
"geekinterview". So you want to highlight the word and also use CSS class.
In the above situation if you use <div class="ssss".....You can see the space between the
lines. but if you use <span class="ssss"....You can't see the space. So it is best to use
span when you want to apply some style for a single line.
There is no align property in span tag. At that time you need to use div tag. Div is a block
level object, that is, It contains a HTML box model around itself by default, and its width
is 100% in respect to the immidiate parent of it, while span is an inline object and does
not contain any box module with it.Its width is the with of its child object.
2. What is the difference between width=100 and width=100%?
100 defines absolute and 100% defines the relative. There is lot of difference between
width="100" and width="100%". Suppose we have create a table. if width 100 will be
100 its a fixed width. while loading it will take default table width as 100 but in 100% it
wont take like that
first of all it has to load fully and then it will take the browser window width and then
100% table will display in its full view and it could be changed according the resolution
and browser.
but fixed width cant be changed if the resolution and browser changed.
3. In html ,when we create a form for username and password,when we click submit button
where will the link go.How does it works?
Actually form is used for dynamic interaction between user and database...so when u
click submit button it will make the input tag values in action page, form action page
should me mentioned be initializing. As soon as user clicks submit button the data that
was input into the form fields is transferred in form of arrays to the destination page.The
destination page URL is specified by action=" attribute in the form tag.The array is either
readable through URL or it is hidden and depends upon the method which is chosen to
loaded.
CSS:
CSS is called as Cascading Style Sheet. This is used to enhance the features of web pages like
formatting styles say bold, font size and so on and there by increase the visual appearance of web
pages. These are specified inside an HTML tag.
DOM:
DOM is called as Document Object Model. This is platform and also language independent. This
is used for dynamic access and updating of contents in documents.
7. What is the DocType for HTML5? What are the new futures in HTML5?
The html5 doctype is <!doctype html>
Some of the new features are audio,video and many other features are there(described in
html ppt)
8. What are meta tags and why it is used?
Metadata is information about data.The <meta> tag provides metadata about the HTML
document. Metadata will not be displayed on the page, but will be machine parsable.
Meta elements are typically used to specify page description, keywords, author of the
document, last modified, and other metadata.The <meta> tag always goes inside the head
element.
The metadata can be used by browsers (how to display content or reload page), search
engines (keywords), or other web services.
content may be large enough that the user may wish to place it separately and scroll
through it. There are many attributes present in <iframe> and some of the attributes
used with <iframe> are namely:
NAME:
Used for specifying the name of the frame.
SCROLL:
Used for specifying the scrolling action to be activated. Can take three values namely
AUTO, YES or NO. AUTO will allow the browser to take the decision and activate scroll
bar when needed YES specify scroll bar is needed and NO specifies scroll bar is not
needed.
ALIGN:
This is used for alignment of text and the values that can be taken by it are namely LEFT,
RIGHT, TOP, MIDDLE, and BOTTOM.
FRAMEBORDER:
Used for setting borders, around the frames if needed. A value of 1 set the border around
the frame and 0 specify for no border.
HEIGHT:
Used to specify the height of the frame and this value is mentioned in pixels.
HSPACE:
Used for specifying horizontal spacing around the frames.
Empty elements in html is that element have no value inside the opening and closing tag.
It closed in opening tag itself,No seperte close tags.
Ex:
<br/>
<hr/>
13. How many parts are present in HTML documents?
An HTML document is composed of three parts:
1.
A line containing HTML version information,
2.
A declarative header section (delimited by the HEAD element),
3.
A body, which contains the document's actual content. The body may be implemented by
the BODY element or the FRAMESET element.