WDF521S - WEB DEVELOPMENT FUNDAMENTALS - 1ST OPP - NOV 2022


WDF521S - WEB DEVELOPMENT FUNDAMENTALS - 1ST OPP - NOV 2022



1 Pages 1-10

▲back to top


1.1 Page 1

▲back to top


nAmI Bl A unIVERSITY
OF SCIEnCE Ano TECHnOLOGY
FACULTYOF COMPUTINGAND INFORMATICS
DEPARTMENT OF INFORMATICS, JOURNALISM AND MEDIA TECHNOLOGY
QUALIFICATION: Bachelor of Geoformation Technology, Bachelor of Entrepreneurship
QUALIFICATION CODE:
07BENT,07BGEI LEVEL: 5
COURSE: Web Development Fundamentals COURSECODE: WDFS21S
DATE:
November 2022
SESSION: 1
DURATION: 3 Hours
MARKS: 80
FIRSTOPPORTUNITY EXAMINATION QUESTION PAPER
EXAMINER(S)
Mr. Nkuluieko Mthembo
MODERATOR: Mr. Simon Muchinenyika
THIS EXAMINATION PAPERCONSISTSOF 10 PAGES
(INCLUDING THIS FRONT PAGE)
Instructions for the students
1. There are two Sections in this paper, Section A and Section B
2. Answer ALL the questions in All Sections
3. Write clearly and neatly
4. Number the answers clearly.

1.2 Page 2

▲back to top


1.3 Page 3

▲back to top


SECTION A Multiple choice Questions
[30 marks]
Write down the correct letter to represent the correct choice
1.
A network that is geographically dispersed and may use some form of public or
commercial communications network is called a(n):
a. LAN.
b. WAN.
c. Internet.
d. WWW.
2. A domain name is a unique text-based Internet address corresponding to a unique
a. IP address.
b. domain name.
c. URL.
d. user name.
3. The __ protocol is a set of rules that controls how data is sent between computers
on the Internet.
a. HTTP.
b. IP.
c. TCP.
d. FTP.

1.4 Page 4

▲back to top


1.5 Page 5

▲back to top


4. Select the item below that lists the top level domain name for the URL
http://www.yahoo.com.
a. http
b.www
c. yahoo
d. com.
5. Select the main reason for the initial development of the World Wide Web from the
list below:
a. To allow companies to advertise over the Internet.
b. To allow companies to conduct commerce over the Internet
c. To allow communication between researchers and links between research papers
d. none of the above
6. Select the true statement from the list below.
a. When a domain name ends in .com it indicates that it is a computer company.
b. A country code domain name can only be owned by someone who resides in that
country.
c. Only non-profit organizations can purchase a .org domain name
d. None of the statements above are true.
2

1.6 Page 6

▲back to top


1.7 Page 7

▲back to top


7. ___ is a set of rules for exchanging files such as text, graphic images, sound,
video, and other multimedia files on the Web.
a. IP
b.TCP
c. FTP
d.HTTP
8. What tag pair is used to create the largest heading?
a. <hl> </hl>
b. <h9> </h9>
c. <h type="smallest"> </h>
d. <h6> </h6>.
9. What type of HTML list will automatically place a number in front of the items?
a. numbered list
b. ordered list
c. unordered list
d. definition list
10. Choose the best-designed link from below.
a. <a href="news.html">Click to read our important news!</a>
b. Click to read our <a href="news.html">important news!</a>
c. <a href="news.html">lmportant News</a>
d. <a href="news.html">Click here to read our important news</a>
3

1.8 Page 8

▲back to top


1.9 Page 9

▲back to top


11. Consider ___
when designing for display on a mobile device.
a. small screen size
b. font size
c. contrast
d. all of the above
12. When CSSis coded in the body of the web page as an attribute of an HTML tag it is
called ----
a. Embedded
b. lnline
c. External
d. Imported
13. Select the three most common methods of organizing websites.
a. horizontal, vertical, and diagonal
b. hierarchical, linear, and random
c. accessible, readable, maintainable
d. none of the above
14. Applying the design principle of _____
attention.
serves to add visual interest and draw
a. linear
b. proximity
c. contrast
d. alignment
4

