Sei sulla pagina 1di 10

Web Programming MCQ’s (HTML , JAVASCRIPT CSS) By WAHEED ANWAR

1. Which organization defines the Web Standards? a. Server


a. Microsoft Corporation b. Compiler
b. IBM Corporation c. Interpreter
c. World Wide Web Consortium d. Browser
d. Apple Inc.
11. PCs running Windows 3.x will have ____extension for
2. Whichg of the following is used to create web pages? html pages
a. HTML a. .htl
b. C b. .html
c. JVM c. .htm
d. DTD d. .hml

3. HTML is considered as ___ language 12. Which of the following is not an example of browser?
a. Programming Langauge a. Netscape Navigator
b. OOP Language b. Microsoft Bing
c. High Level Language c. Mozilla Firefox
d. Markup Language d. Opera

4. HTML language is a set of markup ___ 13. Who is the primary author of HTML?
a. Attributes a. Brendan Eich
b. Tags b. Tim Berners-Lee
c. Sets c. Web Programmer
d. Groups d. Google Inc

5. HTML tags are used to describe document ____ 14. HTML was first proposed in year ___.
a. Definition a. 1980
b. Language b. 1990
c. Content c. 1995
d. None of these d. 2000

6. HTML document can contain 15. HTML tags are surrounded by ___ brackets
a. Attributes a. Angle
b. Tags b. Square
c. Plain text c. Round
d. All of these d. Curly

7. Page designed in HTML is called a 16. Opening tag of HTML is called


a. Yellow Page a. Ending tag
b. Web Page b. Starting tag
c. Server Page c. Closed tag
d. Front Page d. Pair tags

8. We can write HTML code using ____. Select appropriate 17. HTML document contain one root tag called ____
option(s). a. HEAD
a. VLC Media b. Title
b. Notepad++ c. Body
c. Microsoft PowerPoint d. HTML
d. None of these
18. Basic fundamental block is called as ___
9. HTML document is saved using ____ extension. a. HTML tag
a. .htl b. HTML body
b. .html c. HTML Attribute
c. .hml d. HTML Element
d. .htnl

10. The software that can read and render HTML


