Вы находитесь на странице: 1из 11

Web Programming MCQs (HTML , JAVASCRIPT CSS) By WAHEED

ANWAR

1. Which organization defines the Web


Standards?
a. Microsoft Corporation
b. IBM Corporation
c. World Wide Web Consortium
d. Apple Inc.

10. The software that can read and render


HTML documents is
a. Server
b. Compiler
c. Interpreter
d. Browser

2. Whichg of the following is used to create


web pages?
a. HTML
b. C
c. JVM
d. DTD

11. PCs running Windows 3.x will have


____extension for html pages
a. .htl
b. .html
c. .htm
d. .hml

3. HTML is considered as ___ language


a. Programming Langauge
b. OOP Language
c. High Level Language
d. Markup Language

12. Which of the following is not an example of


browser?
a. Netscape Navigator
b. Microsoft Bing
c. Mozilla Firefox
d. Opera

4. HTML language is a set of markup ___


a. Attributes
b. Tags
c. Sets
d. Groups
5. HTML tags are used to describe document
____
a. Definition
b. Language
c. Content
d. None of these

13. Who is the primary author of HTML?


a. Brendan Eich
b. Tim Berners-Lee
c. Web Programmer
d. Google Inc
14. HTML was first proposed in year ___.
a. 1980
b. 1990
c. 1995
d. 2000

6. HTML document can contain


a. Attributes
b. Tags
c. Plain text
d. All of these

15. HTML tags are surrounded by ___ brackets


a. Angle
b. Square
c. Round
d. Curly

7. Page designed in HTML is called a


a. Yellow Page
b. Web Page
c. Server Page
d. Front Page

16. Opening tag of HTML is called


a. Ending tag
b. Starting tag
c. Closed tag
d. Pair tags

8. We can write HTML code using ____. Select


appropriate option(s).
a. VLC Media
b. Notepad++
c. Microsoft PowerPoint
d. None of these

17. HTML document contain one root tag called


____
a. HEAD
b. Title
c. Body
d. HTML

9. HTML document is saved using ____


extension.
a. .htl
b. .html
c. .hml
d. .htnl

18. Basic fundamental block is called as ___


a. HTML tag
b. HTML body
c. HTML Attribute
d. HTML Element

Web Programming MCQs (HTML , JAVASCRIPT CSS) By WAHEED


ANWAR
19. Is it possible to insert a table within
another table?
a. Yes, but there must be exactly 2 rows and 2 columns in
first table.

b. Yes, table can be inserted into cell of


another table.
c. Yes, but there must be no border in second
table.
d. No, its not possible.
20. What is the usage of alt value in <img>
tag?
a. Alternative text for an Image
b. Alternative source of an Image
c. Caption of an Image
d. All of above
21. Which of the following is the correct
regarding meta tag in HTML?
A.<meta> </meta>
B.<meta name = />
C.<metadata> </metadata>
D. <metadata name = />
22. Which of the following is correct to set
Black color as Background of page?
A.bgcolor = #000000>
B.<body background = #000000>
C.<body Background color = #000000>
D. All of Above
23. Which of the following is correct to align H1
tag to Right Alignment
A.<h1 align = right>
B.<h1 alignment = right>
C.<h1 tag align = right> </h1>
D. H1 cannot make Right Alignment
24. Which of the following is correct to change
font face in Web Page
A.<font = font name>
B.<font name = font name> </font>
C.<font face = font name> </font>
D. Font Face cannot change
25. Which of the following is incorrect
regarding Logical styles?
A.Code looks like teletype
B.Sample looks like teletype
C.Keyboard looks like teletype
D. Variable looks like teletype
26. Which of the following is correct character
entities for Copyright symbol?
A.&#149;
B.&#159;
C.&#169;
D. &#179;

27. Which tag is used to display Preformatted


texts?
A.<pre> </ pre>
B.<prefor> </ prefor>
C.<pre text> </ pre text>
D. <pre format> </ pre format>
28. Which is the correct to create an Arabic
numeral list
A.<ul type=1>
B.<ol type=1>
C.<il type=1>
D. <li type=1>

29. How to add alternative text for an Image?