1.10 Page 10

▲back to top


2 Pages 11-20

▲back to top


2.1 Page 11

▲back to top


15. A _____
is a sketch or blueprint of a web page that shows the structure (but
not the detailed design) of basic page elements such as the logo, navigation, content,
and footer.
a. site map
b. wireframe
c. drawing
d. hierarchy
16.. When applying the design principle of _____
together.
related items are grouped
a. linear
b. proximity
c. repetition
d. alignment
17. Use the __ tag pair to begin and end a table row.
a. <td> </td>
b. <tr> </tr>
c. <table> </table>
d. none of the above
18. Which of the following CSSproperties positions the caption of a table?
a. caption
b. caption-side
C. thead
d. spacing
5

2.2 Page 12

▲back to top


2.3 Page 13

▲back to top


19. Select the HTML tag below that configures a button that, when clicked, will
automatically reset form fields to their default values.
a. <input type="Submit">
b. <button type="reset">Reset</button>
c. <input type="button" value="Reset" >
d. both a and b
20. The purpose of the _____
a. <label>
b. <p>
c. <form>
d. <legend>
is to configure a label for a <fieldset>.
21. Use an id to configure a style wh~n:
a. the style could apply to more than one element on a page.
b. the style will apply to only one element on a page.
c. the style is used for all elements on a page.
d. None of the above.
22. The CSSuniversal selector is indicated by which of the following symbols?
a. %
b. #
c. ?
d. *
6

2.4 Page 14

▲back to top


2.5 Page 15

▲back to top


23. The_____
purpose of the element is to describe the contents of a table.
a. <summary>
b. <caption>
c. <title>
d. <source>.
24. Use the ____
tag pair to configure a table head row group.
a. <thead> .. </thead>
b. <tgroup> .. </tgroup>
c. <tbody> .. </tbody>
d. <tfoot> .. </tfoot>
25. Choose the best answer below to the following question: Is the following CSScode
valid?
{ border: 2px #000000 solid;
border-spacing: O;
}
a. Yes.
b. No, there is no border-spacing property.
c. No, there is no border property.
d. No, 0 is not a valid value for the border-spacing property.
For each of the following state if it is True or False.
26. The CSSborder-spacing property can be used to configure the horizontal and vertical
spacing of table borders.
27. The CSSvertical-align property can be used to configure the vertical alignment of the
contents of a table cell.
7

2.6 Page 16

▲back to top


2.7 Page 17

▲back to top


28. The title element configures large, bold text at the beginning of the web page
document.
29. Web pages have two sections: a head and a body.
30. The content that displays in the browser is contained in the body section.
8

2.8 Page 18

▲back to top


2.9 Page 19

▲back to top


Section B
Structured Questions
[50 marks]
Question One
[10 marks]
State and explain two different types of CascadingStyle Sheets (CSS)that one can use. In your
explanation write some sample code to show the differences.
Question Two
Write the HTML Code that will create the table below
Fr10htS CheduIe
Flight Number
Date
Departure
[30 marks]
Arrival
05/10/21
10:00am
11:45am
SAA120
11/10/21
18:00pm
20:30pm
HK/ Airport-WHK-Namibia- O.R Tambo JHB- South Africa
12/10/21
8:00am
11:00am
SAA750
13/10/21
15:00pm
17:30pm
HK/ Airport- WHK-Namiba - CPT Airport-South Africa
Question Three
[10 marks]
Analyse the code below and make a sketch of the expected output.
<fie Idset><leee nd>Customer Information </legend>
<label>Name:
<input t\\rpe:a"text" narne="CNarne" id,,"CName" sizc.,"30"></l,ibul>
<label>Email:
<input type="text" name="CEmail" ld=-"CEm,ill"></label>
<br><br>
-<input type="suurnit'' value="Sign Me Up!"> <input type="reset">
</fieldset>
</form>
<br><br >
###[END OF EXAM]####
9

2.10 Page 20

▲back to top