Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
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
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
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
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