A.<img src =
http://www.mcqsets.com/brand.png alternate
= Brand of website />
B.<img src =
http://www.mcqsets.com/brand.png alt text
= Brand of website />
C. src = http://www.mcqsets.com/brand.png
alternate text = Brand of website />
D. <img src =
http://www.mcqsets.com/brand.png alt
= Brand of website />
30. How to embedded Audio Files in HTML?
A. <embed src = song.mid width =
10 height = 15>
B.<embed sound = mysong.mid width = 100
height = 15>
C.<embed audio = mysong.mid width = 100
height = 15>
D. <embed music = mysong.mid width = 100
height = 15>

31. In HTML, Uniform Resource Locator (URL) is


used to
a. To create a frame document .
b. To create a image map in the webpage.
c. To customize the image in the webpage.
d. To identify a name or a resource on the
internet.
32. CSS is an acronym for
a. Cascading Style Sheet
b. Costume Style Sheet
c. Cascading System Style
d. None of the Above
33. Which of the following protocol is not used in
the Internet

a. Telnet
b. WIRL
c. HTTP
d. Gopher
34. Who invented World Wide Web (WWW)?
a. Blaise Pascal

Web Programming MCQs (HTML , JAVASCRIPT CSS) By WAHEED


ANWAR

b. Charles Babbage
c. Herman Hollerith
d. Tim Berners-Lee

35. What is the use of Web Font in HTML ?


a. that is the core font that is use to develop
Web Pages.
b. that enables to use fonts over the Web
without installation.
c. that is the special font that developed by
Microsoft Corp.
d. All of the Above.
36. What is <tt> tag in HTML?
a. It renders fonts as teletype text font
style.
b. It renders fonts as truetype text font style.
c. It renders fonts as truncate text font style.
d. None of the Above.
37. What is the use of Forms in HTML?
a. to display contents of email.
b. to display animation effect.
c. to collect users input.
d. None of the Above.
38. What is the use of iframe in HTML?
a. to display a web page within a web
page.
b. to display a web page with animation effect.
c. to display a web page without browser.
d. All of the Above.
39. FTP is an acronym for
a. File Transaction Protocol
b. File Transmission Protocol
c. File Translation Protocol
d. File Transfer Protocol
40. Which HTML Tag will use to scroll a text in
web page?
a. <marquee> </marquee>
b. <scroll> </scroll>
c. <round> </round>
d. <go> </go>
41. How to define the link should open in new
page in HTML?
a. <a href = http://www.mcqsets.com/ target = blank>Click
Here</a>
b. <a href = http://www.mcqsets.com/ target =
_blank> Click Here </a>
c. <a href = http://www.mcqsets.com/ target = #blank>
Click Here </a>
d. <a href = http://www.mcqsets.com/ target = @blank>
Click Here </a>

42. How to set a picture as a background web


page?
a. <body background= bgimage.gif>
b. <body background image= bgimage.gif>

c. <background= bgimage.gif>
d. <background image= bgimage.gif>

43. Which of following HTML Tag will inserting a


line break?
a. <p>
b. <line>
c. <br>
d. <break >
44. Which of the following tags are related to
Table in HTML ?
a. <table> <row> <column>
b. <table> <tr> <td>
c. <table> <head> <body>
d. <table> <header> <footer>
45. Which of the following is correct HTML for
inserting an image?
a. <image source=
www.mcqsets.com/admin.jpg alt= This is
me />
b. <img src=
www.mcqsets.com/admin.jpg alt= This
is me />
c. <img source=
www.mcqsets.com/admin.jpg alt= This is
me />
d. <img alt= This is
me>www.mcqsets.com/admin.jpg
46. Choose the correct HTML tag to left-align
the content of a cell.
a. <tdleft>
b. <td leftalign>
c. valign= left>
d. <td align= left>
47. Which tag is used to lists the items with
bullets?
a. <bullet></bullet>
b. <list></list>
c. <ul>
d. <ol></ol>
48. Pick the odd out
a. Table
b. TR
c. TD
d. Form
49. The first page of a website is called
a. Design
b. Home page
c. First page
d. Main page
50. The version of HTML is
a. HTML0
b. HTML1

Web Programming MCQs (HTML , JAVASCRIPT CSS) By WAHEED


ANWAR

c. HTML2
d. All of these

51. Head tag is used for?