documents is
Web Programming MCQ’s (HTML , JAVASCRIPT CSS) By WAHEED ANWAR
19. Is it possible to insert a table within another table? C.<pre text> … </ pre text>
a. Yes, but there must be exactly 2 rows and 2 columns in first table. D. <pre format> … </ pre format>
b. Yes, table can be inserted into cell of another table.
c. Yes, but there must be no border in second table. 28. Which is the correct to create an Arabic numeral list
d. No, it’s not possible. A.<ul type=”1″>
B.<ol type=”1″>
20. What is the usage of alt value in <img> tag? C.<il type=”1″>
a. Alternative text for an Image D. <li type=”1″>
b. Alternative source of an Image
c. Caption of an Image 29. How to add alternative text for an Image?
d. All of above A.<img src = “http://www.mcqsets.com/brand.png”
alternate = “Brand of website” />
21. Which of the following is the correct regarding meta B.<img src = “http://www.mcqsets.com/brand.png” alt
tag in HTML? text = “Brand of website” />
A.<meta> … </meta> C. src = “http://www.mcqsets.com/brand.png” alternate
B.<meta name = ” ” /> text = “Brand of website” />
C.<metadata> … </metadata> D. <img src = “http://www.mcqsets.com/brand.png” alt
D. <metadata name = ” ” /> = “Brand of website” />
22. Which of the following is correct to set “Black” color as 30. How to embedded Audio Files in HTML?
Background of page? A. <embed src = “song.mid” width = “10” height = “15”>
A.bgcolor = “#000000″> B.<embed sound = “mysong.mid” width = “100” height = “15”>
B.<body background = “#000000″> C.<embed audio = “mysong.mid” width = “100” height = “15”>
C.<body Background color = “#000000″> D. <embed music = “mysong.mid” width = “100” height = “15”>
D. All of Above
31. In HTML, Uniform Resource Locator (URL) is used to
23. Which of the following is correct to align H1 tag to a. To create a frame document .
Right Alignment b. To create a image map in the webpage.
A.<h1 align = “right”> … c. To customize the image in the webpage.
B.<h1 alignment = “right”> … d. To identify a name or a resource on the internet.
C.<h1 tag align = “right”> … </h1>
32. CSS is an acronym for
D. H1 cannot make Right Alignment
a. Cascading Style Sheet
24. Which of the following is correct to change font face in b. Costume Style Sheet
Web Page c. Cascading System Style
A.<font = “font name”> … d. None of the Above
B.<font name = “font name”> … </font>
33. Which of the following protocol is not used in the Internet
C.<font face = “font name”> … </font>
a. Telnet
D. Font Face cannot change
b. WIRL
25. Which of the following is incorrect regarding Logical c. HTTP
styles? d. Gopher
A.Code looks like teletype
34. Who invented World Wide Web (WWW)?
B.Sample looks like teletype
a. Blaise Pascal
C.Keyboard looks like teletype
b. Charles Babbage
D. Variable looks like teletype
c. Herman Hollerith
26. Which of the following is correct character entities for d. Tim Berners-Lee
“Copyright” symbol?
35. What is the use of Web Font in HTML ?
A.&#149;
a. that is the core font that is use to develop Web Pages.
B.&#159;
b. that enables to use fonts over the Web without
C.&#169;
installation.
D. &#179;
c. that is the special font that developed by Microsoft
27. Which tag is used to display Preformatted texts? Corp.
A.<pre> … </ pre> d. All of the Above.
B.<prefor> … </ prefor>
Web Programming MCQ’s (HTML , JAVASCRIPT CSS) By WAHEED ANWAR
36. What is <tt> tag in HTML? 45. Which of the following is correct HTML for inserting an
a. It renders fonts as teletype text font style. image?
b. It renders fonts as truetype text font style. a. <image source= “www.mcqsets.com/admin.jpg” alt=
c. It renders fonts as truncate text font style. “This is me” />
d. None of the Above. b. <img src= “www.mcqsets.com/admin.jpg” alt= “This is
me” />
37. What is the use of Forms in HTML?
c. <img source= “www.mcqsets.com/admin.jpg” alt= “This
a. to display contents of email.
is me” />
b. to display animation effect.
d. <img alt= “This is me”>www.mcqsets.com/admin.jpg
c. to collect user’s input.
d. None of the Above. 46. Choose the correct HTML tag to left-align the content
of a cell.
38. What is the use of iframe in HTML?
a. <tdleft>
a. to display a web page within a web page.
b. <td leftalign>
b. to display a web page with animation effect.
c. valign= “left”>
c. to display a web page without browser.
d. <td align= “left”>
d. All of the Above.
47. Which tag is used to lists the items with bullets?
39. FTP is an acronym for
a. <bullet>…</bullet>
a. File Transaction Protocol
b. <list>…</list>
b. File Transmission Protocol
c. <ul>…
c. File Translation Protocol
d. <ol>…</ol>
d. File Transfer Protocol
48. Pick the odd out
40. Which HTML Tag will use to scroll a text in web page?
a. Table
a. <marquee> … </marquee>
b. TR
b. <scroll> … </scroll>
c. TD
c. <round> … </round>
d. Form
d. <go> … </go>
49. The first page of a website is called
41. How to define the link should open in new page in
a. Design
HTML?
a. <a href = “http://www.mcqsets.com/” target = “blank”>Click Here</a>
b. Home page
b. <a href = “http://www.mcqsets.com/” target = “_blank”> Click Here </a> c. First page
c. <a href = “http://www.mcqsets.com/” target = “#blank”> Click Here </a> d. Main page
d. <a href = “http://www.mcqsets.com/” target = “@blank”> Click Here </a>
50. The version of HTML is
42. How to set a picture as a background web page?
a. HTML0
a. <body background= “bgimage.gif”>
b. HTML1
b. <body background image= “bgimage.gif”>
c. HTML2
c. <background= “bgimage.gif”>
d. All of these
d. <background image= “bgimage.gif”>
51. Head tag is used for?
43. Which of following HTML Tag will inserting a line
a. Writing style
break?
b. Writing Java Script
a. <p>
c. Including CSS, JS Files
b. <line>
d. All of these
c. <br>
d. <break > 52. How many heading tags are supported by HTML?
a. 3
44. Which of the following tags are related to Table in
b. 4
HTML ?
c. 5
a. <table> <row> <column>
b. <table> <tr> <td> d. 6
c. <table> <head> <body> 53. Which is the largest heading tag?
d. <table> <header> <footer> a. H1
b. H3
Web Programming MCQ’s (HTML , JAVASCRIPT CSS) By WAHEED ANWAR
c. H4 b. SMTP
d. H6 c. SMIP
d. SMOP
54. Which of the following are attributes of Font tag?
a. Face 63. …………………. is the incoming e-mail server.
b. Size a. POP
c. Color b. SMTP
d. All of above c. SMIP
d. PPP
55. ……………………. connects web pages.
a. Connector 64. ………………….. is a uniform naming scheme for locating
b. Link resources on the web.
c. Hyperlink a. URL
d. None of the above b. HTTP
c. WEBNAME
56. Internet is ………………………….
d. RESOURCENAME
a. a network of networks
b. an ocean of resources waiting to be mined 65. The attribute ……………… of <BODY> tag sets color of
c. a cooperative anarchy hypertext links.
d. all of the above a. link
b. vlink
57. ……………… is suitable for remote administration of a
c. alink
computer.
d. hlink
a. FTP
b. Shell 67. This is a networking device that passes data between
c. Remote Procedure Call networks having similar functions but dissimilar
d. Telnet implementations.
a. Hub
58. Title tag is nested within the ………………….. tag.
b. Modem
a. Body
c. Gateway
b. Head
d. Repeater
c. List
d. Table 68. In order to connect to ISP’s server you need …….
a. Hand gloves
59. ……………….. is a web’s native protocol.
b. Printer
a. SLIP
c. User name and Password
b. TCP/IP
d. None of the above
c. HTTP
d. PPP 69. DNS translates ………
a. domain name into IP
60. The Internet uses the …………………… as the protocol
b. IP into domain name
engine.
c. both a & b
a. SLIP
d. domain name into physical address
b. HTTP
c. TCP/IP 70. In order to upload a HTML file to a web server, you use
d. PPP a. HTTP
b. SMTP
61. A ……………………….. is a symbolic name a network
c. SIP
administrator assigns to a machine.
d. FTP
a. URL
b. DNS 71. IEEE stands for ……..
c. IP address a. Institute of estimated elevator efficiency
d. Host name b. Institute of electrical and economical engineers
c. Institute of Eurasia engineering event
62. Which of the following protocol is used for e-mail
d. Institute of electrical and electronics engineers
services.
a. SMAP
Web Programming MCQ’s (HTML , JAVASCRIPT CSS) By WAHEED ANWAR
72. The regional networks are connected to the corporate c. i and ii
networks, this is also called as …….. d. ii and iii
a. Backbone
81. A computer that translates …………………… of another
b. LAN COM
computer into an …………… and vice versa, upon request is
c. WAN COM
known as DNS server.
d. Intranet
a. Domain name and IP address
73. Once the email is sent, the message is broken into b. Host address and Domain name
pieces called ……………… c. Domain name and server address
a. Packets d. Server name and IP address
b. Process
82. Identify the uses of URI in HTML.: i) Link to another
c. Digits
document or resource ii) Link to external style sheet or
d. Bytes
script iii) Create an image map
74. ………………. is known as father of World Wide Web. a. i and ii
a. Robert Cailliau b. i and iii
b. Tim Thompson c. ii and iii
c. Charles Darwin d. i , ii and iii
d. Tim Berners-Lee
83. An ordered list is a …………………. list and an unordered
75. ……………. are the physical meeting points of list is a …………….. list.
backbones. a. bulleted & numbered
a. Gateways b. bulleted & tabular
b. Pathways c. tabular & numbered
c. Routers d. numbered & bulleted
d. Domains
84. Linking to another place in the same or another web
76. CuteFTP is an example of …………client program. page requires two A (Anchor) tags, the first with the
a. FTP ……………… attribute and the second the
b. Telnet ……………….attribute.
c. Web browser a. NAME & LINK
d. Mail b. LINK & HREF
c. HREF & NAME
77. Which of the following is best suitable for remote
d. TARGET & VALUE
administration of a computer?
a. Telnet 85. What type of information should you avoid including
b. WAIS on your Web site?
c. Browsers a. Links to sites of interest
d. HTML b. Private personal information
c. Work and academic experience
78. The leading bit pattern of class B network is ………………
d. Graphical
a. 0
b. 10 86. Which of the following web elements should you know
c. 110 about before building your web site?
d. 11 a. The web audience
b. The operating environment of your ISP
79. The …………………. attribute adds space within each cell. c. The operating system of your visitor
a. CELL SPACING d. Each consideration should determine your web design
b. CELL PADDING choices
c. WIDTH
d. ALIGN 87. What is the language of the Web?
a. Basic
80. Which of the following are two popular protocols that b. C++
allow home computer users to connect their computers to c. MS Visual Basic
the internet as per hosts? i) SLIP ii) PPPiii) HTTP iv) SMTP d. HTML
a. iii and iv
b. ii and iii
Web Programming MCQ’s (HTML , JAVASCRIPT CSS) By WAHEED ANWAR
88. What does an HTML tag do? B. <div>
a. It specifies formatting and layout instructions for your C. <frame>
web page. D. None of the above
b. It hides programming instructions from view. 6. The Heading tag and Paragraph tag can be
c. It determines the organizational structure of your Web represented as
site. A. <head> and <para>
d. It connects your web site to an operating environment. B. <hr> and <pr>
C. <h1> and <p>
89. A Web document is broken into sections. What are the D. None of the above
tags called that create these sections?
a. Structure tags 7. The HTML syntax of HTML5 requires a ………….
b. HTML tags to be specified to ensure that the browser renders the
c. Heading tags page in standard mode.
d. Body tags A. DOCTYPE
B. HEAD
90. What should be the first and last pair of tags in your C. BODY
Web document? D. TITLE
a. <html></html> and <body></body>
b. <start><end> and <body></body> 8. Which tag is used to identify the beginning and end
c. <head><body> and <title></title> of the HTML document?
d. <title></title> and <body<>/body> A. <html>
B. <body>
C. <title>
D. None of the above
1. What can be define within a single font tag :
A. Only face 9. One of the most popular way is to specify
B. Only size character-set using a
C. Only color A. meta data
D. All of the above B. meta element
2. To change default font face or size of a Web-page, C. meta value
use : D. None of the above
A. base tag
B. basefont tag 10. The doctype declaration for the HTML is
C. baseface tag A. case-sensitive
D. None of the above B. case-insensitive
C. case-impsensitive
3. Select true statement: D. None of the above
Statement 1:You can assign multiple valuest to face
attribute of font tag. 11. The sets of HTML tag is
Statement 2: If you specify a font name as face value A. <html></html>
of font tag, that is not installed on users computer, text B. <head></head>
will be displayed in browser’s default font. C. <title></title>
A. Only Statement 1 is true. D. All of the above
B. Only Statement 2 is true.
C. Both, Statement 1 and Statement 2 are true. 12. A list which is provided with numeric digit is
D. Neither, Statement 1 not Statement 2 is true. called an
A. Ordered List
4. There are ……… sets of HTML tags that form the B. Unordered List
basic structure needed for every HTML file: C. Definition List
A. one D. None of the above
B. two
C. three 13. An Ordered List can be represented as
D. four A. <ol>
B. <ul>
5. Which tag is used to a command that is used to C. <li>
instruct the computer (specifically browser)? D. <el>
A. <html>
Web Programming MCQ’s (HTML , JAVASCRIPT CSS) By WAHEED ANWAR
14. A list which is provided with a bullet(a black dot) B. MD=”DSS1:some text”
is called an C. MD=”SHA512:some text”
A. Ordered List D. Any of the above
B. Unordered List
C. Definition List 23. Which one is the mandatory attribute of the <img>
D. None of the above tag?
A. SRC
15. How many list of HTML is/are B. HREF
A. one C. ID
B. two D. ALT
C. three
D. four 24. Statement1:The <IMG> tag is used to incorporate
in-line graphics (typically icons or small graphics)
16. Defination list can be defined as : into an HTML document.
A. <ol> Statement2:The <IMG> element is also intended for
B. <ul> embedding other HTML text.
C. <dl> Statement 3:For large figures with captions and text
D. None of the Above flow see FIG element.
A. Statement 1 and Statement 2 are true.
17. What is the correct HTML for inserting an image? B. Statement 2 and statement 3 are true.
A. <image src=”image.gif” alt=”MyImage” /> C. Statement 1 and statement 3 are true.
B. <img src=”image.gif” alt=”MyImage” /> D. All three statements are true.
C. <img alt=”MyImage”>image.gif</img>
D. <pic src=”image.gif” alt=”MyImage” /> 25. Which tag is used to define an image in HTML?
A. <img>
18. What does vlink mean ? B. <image>
A. visited link C. <pic>
B. unvisited link D. None of the above
C. active link
D. vertical link 26. Which type of parameter specify the path where
your image is placed?
19. one attribute is used to identify an image as image A. path
map? B. scr
A. MAP C. src
B. SMAP D. None of the above
C. ISMAP
D. IMAP 27. GIF stands for:
A. Graph Interchange Format
20. Which one attribute is used to send the coordinate B. Graphics Interlinked Format
of image to the server When the user clicks on the C. Graphics Interchange Format
image? D. None of the above
A. COORD
B. SMAP 28. Which attribute can be used to position the image?
C. SIMAP A. position attribute
D. ISMAP B. align attribute
C. margin attribute
21. If you want to be sure that the image is indeed the D. None of the above
same one that the author intended, and hasn’t been
modified in any way, which one attribute inside 29. The ……….. and ………….indicates vertical
<img> tag is used? space and horizontal space respectively.
A. MD A. verspace and horspace
B. SD B. vspace and hspace
C. NOCHANGE C. vertspace and hortspace
D. LOCK D. None of the above

