WED811S - WEB APPLICATION DEVELOPMENT and TESTING - 2ND OPP - JULY 2022


WED811S - WEB APPLICATION DEVELOPMENT and TESTING - 2ND OPP - JULY 2022



1 Page 1

▲back to top


nAmIBI A unIVE RSITY
OF SCIEnCE TECHn OLOGY
FACULTY OF COMPUTING AND INFORMATICS
DEPARTMENT OF INFORMATICS, JOURNALISM AND MEDIA TECHNOLOGY
QUALIFICATION : B. INFORMATICS HONOURS (WEB INFOR)
QUALIFICATION CODE: 08BIHW
COURSE:WEB APPLICATION DEVELOPMENT& TESTING
DATE: JULY 2022
DURATION: 2 Hours
COURSELEVEL:NQF LEVEL8
COURSECODE: WED811S
SESSION: 2
MARKS: 50
SECONDOPPORTUNITY/SUPPLEMENTARYEXAMINATION QUESTION PAPER
EXAMINER(S}:
Mr E. MBAEVA
MODERATOR (S}:
Ms A. SHIPEPE
THIS EXAMINATION PAPER CONSISTS OF 3 PAGES
(INCLUDING THIS FRONT PAGE}
Instructions for the students
1. Answer ALL the questions.
2. Write clearly and neatly.
3. Number the answers clearly.

2 Page 2

▲back to top


SECTION B: Descriptive Questions [35 Marks]
Answer all the questions in the provided booklet.
The section consists of 5 questions.
1. Define the following concepts:
(8 Marks)
a. Semantic Web
b. Ontologies
C. OWL
d. RDF
e. SPARQL
f. How do you understand the FOAFconcept?
[1 Mark]
[1 Mark]
[1 Mark]
[1 Mark]
[1 Mark]
[3 Marks]
2. Given the following turtle statement. Determine subject, predicate and the object.
{3 Marks)
People: Ryan ext: worksWith People: John
3. Create an RDFgraph for the following statement?
People: Andrew foaf: knows People: Steven
Foaf: surname "Tjirare";
(5 Marks)
4. To whom does the surname of relation in question above 3 belong?
(2 Marks)
5. What is the significance of programming languages in web applications development?
(2 Marks)
6. Define the difference between a knowledge base and an ontology.
{2 Marks)
7. What are the two ways of making a website more accessible for users with different abilities?
{3 Marks)
8. Define the difference between Contextual Inquiry and Ethnographic Interviewing.
(3 Marks)
9. Define the difference between Contextual Inquiry and Ethnographic Interviewing.
{3 Marks)
10. Describe the problems in the current web and the vision of the semantic web.
{2 Marks)
2

3 Page 3

▲back to top


SECTION C: Practical Questions [10 Marks)
Answer all the questions in the provided booklet.
The section consists of 2 questions.
1. Explain the code snippet below. Create a graphical representation of the code in reference.
(6 Marks}
<?xmlversion="l.O"?>
<rclf:RDFxmlns:rdf="http://wv-.rw.w3.org/l999/02/22-rclf-syntax-ns#"
xmlns:foaf="http://xmlns.com/foaf/spec/#"
xmlns:bb="http://data.bibbase.org/ontology/">
<rclf:Descriptiorndf:about="http://.../author/renee-j-miller/">
<rclf:typerdf:resource="htt:p//xmlnsc. om/foaf/spec/#tennP_erson"/>
<foaf:nmnexntl:lang="en">ReneJe. Miller</foaf:name>
'-·
<foaf:based_neardf:resource="http://clbpedia.org/resource/Toronto"/>
</rclf:Description>
</rdf:RDF>
2. Given the following code snippet, explain to inform Bob, a newbie who wants to learn web-
programming concepts. Explaining the reason why, tell him why you think it is JQUERYor an
AJAXcode.
(4 Marks}
1 function
getXHR()
{
2
= req
false;
3
if (window.
XM LHttpRequest)
{
4
req = new XMLHttpRequest
();
5
} else
{
6
if (ActiveXObject)
{
7
msVersions
= [ •. MSXML2.XMLHttp5.0
... "MSXML2.XMLHttp4.0"
8
"MSXML2.XMLHttp3.0".
"MSXML2.XMLHttp".
9
" Microsoft.
XML Http"
];
10
for
(var
i=O; i<msVersions.length;
i++) {
11
try {
12
req = new ActiveXObject
( msVersi
ans [ i ] ) ;
13
return
req;
14
} catch
( e) {}
15
}
16
}
17
}
18
return
req;
19 }
************ End of the Paper***************
3