a. Writing style
b. Writing Java Script
c. Including CSS, JS Files
d. All of these
52. How many heading tags are supported by
HTML?
a. 3
b. 4
c. 5

d. 6
53. Which is the largest heading tag?
a. H1
b. H3
c. H4
d. H6
54. Which of the following are attributes of
Font tag?
a. Face
b. Size
c. Color
d. All of above
55. . connects web pages.
a. Connector
b. Link
c. Hyperlink
d. None of the above
56. Internet is .
a. a network of networks
b. an ocean of resources waiting to be mined
c. a cooperative anarchy
d. all of the above
57. is suitable for remote
administration of a computer.
a. FTP
b. Shell
c. Remote Procedure Call
d. Telnet
58. Title tag is nested within the
.. tag.
a. Body
b. Head
c. List
d. Table
59. .. is a webs native protocol.
a. SLIP
b. TCP/IP
c. HTTP
d. PPP

60. The Internet uses the as


the protocol engine.
a. SLIP
b. HTTP
c. TCP/IP
d. PPP

61. A .. is a symbolic name a


network administrator assigns to a machine.
a. URL
b. DNS
c. IP address
d. Host name
62. Which of the following protocol is used for
e-mail services.
a. SMAP
b. SMTP
c. SMIP
d. SMOP
63. . is the incoming e-mail
server.
a. POP
b. SMTP
c. SMIP
d. PPP
64. .. is a uniform naming
scheme for locating resources on the web.
a. URL
b. HTTP
c. WEBNAME
d. RESOURCENAME
65. The attribute of <BODY> tag
sets color of hypertext links.
a. link
b. vlink
c. alink
d. hlink
67. This is a networking device that passes
data between networks having similar
functions but dissimilar implementations.
a. Hub
b. Modem
c. Gateway
d. Repeater
68. In order to connect to ISPs server you
need .
a. Hand gloves
b. Printer
c. User name and Password
d. None of the above
69. DNS translates
a. domain name into IP
b. IP into domain name

Web Programming MCQs (HTML , JAVASCRIPT CSS) By WAHEED


ANWAR

c. both a & b
d. domain name into physical address

70. In order to upload a HTML file to a web


server, you use
a. HTTP
b. SMTP
c. SIP
d. FTP
71. IEEE stands for ..
a. Institute of estimated elevator efficiency
b. Institute of electrical and economical
engineers
c. Institute of Eurasia engineering event
d. Institute of electrical and electronics
engineers
72. The regional networks are connected to the
corporate networks, this is also called as ..
a. Backbone
b. LAN COM
c. WAN COM
d. Intranet
73. Once the email is sent, the message is
broken into pieces called
a. Packets
b. Process
c. Digits
d. Bytes
74. . is known as father of World
Wide Web.
a. Robert Cailliau
b. Tim Thompson
c. Charles Darwin
d. Tim Berners-Lee
75. . are the physical meeting points
of backbones.
a. Gateways
b. Pathways
c. Routers
d. Domains
76. CuteFTP is an example of client
program.
a. FTP
b. Telnet
c. Web browser
d. Mail
77. Which of the following is best suitable for
remote administration of a computer?
a. Telnet
b. WAIS
c. Browsers
d. HTML

78. The leading bit pattern of class B network


is
a. 0

b. 10
c. 110
d. 11
79. The . attribute adds space
within each cell.
a. CELL SPACING
b. CELL PADDING
c. WIDTH
d. ALIGN
80. Which of the following are two popular
protocols that allow home computer users to
connect their computers to the internet as per
hosts? i) SLIP ii) PPPiii) HTTP iv) SMTP
a. iii and iv
b. ii and iii
c. i and ii
d. ii and iii
81. A computer that translates
of another computer into an and
vice versa, upon request is known as DNS
server.
a. Domain name and IP address
b. Host address and Domain name
c. Domain name and server address
d. Server name and IP address
82. Identify the uses of URI in HTML.: i) Link to
another document or resource ii) Link to
external style sheet or script iii) Create an
image map
a. i and ii
b. i and iii
c. ii and iii
d. i , ii and iii
83. An ordered list is a . list and
an unordered list is a .. list.
a. bulleted & numbered
b. bulleted & tabular
c. tabular & numbered
d. numbered & bulleted
84. Linking to another place in the same or
another web page requires two A (Anchor)
tags, the first with the attribute
and the second the .attribute.
a. NAME & LINK
b. LINK & HREF
c. HREF & NAME
d. TARGET & VALUE
85. What type of information should you avoid
including on your Web site?