22. The value of MD attribute of <img> tag can be 30. The <img> tag attributes are
A. MD=”MD5:some text” A. Size attribute
Web Programming MCQ’s (HTML , JAVASCRIPT CSS) By WAHEED ANWAR
B. Spacing attribute 39. Table data may contain
C. Border attribute A. text
D. All of the above B. links
C. tables
31. Which attribute define the width and height of the D. All of the above
image?
A. Size attribute 40. Which attribute in Html table is used to give a
B. length attribute border to your table?
C. margin attribute A. line
D. All of the above B. border
C. margin-left border
32. Which attribute can be created between image and D. All of the above
its surrounding text by specifying horizontal and
vertical space? 41. A table with no border
A. space attribute A. <table border=”0″>
B. whitespace attribute B. <table border=”1″>
C. backspace attribute C. <table border=” “>
D. All of the above D. None of the above

33. Which address is include the entire pathname? 42. ….. tag is used to define a table header.
A. Relative A. <th>
B. Mixed B. <td>
C. Absolute C. <tr>
D. None of the above D. None of the above

34. PNG stands for: 43. A table can be spanned either in


A. Portable Network Graphic A. rows
B. Pivot Network Graphic B. columns
C. Pichart Network Graphic C. columns or rows
D. Pythagorus Network Graphic D. All of the above

