Web Programming MCQ’s (HTML , JAVASCRIPT CSS) By WAHEEDANWAR 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 Ÿ.mcqsets. Which of the following protocol is not used in the Internet a.<meta> … </meta> B. 20. Who invented World Wide Web (WWW)? a. Which of the following is correct character entities for “Copyright” symbol? A.<h1 tag align = “right”> … </h1> D. Caption of an Image d.png” alternate = “Brand of website” /> B. <li type=”1″> 29. Variable looks like teletype 26. Which of the following is the correct regarding meta tag in HTML? A. None of the Above 33.mcqsets. H1 cannot make Right Alignment 24.mid” width = “10” height = “15”> B.<img src = “http://www.mcqsets. Which of the following is incorrect regarding Logical styles? A.<h1 align = “right”> … B.<ul type=”1″> B. What is the usage of alt value in <img> tag? a. b.png” alt = “Brand of website” /> 30. <pre format> … </ pre format> 28. Telnet b. Cascading System Style d. d.png” alt text = “Brand of website” /> C. All of Above 23.<font face = “font name”> … </font> D.<font name = “font name”> … </font> C.mcqsets. No. <img src = “http://www. c. Yes. d. Alternative source of an Image c. Is it possible to insert a table within another table? a. Which of the following is correct to set “Black” color as Background of page? A.©. Which of the following is correct to change font face in Web Page A. Cascading Style Sheet b. To customize the image in the webpage.<body background = “#000000″> C. but there must be exactly 2 rows and 2 columns in first table. How to add alternative text for an Image? A.<metadata> … </metadata> D. but there must be no border in second table. How to embedded Audio Files in HTML? A. 32. JAVASCRIPT CSS) By WAHEED ANWAR 19. Font Face cannot change 25.<pre> … </ pre> B.<il type=”1″> D.png” alternate text = “Brand of website” /> D. CSS is an acronym for a. In HTML. D.mid” width = “100” height = “15”> C.com/brand. it’s not possible. <metadata name = ” ” /> 22.<font = “font name”> … B. C. Uniform Resource Locator (URL) is used to a.bgcolor = “#000000″> B.<ol type=”1″> C.mid” width = “100” height = “15”> D. src = “http://www. <embed music = “mysong. To create a frame document .•.mid” width = “100” height = “15”> 31. HTTP d.<pre text> … </ pre text> D. Costume Style Sheet c. Which is the correct to create an Arabic numeral list A. c.<h1 alignment = “right”> … C. ³.Keyboard looks like teletype D. WIRL c. Blaise Pascal . Which of the following is correct to align H1 tag to Right Alignment A.Code looks like teletype B.Sample looks like teletype C. To create a image map in the webpage.<body Background color = “#000000″> D.com/brand. Gopher 34. To identify a name or a resource on the internet. Alternative text for an Image b. Yes.Web Programming MCQ’s (HTML .com/brand. Which tag is used to display Preformatted texts? A. Yes. B.<meta name = ” ” /> C. b.<prefor> … </ prefor> C.<img src = “http://www.com/brand.<embed audio = “mysong. <embed src = “song. 27. table can be inserted into cell of another table. All of above 21.<embed sound = “mysong. <body background= “bgimage.com/admin.mcqsets. c.jpg” alt= “This is me” /> d. <td align= “left”> 47. File Transfer Protocol 40.mcqsets.com/admin. to collect user’s input. <body background image= “bgimage. The version of HTML is a.com/” target = “@blank”> Click Here </a> 42. <background image= “bgimage. It renders fonts as truncate text font style. d.com/” target = “#blank”> Click Here </a> d. What is <tt> tag in HTML? a. <break > 44. JAVASCRIPT CSS) By WAHEED ANWAR b. <table> <tr> <td> c. to display a web page without browser. Which tag is used to lists the items with bullets? a. How to set a picture as a background web page? a. <ol>…</ol> 48. 37. 36. All of the Above. <line> c. valign= “left”> d. that is the special font that developed by Microsoft Corp.Web Programming MCQ’s (HTML .jpg” alt= “This is me” /> c. Herman Hollerith d.com/” target = “_blank”> Click Here </a> c. Choose the correct HTML tag to left-align the content of a cell. that is the core font that is use to develop Web Pages. HTML0 b. What is the use of Forms in HTML? a. File Translation Protocol d.com/admin. File Transmission Protocol c. <a href = “http://www. <bullet>…</bullet> b. First page d.jpg 46. Design b.gif”> d. Which of following HTML Tag will inserting a line break? a.mcqsets. What is the use of Web Font in HTML ? a. File Transaction Protocol b. Main page 50. Form 49. <table> <row> <column> b. <img source= “www. Pick the odd out a.gif”> b. Which of the following is correct HTML for inserting an image? a. <table> <head> <body> d. <a href = “http://www. Table b. Charles Babbage c. HTML1 . None of the Above. Tim Berners-Lee 35. c.com/admin.gif”> 43. TR c. <round> … </round> d. The first page of a website is called a. <a href = “http://www.mcqsets. to display animation effect. <a href = “http://www. b. It renders fonts as truetype text font style. Home page c. How to define the link should open in new page in HTML? a. <td leftalign> c. <list>…</list> c. 39. It renders fonts as teletype text font style. <marquee> … </marquee> b. c. d. <p> b. b. What is the use of iframe in HTML? a.gif”> c. <img src= “www.com/” target = “blank”>Click Here</a> b. All of the Above. None of the Above. d.mcqsets. a. <ul>… d. <go> … </go> 41. to display contents of email. d. <image source= “www. <background= “bgimage. <tdleft> b. TD d. 38. that enables to use fonts over the Web without installation. <table> <header> <footer> 45.jpg” alt= “This is me” /> b. Which of the following tags are related to Table in HTML ? a.mcqsets.mcqsets. <br> d. to display a web page within a web page. b. <scroll> … </scroll> c. to display a web page with animation effect. Which HTML Tag will use to scroll a text in web page? a. <img alt= “This is me”>www. c.mcqsets. b. FTP is an acronym for a. an ocean of resources waiting to be mined c. HTML2 d. SMOP 63. IP into domain name . SMIP d. This is a networking device that passes data between networks having similar functions but dissimilar implementations.. TCP/IP c. Head tag is used for? a. Writing Java Script c. PPP 64. a. is the incoming e-mail server. Head c.Web Programming MCQ’s (HTML . Printer c. tag. SMTP c. URL b. HTTP d. a. URL b. Which of the following protocol is used for e-mail services. DNS translates ……… a.. Link c. 4 c. Modem c. Telnet 58. SMIP d. hlink 67. List d. IP address d. is a symbolic name a network administrator assigns to a machine. HTTP c. None of the above 69. is a uniform naming scheme for locating resources on the web. FTP b. Including CSS. User name and Password d. How many heading tags are supported by HTML? a. POP b. connects web pages. All of above 55. RESOURCENAME 65. JS Files d. a. a. SLIP b. a. WEBNAME d. a. Which of the following are attributes of Font tag? a. All of these 51. SMTP c. H6 54. a. The attribute ……………… of <BODY> tag sets color of hypertext links. alink d. a network of networks b.. a cooperative anarchy d. 6 53. a. Internet is …………………………. Repeater 68. is a web’s native protocol. a. The Internet uses the …………………… as the protocol engine. Title tag is nested within the …………………. All of these 52. domain name into IP b. None of the above 56. In order to connect to ISP’s server you need ……. a. a. Color d. PPP 61. Hand gloves b. Host name 62. Body b. A ………………………. 3 b. Shell c. H1 b. PPP 60. 5 d. a. SMAP b. TCP/IP d. JAVASCRIPT CSS) By WAHEED ANWAR c. Gateway d. link b. Hub b. Size c. Table 59. SLIP b.. a. ………………. vlink c. H3 c. Connector b. Face b. …………………. H4 d. …………………. all of the above 57. Remote Procedure Call d. Writing style b. DNS c. HTTP c. ……………………. Which is the largest heading tag? a. Hyperlink d. ……………… is suitable for remote administration of a computer. i and iii c. WIDTH d. are the physical meeting points of backbones. LAN COM c. SMTP c. Bytes 74. list. 110 d. CELL PADDING c. iii and iv b. HREF & NAME d. the message is broken into pieces called ……………… a. a. Gateways b. Digits d. Institute of Eurasia engineering event d.. A computer that translates …………………… of another computer into an …………… and vice versa. Robert Cailliau b. this is also called as ……. bulleted & tabular c. Linking to another place in the same or another web page requires two A (Anchor) tags. Web browser d. WAN COM d. Tim Berners-Lee 75. Institute of electrical and economical engineers c. ALIGN 80. you use a.: i) Link to another document or resource ii) Link to external style sheet or script iii) Create an image map a. upon request is known as DNS server. Process c. Browsers d. Pathways c. WAIS c. i and ii d. bulleted & numbered b. Domain name and IP address b. Domain name and server address d. a. Mail 77. ………………. Once the email is sent. attribute adds space within each cell. The …………………. NAME & LINK b. CuteFTP is an example of …………client program. Telnet c. a. Telnet b. JAVASCRIPT CSS) By WAHEED ANWAR c. tabular & numbered d. Which of the following is best suitable for remote administration of a computer? a. 0 b. is known as father of World Wide Web. The leading bit pattern of class B network is ……………… a. What type of information should you avoid including on your Web site? . The regional networks are connected to the corporate networks. Charles Darwin d. IEEE stands for ……. a. 10 c. An ordered list is a …………………. a. domain name into physical address 70. i . the first with the ……………… attribute and the second the ………………. Packets b. 11 79. In order to upload a HTML file to a web server.. 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.attribute. i and ii b. ii and iii 83. a. a. list and an unordered list is a ……………. numbered & bulleted 84. ……………. Host address and Domain name c. SIP d. Routers d. FTP b. CELL SPACING b. TARGET & VALUE 85. a.. Domains 76. LINK & HREF c. Tim Thompson c. Server name and IP address 82. ii and iii d. FTP 71. HTTP b.Web Programming MCQ’s (HTML . a. Institute of electrical and electronics engineers 72. Backbone b. HTML 78. Intranet 73. Identify the uses of URI in HTML. Institute of estimated elevator efficiency b. both a & b d. ii and iii 81. ii and iii c. HTML 88. <title> D. text will be displayed in browser’s default font. d. None of the above 3. The web audience b. None of the above 9. BODY D. What can be define within a single font tag : A. JAVASCRIPT CSS) By WAHEED ANWAR a. use : A. two C. Only color D. All of the above 2. three D. Only Statement 2 is true. <html> B. Only size C. <head> and <para> B. <body> C. Statement 2: If you specify a font name as face value of font tag. One of the most popular way is to specify character-set using a A. Which of the following web elements should you know about before building your web site? a. that is not installed on users computer. Work and academic experience d. A. The HTML syntax of HTML5 requires a …………. b. The operating system of your visitor d. MS Visual Basic d. What are the tags called that create these sections? a. There are ……… sets of HTML tags that form the basic structure needed for every HTML file: A. C++ c. It specifies formatting and layout instructions for your web page. The Heading tag and Paragraph tag can be represented as A. <head><body> and <title></title> d. <frame> D. B. It connects your web site to an operating environment. Private personal information c. Select true statement: Statement 1:You can assign multiple valuest to face attribute of font tag. <title></title> and <body<>/body> 1. Only Statement 1 is true. It determines the organizational structure of your Web site. Statement 1 not Statement 2 is true. Heading tags d. A Web document is broken into sections. base tag B. 4. Neither. None of the above 6. <html></html> and <body></body> b. <start><end> and <body></body> c. Both. c. <div> C. meta element . Which tag is used to a command that is used to instruct the computer (specifically browser)? A. to be specified to ensure that the browser renders the page in standard mode. TITLE 8. <html> B. Statement 1 and Statement 2 are true. Structure tags b. baseface tag D. <hr> and <pr> C. To change default font face or size of a Web-page. one B. It hides programming instructions from view. Body tags 90. meta data B. None of the above 7. basefont tag C. What should be the first and last pair of tags in your Web document? a. What is the language of the Web? a. <h1> and <p> D. A. Graphical 86.Web Programming MCQ’s (HTML . D. What does an HTML tag do? a. C. HEAD C. Basic b. Only face B. DOCTYPE B. Each consideration should determine your web design choices 87. Links to sites of interest b. The operating environment of your ISP c. 89. Which tag is used to identify the beginning and end of the HTML document? A. four 5. HTML tags c. Statement 3:For large figures with captions and text flow see FIG element. JAVASCRIPT CSS) By WAHEED ANWAR C. SMAP C. D. The doctype declaration for the HTML 18. Ordered List B.gif” alt=”MyImage” /> 10. Defination list can be defined as : <ol> <ul> <dl> None of the Above 17. NOCHANGE D.gif” alt=”MyImage” /> C. A. A. C. is A. <img alt=”MyImage”>image. If you want to be sure that the image is indeed the same one that the author intended. What is the correct HTML for inserting an image? A. MD B. IMAP 20. meta value D. B. Unordered List C.gif</img> What does vlink mean ? visited link unvisited link active link vertical link 19. SD C. C. Which one is the mandatory attribute of the <img> tag? A. one attribute is used to identify an image as image map? A. MD=”DSS1:some text” C. SMAP C. LOCK 22. and hasn’t been modified in any way. Statement2:The <IMG> element is also intended for embedding other HTML text. ID D. A list which is provided with a bullet(a black dot) is called an A. An Ordered List can be represented as <ol> <ul> <li> <el> 14. How many list of HTML is/are one two three four 16. MAP B. Which one attribute is used to send the coordinate of image to the server When the user clicks on the image? A. D. B. A. MD=”SHA512:some text” D. ISMAP 21. SRC B. Unordered List C. None of the above 15. SIMAP D. D. <pic src=”image. ISMAP D. B. A.Web Programming MCQ’s (HTML . <img src=”image. COORD B. D. ALT 24. D. C. D. Statement1:The <IMG> tag is used to incorporate in-line graphics (typically icons or small graphics) into an HTML document. Statement 1 and Statement 2 are true. which one attribute inside <img> tag is used? A. Definition List D. None of the above D. MD=”MD5:some text” B. B.gif” alt=”MyImage” /> B. HREF C. A. B. C. B. C. None of the above 13. . A. 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. Definition List D. Ordered List B. 11. <image src=”image. The value of MD attribute of <img> tag can be A. C. Any of the above 23. D. Which address is include the entire pathname? A. A. Which type of parameter specify the path where your image is placed? A. A. A. 38. C. line . D. tree 36. C. 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. by A. C. whitespace attribute C. Mixed C. path B. None of the above 37. verspace and horspace B. align attribute C. src C. B. D. HTML provides which control to use arranging text and also in defining the things more understandable manner. None of the above 30. GIF stands for: Graph Interchange Format Graphics Interlinked Format Graphics Interchange Format None of the above 28. C. B. margin attribute D. Which attribute define the width and height of the image? A. A. C. and ………….. B. Statement 2 and statement 3 are true. None of the above 34. 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. Div D. None of the above 33. B. src D. All of the above 32. None of the above 26.Web Programming MCQ’s (HTML . <image> C. Tables B.indicates vertical space and horizontal space respectively. A. A. D. Frames C. Relative B. Statement 1 and statement 3 are true. <img> B. space attribute B. HTML provides a functionality to connect one or more pages in web-pages or resources. Which attribute can be used to position the image? A. <pic> D. The <img> tag is supported by internet explorer mozilla firefox google chrome All of the above 29. D. C. None of the above PNG stands for: Portable Network Graphic Pivot Network Graphic Pichart Network Graphic Pythagorus Network Graphic 35. length attribute C. A. C. Which tag is used to define an image in HTML? A. B. Absolute D. D. Size attribute B. JAVASCRIPT CSS) By WAHEED ANWAR B. margin attribute D. A. The ………. 27. vspace and hspace C. vertspace and hortspace D. node D. B. D. link B. position attribute B. A. A table contains rows which is defined 39. Which attribute in Html table is used to give a border to your table? A. backspace attribute D. All of the above 25. scr C. All three statements are true. Javascript is a ______________ A. </script> A. A. Using which tag we insert an JavaScript in HTML page? A. D.<head>…</head> section C. Which element in HTML defines sections of a web page? A. div C. are used to define a span in column and rows respectively. ‘colspan’ and ‘rowspan’ B. All of the above JavaScript MCQ 1. C. B.Either (A) or (B) D. C. <td> C. C.It is a scripting language. D. <td> tag stands for: table dimension table date table data None of the above 47. A table can be spanned either in rows columns columns or rows All of the above 44.. A. The DIV element is a block-level element High-level element low-level element middle-level element 49. Celpadding B. tag is used to define a table header. table element D. Celshifting D.Error output 6. A.4 D..JavaScript can manipulate HTML elements. What is the output of the following javascript code? <script type=”text/javascript”> x=4+”4″.server side scripting language. ‘celpadding’ and ‘celspacing’ C. A.<form>…</form> section 7. From which element has very similar properties to the DIV element? A. <th> B. Script in an external file and then include in A.8 C. margin-left border D. frame D.JavaScript can be use to validate data. flow elements D. Which of the following JavaScript can do? A.<JScript type=”text/javascript”> D. All of the above 50. C.<body>…</body> section B. table B. All of the above 45. B. None of the above 43. document. All of the above 41. D. A.44 B. 4. D. D.Web Programming MCQ’s (HTML . B.Neither (A) nor (B) 2. None of the above 48.JavaScript can react to events. border C. In HTML the DIV element can be found inside any element that can contain A.client side scripting language.<script type=”text/javascript”> C. either (A) or either (B) D. JAVASCRIPT CSS) By WAHEED ANWAR B. and …………. low elements C. D.. C. A. B. B.It is a lightweight programming language.It can be embedded directly into HTML pages. C. <tr> D.<HTMLScript type=”text/javascript”> 3.It execute with preliminary compilation.write(x).<html>…</html> section D. span element C. high elements B. ……….<JavaScript type=”text/javascript”> B. Which controls will be used in space between table cells? A. neither (A) or nor (B) 46. Which of the following is not true about JavaScript? A.All of the Above 5. strong element B. …. A table with no border <table border=”0″> <table border=”1″> <table border=” “> None of the above 42. C. B. Which section where javascript code can be placed? . B. Celspacing C. CSS C. The JavaScript file inside the ________ tag in ________ section of HTML document.js”> C.Versatility D.write(“Hello World”) 20. Who is to be introduced JavaScript? A. What is the correct syntax for referring to an external script called ” abc.write(“Hello World”) D.Java Script 22.Sun Microsystems 11.println (“Hello World”) C. In JavaScript.parameters B.All of the above 12.js”> D.All of the above 24. changetext D.document. Which event can be generated when the mouse leaves an element? .onchange B. JAVASCRIPT CSS) By WAHEED ANWAR A.<script>. What is meant by “this” keyword in JavaScript? A.<head> C.user B.response. && 21.js D. A.Creation of complex user interfaces.Server Load B. += C.<body> 17. D.It is variable which contains value D.onwrite C. Which is the extension of javascript file? A.None of the above 13.endserver load 16. Being client-side reduces the demand on the website server A.<title> D.All of the above 14.alter the document content D.<head>…</head> section C.such as a text field? A.Microsoft B. Which event can be generated when data changes in a control.out.<body>…</body> section B.It refers current object B.js”> B.control the browser C. Javascript has capability to interact with A.Speed C. common uses is A.operates on them C. A. _________ keyword is used to declare variables in javascript.String D. .<script href=” abc.\\ 23.Local D.</script>.<script>.Simplicity B.Native 19.Web Programming MCQ’s (HTML .Server-side C. A single-line comments starts with A. + D.println(“Hello World”) B.It referes previous object C. . Which operator can be used to Joins(concatenates) two strings and assigns the joined string to the first operand? A.<script name=” abc./ B.Client Load C.None of the above 9.None of the above 25.All of the above 15.Neither (A) nor (B) 8.System. . form input. A function in javascript takes A. Which one is the advantages of JavaScript? A.</head> B.XML D.// C.HTML B.Client side validation like checking for C.Client-side B.Either (A) or (B) D.returns the required result D.jc B.Interact with user using prompt(). & B. A.jp 18. What language defines the behavior of a web page? A.<script>. .Google D.Var B.js”? A. alter B.Dim C.None of the above 10. What is the correct JavaScript syntax to write “Hello World”? A.<script src=” abc.\* D.IBM C. _____ JavaScript statements embedded in an HTML page can respond to user events such as mouse-clicks. and page navigation.java C.endclient load D. onmousedown C.None of the above .ondrag C. JAVASCRIPT CSS) By WAHEED ANWAR A.ondrop B.ondragdrop D. Which event can be generated when a drag-and-drop operation is undertaken? A.onmouseout B.onmouseover 26.Web Programming MCQ’s (HTML .onmousemove D.