Web Programming MCQs (HTML , JAVASCRIPT CSS) By WAHEED


ANWAR

a. Links to sites of interest


b. Private personal information
c. Work and academic experience
d. Graphical

86. Which of the following web elements


should you know about before building your
web site?
a. The web audience
b. The operating environment of your ISP
c. The operating system of your visitor
d. Each consideration should determine your
web design choices
87. What is the language of the Web?
a. Basic
b. C++
c. MS Visual Basic
d. HTML
88. What does an HTML tag do?
a. It specifies formatting and layout
instructions for your web page.
b. It hides programming instructions from view.
c. It determines the organizational structure of
your Web site.
d. It connects your web site to an operating
environment.
89. A Web document is broken into sections.
What are the tags called that create these
sections?
a. Structure tags
b. HTML tags
c. Heading tags
d. Body tags
90. What should be the first and last pair of
tags in your Web document?
a. <html></html> and <body></body>
b. <start><end> and <body></body>
c. <head><body> and <title></title>
d. <title></title> and <body<>/body>

1. What can be define within a single font


tag :
A. Only face
B. Only size
C. Only color
D. All of the above
2. To change default font face or size of a
Web-page, use :
A. base tag
B. basefont tag
C. baseface tag
D. None of the above

3. Select true statement:


Statement 1:You can assign multiple
valuest to face attribute of font tag.
Statement 2: If you specify a font name as
face value of font tag, that is not installed
on users computer, text will be displayed
in browsers default font.
A. Only Statement 1 is true.
B. Only Statement 2 is true.
C. Both, Statement 1 and Statement
2 are true.
D. Neither, Statement 1 not Statement 2
is true.
4. There are sets of HTML tags that
form the basic structure needed for every
HTML file:
A. one
B. two
C. three
D. four
5. Which tag is used to a command that is
used to instruct the computer (specifically
browser)?
A. <html>
B. <div>
C. <frame>
D. None of the above
6. The Heading tag and Paragraph tag can
be represented as
A. <head> and <para>
B. <hr> and <pr>
C. <h1> and <p>
D. None of the above
7. The HTML syntax of HTML5 requires a
. to be specified to ensure that the
browser renders the page in standard
mode.
A. DOCTYPE
B. HEAD
C. BODY
D. TITLE
8. Which tag is used to identify the
beginning and end of the HTML document?
A. <html>
B. <body>
C. <title>
D. None of the above
9. One of the most popular way is to
specify character-set using a
A. meta data
B. meta element

Web Programming MCQs (HTML , JAVASCRIPT CSS) By WAHEED


ANWAR
C. meta value
D. None of the above

D. <pic src=image.gif
alt=MyImage />

10.
is
A.
B.
C.
D.

The doctype declaration for the HTML

18.
A.
B.
C.
D.

11.
A.
B.
C.
D.

The sets of HTML tag is


<html></html>
<head></head>
<title></title>
All of the above

case-sensitive
case-insensitive
case-impsensitive
None of the above

12. A list which is provided with numeric


digit is called an
A. Ordered List
B. Unordered List
C. Definition List
D. None of the above
13.
A.
B.
C.
D.

An Ordered List can be represented as


<ol>
<ul>
<li>
<el>

14. A list which is provided with a bullet(a


black dot) is called an
A. Ordered List
B. Unordered List
C. Definition List
D. None of the above
15.
A.
B.
C.
D.

How many list of HTML is/are


one
two
three
four

16.
A.
B.
C.
D.

Defination list can be defined as :


<ol>
<ul>
<dl>
None of the Above

17. What is the correct HTML for inserting


an image?
A. <image src=image.gif
alt=MyImage />
B. <img src=image.gif
alt=MyImage />
C. <img
alt=MyImage>image.gif</img>

What does vlink mean ?


visited link
unvisited link
active link
vertical link

19. one attribute is used to identify an