35. HTML provides a functionality to connect one or 44. Which controls will be used in space between
more pages in web-pages or resources. table cells?
A. link A. Celpadding
B. src B. Celspacing
C. node C. Celshifting
D. tree D. All of the above

36. The <img> tag is supported by 45. ……….. and ………….. are used to define a span
A. internet explorer in column and rows respectively.
B. mozilla firefox A. ‘colspan’ and ‘rowspan’
C. google chrome B. ‘celpadding’ and ‘celspacing’
D. All of the above C. either (A) or either (B)
D. neither (A) or nor (B)
37. HTML provides which control to use arranging
text and also in defining the things more 46. <td> tag stands for:
understandable manner. A. table dimension
A. Tables B. table date
B. Frames C. table data
C. Div D. None of the above
D. None of the above
47. Which element in HTML defines sections of a
38. A table contains rows which is defined by web page?
A. <tr> tag A. table
B. <td> tag B. div
C. <th> tag C. frame
D. None of the above D. None of the above
Web Programming MCQ’s (HTML , JAVASCRIPT CSS) By WAHEED ANWAR
48. The DIV element is a C.<html>…</html> section
A. block-level element D.<form>…</form> section
B. High-level element
C. low-level element 7. Which section where javascript code can be placed?
D. middle-level element A.<body>…</body> section
B.<head>…</head> section
49. In HTML the DIV element can be found inside C.Either (A) or (B)
any element that can contain D.Neither (A) nor (B)
A. high elements
B. low elements 8. What is the correct syntax for referring to an external
C. flow elements script called ” abc.js”?
D. All of the above A.<script href=” abc.js”>
B.<script name=” abc.js”>
50. From which element has very similar properties to C.<script src=” abc.js”>
the DIV element? D.None of the above
A. strong element
B. span element 9. What is meant by “this” keyword in JavaScript?
C. table element A.It refers current object
D. All of the above B.It referes previous object
C.It is variable which contains value
JavaScript MCQ D.None of the above
1. Javascript is a ______________ 10. Who is to be introduced JavaScript?
A.server side scripting language. A.Microsoft
B.client side scripting language. B.IBM
C.Either (A) or (B) C.Google
D.Neither (A) nor (B) D.Sun Microsystems
2. Using which tag we insert an JavaScript in HTML page? 11. In JavaScript, common uses is
A.<JavaScript type=”text/javascript”> A.Interact with user using prompt(), alter
B.<script type=”text/javascript”> B.Client side validation like checking for
C.<JScript type=”text/javascript”> C.Creation of complex user interfaces.
D.<HTMLScript type=”text/javascript”> D.All of the above
3. Which of the following is not true about JavaScript? 12. _________ keyword is used to declare variables in
A.It is a scripting language. javascript.
B.It execute with preliminary compilation. A.Var
C.It is a lightweight programming language. B.Dim
D.It can be embedded directly into HTML pages. C.String
4. Which of the following JavaScript can do? D.None of the above
A.JavaScript can react to events. 13. Which one is the advantages of JavaScript?
B.JavaScript can manipulate HTML elements. A.Simplicity
C.JavaScript can be use to validate data. B.Speed
D.All of the Above C.Versatility
5. What is the output of the following javascript code? D.All of the above
<script type=”text/javascript”> x=4+”4″; 14. Javascript has capability to interact with
document.write(x); </script> A.user
A.44 B.control the browser
B.8 C.alter the document content
C.4 D.All of the above
D.Error output
15. Being client-side reduces the demand on the website
6. Script in an external file and then include in server
A.<body>…</body> section A.Server Load
B.<head>…</head> section B.Client Load
Web Programming MCQ’s (HTML , JAVASCRIPT CSS) By WAHEED ANWAR
C.endclient load 24. Which event can be generated when data changes in a
D.endserver load control,such as a text field?
16. The JavaScript file inside the ________ tag in ________ A.onchange
section of HTML document. B.onwrite
A.</script>,</head> C. changetext
B.<script>,<head> D.None of the above
C.<script>,<title>
25. Which event can be generated when the mouse leaves
D.<script>,<body>
an element?
17. Which is the extension of javascript file? A.onmouseout
A. .jc B.onmousedown
B. .java C.onmousemove
C. .js D.onmouseover
D. .jp
26. Which event can be generated when a drag-and-drop
18. _____ JavaScript statements embedded in an HTML operation is undertaken?
page can respond to user events such as mouse-clicks, A.ondrop
form input, and page navigation. B.ondrag
A.Client-side C.ondragdrop
B.Server-side D.None of the above
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

Potrebbero piacerti anche