UNIVERSITY OF MINES AND TECHNOLOGY, TARKWA
FIRST SEMESTER EXAMINATIONS, NOV/DEC. 2018
COURSE NO: CE 277
COURSE NAME: WEB PROGRAMMING
CLASS: CE II TIME: 2 HRS
Name: __________________________________________ Index Number: _______________
Instructions: This paper has two SECTIONS: MCQS (40Marks) and PRACTICALS (20Marks).
Answer all questions in your answer booklet for MCQS. Answer ALL QUESTIONS.
1. In OSI model USB lies under the layer ___________
a. data Link layer c. network layer
b. physical layer d. transport layer
2. State true or false. Google Chrome has its own task manager, which allows you to view and
manage your memory and CPU usage”
a. True b. False
3. Which of the following are automatically loaded and operates as a part of browser?
a. Add-ons c. Utilities
b. Plug-ins d. Widgets
4. Which of the following allows user to view a webpage?
a. Operating System c. Interpreter
b. Website d. Internet Browser
5. What is DOM?
a. Hierarchy of objects in [Link] c. Convention for representing and
b. Application programming interacting with objects in html
interface documents
d. None of the mentioned
6. <meta http-equiv="X-UA-Compatible" content="IE=8"> is used to
a. make web page compatible only c. make web page incompatible
with IE8 only with IE8
b. mimic behaviour of IE8 d. None of the mentioned
7. Which of the following element represents a thematic break rather than a horizontal rule,
though that is the likely representation?
a. <dd> c. <hr>
b. <dt> d. <menu>
Page 1 of 8
8. Which of the following is not a newly added element in HTML5?
a. article c. nav
b. audio d. frameset
9. Which of the following element represents the header of a section or the document and
contains a label or other heading information for the related content?
a. data-X c. mark
b. header d. meter
10. How does the color attribute work?
a. Changes color of the text c. The color picker is defined by it
b. Changes background color d. Changes color of the text as well
as background
11. Which attribute is used for activation of JavaScript?
a. button c. url
b. checkbox d. submit
12. Which attribute defines the file-select field?
a. file c. button
b. checkbox d. text
13. Which of the following is not used with password attribute?
a. name c. maxlength
b. size d. min
14. Which element is used to create multi-line text input?
a. text c. submit
b. textarea d. radio button
15. Which attribute is not used for the radio type?
a. name c. checked
b. value d. selected
16. Which attribute is used with <select> element?
a. multiple c. name
b. selected d. value
17. Form validation traditionally was performed by ___________
a. PHP c. JavaScript
b. HTML d. jQuery
18. For grouping form controls we can use ___________
a. <legend> c. <label>
b. <fieldset> d. <select>
19. Which of the following is not set with font-style property?
a. font-style: normal b. font-style: italic
Page 2 of 8
c. font-style: oblique d. font-style: capitalize
20. What should be set with text-align property so that every line has equal width like in
magazines and newspapers?
a. text-align: justify c. text-align: bottom
b. text-align: none d. text-align: top
21. Which of the following is not used with text-decoration property?
a. overline c. line-through
b. underline d. inline
22. Which works similar to <b> element?
a. <strong> c. <i>
b. <em> d. <blockquote>
23. Which element defines a title of the Work?
a. <abbr> c. <address>
b. <cite> d. <blockquote>
24. What is the path for an image located in folder one level up from current page?
a. <img src= “[Link]”> c. <img src= “images/[Link]”>
b. <img src= “../[Link]”> d. <img src= “/images/[Link]”>
25. target attribute cannot have?
a. _blank c. _parent
b. _self d. _color
26. Which of the following sets the color of a link before it has been clicked on?
a. ALINK c. VLINK
b. LINK d. ULINK
27. What is used for specifying an email to be sent?
a. mailto: c. id
b. target d. href
28. Which of the following is not the parameter for email link?
a. body c. cc
b. bcc d. #
29. Which one of the following is used for space character?
a. %50 c. %20
b. %60 d. %10
30. Each cell of the table can be represented by using __________
a. <tr> c. <th>
b. <td> d. <thead>
31. Which of the following is not the element associated to HTML table layout?
a. size b. spanning
Page 3 of 8
c. alignment d. color
32. What is css stands for?
a. Color Style Sheets c. Cascade Style Sheet
b. Cascade Sheets Style d. Cascading Style Sheets
33. In CSS what does h1 represent?
a. Selector c. Value
b. Attribute d. Tag
34. In css what does “color:red” can be called as
a. Selector c. Declaration
b. Rule d. None of the above
35. Which of the following attributes is used to specify elements to bind style rules to?
a. id c. tag
b. class d. all of the mentioned
36. ________ selectors, which are used to specify a rule to bind to a particular unique element
a. id c. tag
b. class d. both class and tag
37. _________ selectors, which are used to specify a group of elements
a. id c. tag
b. class d. both class and tag
38. Which of the following tag is used to embed css in html page?
a. <script> c. <css>
b. <style> d. <!DOCTYPE html>
39. Correct HTML tag for the largest heading is
a. <head> c. <heading>
b. <h6> d. <h1>
40. Markup tags tell the web browser
a. How to organize the page c. How to display message box on
b. How to display the page page
d. None of these
41. The attribute, which define the relationship between current document and HREF'ed URL is
a. REL c. REV
b. URL d. All of these
42. The attribute, which define the relationship between current document and HREF'ed URL is
a. <tdleft> c. C. <td align = "left">
b. B. <td raligh = "left" > d. D. <td leftalign>
43. How can you open a link in a new browser window?
a. A. < a href = "url" target = "new"> c. C. <a href = "url”. new>
b. B. <a href = "url" target= "_blank"> d. D. <a href = "url" target ="open">
Page 4 of 8
44. The tag used to create a new list item and also include a hyperlink is
a. A. <LI> c. C.<DD>
b. B.<DL> d. D.<UL>
45. The _____________ attribute specifies an inline style associated with an element, which
determines the rendering of the affected element.
a. dir c. class
b. style d. none of the mentioned
46. Which attribute specifies a unique alphanumeric identifier to be associated with an element?
a. class c. article
b. id d. html
47. Which tag is used with JavaScript?
a. <canvas> c. <article>
b. <table> d. <footer>
48. What is the correct syntax of doctype in HTML5?
a. <!doctype html> c. <doctype html>
b. <doctype html!> d. </doctype html>
49. Which of the following is not sectioning elements?
a. <article> c. <nav>
b. <aside> d. <header>
50. Which of the following property defines the width of each column in a multicolumn text
flow?
a. width c. filter
b. columns d. column-width
51. Which of the following property is used to control the space between the border and content
in a table?
a. border c. padding
b. margin d. resize
52. A JavaScript program developed on a Unix Machine
a. will throw errors and exceptions c. will work perfectly well on a
b. must be restricted to a Unix Windows Machine
Machine only d. will be displayed as a JavaScript
text on the browser
53. JavaScript Code can be called by using
a. RMI c. Preprocessor
b. Triggering Event d. Function/Method
54. Which of the following Attribute is used to include External JS code inside your HTML
Document
a. src c. script
b. ext d. link
55. When you use the GET variable to collect data, the data is visible to
Page 5 of 8
a. none c. selected few
b. everyone d. only you
56. Which one of the following should not be used while sending passwords or other sensitive
data?
a. GET c. POST
b. REQUEST d. NEXT
57. Which is true to change the text color to red?
a. <body bgcolor=red> c. <body color=red>
b. <body text=red> d. none of the above
58. 11. To make the width of a table adjust to the current width of the viewer's browser window,
you should specify a table width of __________:
a. 100% c. 1024 pixels
b. 640 pixels d. none of the above
59. <h1> and <h3> are examples of what?
a. <!doctype html> c. <doctype html>
b. <doctype html!> d. </doctype html>
60. A 6 digit Hex color (#FF9966) defines values of Red, Blue and Green in which order
a. #BBRRGG c. #RRGGBB
b. #BBGGRR d. #RBGRBG
61. Hex-colors are the only way to define colors on the web?
a. True for Internet Explorer, False c. True, computer screens only
for Netscape browsers understand hexadecimal
b. False, colors can also be
specified with names and CSS
62. <a> and </a> are the tags used for?
a. Audio-voiced text c. Aligning text
b. Adding links to your page d. Assigning values
63. To change the size of an image in HTML use what?
a. length and breadth c. bigger and smaller
b. hight and width d. height and width
64. The default port for HTTP is
a. 443 c. 80
b. 21 d. 8080
65. The default port for HTTPS is
a. 443 c. 80
b. 21 d. 8080
66. The default port for FTP is
Page 6 of 8
a. 443 c. 80
b. 21 d. 8080
67. JavaScript if a Server-side scripting
a. True b. False
68. Which of the following is not a type of comment?
a. * c. //
b. /* */ d. #
69. What does HTML stand for?
a. Hyper Text Markups Languages c. Home Tool Markup Language
b. Hyperlinks and Text Markup d. Hyper Text Markup Language
Language
70. IP is used in the level ___________
a. presentation layer c. application layer
b. network layer d. data Link layer
71. Which one is not the feature of HTTP protocol?
a. media independent c. responsive
b. connectionless d. stateless
72. Which of the following are not the valid character set in HTTP?
a. ISO-8859-1 c. ISO-8859-7
b. US-ASCII d. ISO-8859-2
73. Which one is the correct syntax for specifying media type?
a. type ”/” subtype *( “;” parameter) c. parameter “/” type *(“;” subtype)
b. subtype ”/” type *(“;” parameter) d. (“;” subtype) “/” type *(parameter)
74. Which header field defines meta information?
a. Request-header c. General-header
b. Response-header d. Entity-header
75. Which of the following is not the request method?
a. Head c. Remove
b. Get d. Put
76. Which symbol is used when HTTP request does not apply to the particular source?
a. ‘&’ c. ‘#’
b. ‘*’ d. ‘@’
77. Which of the following is not a request-header field?
a. Expect c. Delete
b. Host d. If-None-Match
78. What does ‘3xx’ code denote?
a. Redirection b. Server Error
Page 7 of 8
c. Success d. Informational
79. Which of the following is not a response-header field?
a. Location c. ETag
b. Server d. Referer
80. Which of the following is not a web server?
a. Apache tomcat c. Jetty
b. BlueGriffon d. Tornado
40 MARKS
Examiners: F L Aryeh / R K Annan
Page 8 of 8