image as image map?
A. MAP
B. SMAP
C. ISMAP
D. IMAP
20. Which one attribute is used to send the
coordinate of image to the server When
the user clicks on the image?
A. COORD
B. SMAP
C. SIMAP
D. ISMAP
21. If you want to be sure that the image is
indeed the same one that the author
intended, and hasnt been modified in any
way, which one attribute inside <img> tag
is used?
A. MD
B. SD
C. NOCHANGE
D. LOCK
22. The value of MD attribute of <img> tag
can be
A. MD=MD5:some text
B. MD=DSS1:some text
C. MD=SHA512:some text
D. Any of the above
23. Which one is the mandatory attribute
of the <img> tag?
A. SRC
B. HREF
C. ID
D. ALT
24. Statement1:The <IMG> tag is used to
incorporate in-line graphics (typically icons
or small graphics) into an HTML document.
Statement2:The <IMG> element is also
intended for embedding other HTML text.
Statement 3:For large figures with captions
and text flow see FIG element.
A. Statement 1 and Statement 2 are true.

Web Programming MCQs (HTML , JAVASCRIPT CSS) By WAHEED


ANWAR
B. Statement 2 and statement 3 are true.
C. Statement 1 and statement 3 are
true.
D. All three statements are true.

A. space attribute
B. whitespace attribute
C. backspace attribute
D. All of the above

25. Which tag is used to define an image in


HTML?
A. <img>
B. <image>
C. <pic>
D. None of the above

33. Which address is include the entire


pathname?
A. Relative
B. Mixed
C. Absolute
D. None of the above

26. Which type of parameter specify the


path where your image is placed?
A. path
B. scr
C. src
D. None of the above

34.
A.
B.
C.
D.

27.
A.
B.
C.
D.

GIF stands for:


Graph Interchange Format
Graphics Interlinked Format
Graphics Interchange Format
None of the above

28. Which attribute can be used to position


the image?
A. position attribute
B. align attribute
C. margin attribute
D. None of the above

PNG stands for:


Portable Network Graphic
Pivot Network Graphic
Pichart Network Graphic
Pythagorus Network Graphic

35. HTML provides a functionality to


connect one or more pages in web-pages
or resources.
A. link
B. src
C. node
D. tree
36.
A.
B.
C.
D.

The <img> tag is supported by


internet explorer
mozilla firefox
google chrome
All of the above

29. The .. and .indicates


vertical space and horizontal space
respectively.
A. verspace and horspace
B. vspace and hspace
C. vertspace and hortspace
D. None of the above

37. HTML provides which control to use


arranging text and also in defining the
things more understandable manner.
A. Tables
B. Frames
C. Div
D. None of the above

30.
A.
B.
C.
D.

38.
by
A.
B.
C.
D.

A table contains rows which is defined

39.
A.
B.
C.
D.

Table data may contain


text
links
tables
All of the above

The <img> tag attributes are


Size attribute
Spacing attribute
Border attribute
All of the above

31. Which attribute define the width and


height of the image?
A. Size attribute
B. length attribute
C. margin attribute
D. All of the above
32. Which attribute can be created
between image and its surrounding text by
specifying horizontal and vertical space?

<tr> tag
<td> tag
<th> tag
None of the above

40. Which attribute in Html table is used to


give a border to your table?
A. line

Web Programming MCQs (HTML , JAVASCRIPT CSS) By WAHEED


ANWAR
B. border
C. margin-left border
D. All of the above
41.
A.
B.
C.
D.

A table with no border


<table border=0>
<table border=1>
<table border= >
None of the above

42. .. tag is used to define a table


header.
A. <th>
B. <td>
C. <tr>
D. None of the above
43.
A.
B.
C.
D.

A table can be spanned either in


rows
columns
columns or rows
All of the above

44. Which controls will be used in space


between table cells?
A. Celpadding
B. Celspacing
C. Celshifting
D. All of the above
45. .. and .. are used to
define a span in column and rows
respectively.
A. colspan and rowspan
B. celpadding and celspacing
C. either (A) or either (B)
D. neither (A) or nor (B)
46.
A.
B.
C.
D.

<td> tag stands for:


table dimension
table date
table data
None of the above

47. Which element in HTML defines


sections of a web page?
A. table
B. div
C. frame
D. None of the above
48.
A.
B.
C.
D.

The DIV element is a


block-level element
High-level element
low-level element
middle-level element

49. In HTML the DIV element can be found


inside any element that can contain
A. high elements
B. low elements
C. flow elements
D. All of the above
50. From which element has very similar
properties to the DIV element?
A. strong element
B. span element
C. table element
D. All of the above

JavaScript MCQ
1. Javascript is a ______________
A.server side scripting language.
B.client side scripting language.
C.Either (A) or (B)
D.Neither (A) nor (B)
2. Using which tag we insert an JavaScript in
HTML page?
A.<JavaScript type=text/javascript>
B.<script type=text/javascript>
C.<JScript type=text/javascript>
D.<HTMLScript type=text/javascript>
3. Which of the following is not true about
JavaScript?
A.It is a scripting language.
B.It execute with preliminary compilation.
C.It is a lightweight programming language.
D.It can be embedded directly into HTML
pages.
4. Which of the following JavaScript can do?
A.JavaScript can react to events.
B.JavaScript can manipulate HTML elements.
C.JavaScript can be use to validate data.
D.All of the Above
5. What is the output of the following javascript
code? <script type=text/javascript>
x=4+4; document.write(x); </script>
A.44
B.8
C.4
D.Error output
6. Script in an external file and then include in
A.<body></body> section
B.<head></head> section
C.<html></html> section
D.<form></form> section
7. Which section where javascript code can be
placed?

Web Programming MCQs (HTML , JAVASCRIPT CSS) By WAHEED


ANWAR

A.<body></body> section
B.<head></head> section
C.Either (A) or (B)
D.Neither (A) nor (B)

8. What is the correct syntax for referring to an


external script called abc.js?
A.<script href= abc.js>
B.<script name= abc.js>
C.<script src= abc.js>
D.None of the above
9. What is meant by this keyword in
JavaScript?
A.It refers current object
B.It referes previous object
C.It is variable which contains value
D.None of the above
10. Who is to be introduced JavaScript?
A.Microsoft
B.IBM
C.Google
D.Sun Microsystems
11. In JavaScript, common uses is
A.Interact with user using prompt(), alter
B.Client side validation like checking for
C.Creation of complex user interfaces.
D.All of the above
12. _________ keyword is used to declare
variables in javascript.
A.Var
B.Dim
C.String
D.None of the above
13. Which one is the advantages of JavaScript?
A.Simplicity
B.Speed
C.Versatility
D.All of the above
14. Javascript has capability to interact with
A.user
B.control the browser
C.alter the document content
D.All of the above
15. Being client-side reduces the demand on
the website server
A.Server Load
B.Client Load
C.endclient load
D.endserver load
16. The JavaScript file inside the ________ tag in
________ section of HTML document.
A.</script>,</head>
B.<script>,<head>

C.<script>,<title>
D.<script>,<body>

17. Which is the extension of javascript file?


A. .jc
B. .java
C. .js
D. .jp
18. _____ JavaScript statements embedded in
an HTML page can respond to user events such
as mouse-clicks, form input, and page
navigation.
A.Client-side
B.Server-side
C.Local
D.Native
19. What is the correct JavaScript syntax to
write Hello World?
A.System.out.println(Hello World)
B.println (Hello World)
C.document.write(Hello World)
D.response.write(Hello World)
20. Which operator can be used to
Joins(concatenates) two strings and assigns
the joined string to the first operand?
A. &
B. +=
C. +
D. &&
21. What language defines the behavior of a
web page?
A.HTML
B.CSS
C.XML
D.Java Script
22. A single-line comments starts with
A./
B.//
C.\*
D.\\
23. A function in javascript takes
A.parameters
B.operates on them
C.returns the required result
D.All of the above
24. Which event can be generated when data
changes in a control,such as a text field?
A.onchange
B.onwrite
C. changetext
D.None of the above
25. Which event can be generated when the
mouse leaves an element?

Web Programming MCQs (HTML , JAVASCRIPT CSS) By WAHEED


ANWAR

A.onmouseout
B.onmousedown
C.onmousemove
D.onmouseover

26. Which event can be generated when a


drag-and-drop operation is undertaken?
A.ondrop
B.ondrag
C.ondragdrop
D.None of the above