Summer Exam Paper for 2016

OLLSCOIL NA hÉIREANN, CORCAIGH
THE NATIONAL UNIVERSITY OF IRELAND, CORK
COLAISTE NA hOLLSCOILE, CORCAIGH
UNIVERSITY COLLEGE, CORK
2015/16
Semester 2 — Summer Examinations 2016
CS3051 Digital Content Management
Dr Helen Purchase
Professor Cormac Sreenan
Mr Adrian P. O'Riordan
Answer all three questions
Total Marks 80
1.5 Hours
PLEASE DO NOT TURN THIS PAGE UNTIL INSTRUCTED TO DO SO
ENSURE THAT YOU HAVE THE CORRECT EXAM PAPER
Page 1 of 3
Question 1. (Question is worth 30 marks; each part below is worth 3 marks)
a) List three types of Web applications with an example of each where Content Management Systems
(CMS) are commonly used, e.g. Social Media and Facebook.
b) Give three typical features of a CMS.
c) How can a CMS be architected in terms of layers?
d) List three technical and three non-technical issues that should be considering when choosing or
purchasing a CMS.
e) What is a digital asset management system?
f)
What role does the inverted index play in search?
g) Explain the differences between media downloading and streaming.
h) Give two benefits of peer-to-peer file sharing over standard client-server implementations.
i)
What is a HTTP session? What problem does session management solve?
j)
List three considerations that could influence the choice of backend storage in a CMS.
Question 2. (25 marks in total)
a) Illustrate with a diagram how PHP Web applications operate in a client-server environment,
illustrating the role played by HTML, HTTP, the PHP engine and backend databases.
[6 marks]
b) Show with simple examples how a PHP script can be embedded in HTML and how PHP can
generate HTML.
[4 marks]
c) PHP is cross-platform, open, Web-enabled, well documented and loosely typed. Explain that
statement.
[5 marks]
d) Write a PHP script that represents the following information as an array (hard-code the
information) and displays the information in tabular form as a HTML table. In addition, write a
function to count and print a count of potential sonnets (all poems with 14 lines for the purposes of
this exercise).
[10 marks]
Poem
Number of Lines
The Road Not Taken
20
No Second Troy
12
Sonnet 116
14
Acquainted With The Night
14
Page 2 of 3
Question 3. (25 marks in total)
a) What is the function of a Web form? Give two examples where Web forms are used. What are the
security risks?
[5 marks]
b) Briefly explain the operation of the PHP superglobal $_GET.
[2 marks]
c) Below is an incomplete HTML form. Fill in the missing parts (marked i to v) assuming HTTP
POST is used and including a reset button.
[5 marks]
<h1>Registration</h1>
<form method=
i
action="respond.php">
<label>What is your name?</label>
<input type="text"
ii
size= "25"><br>
<label>Enter a password:</label>
<input
iii
name="password" required><br>
<input type="submit" value="Register">
<
<
iv
v
>
>
d) Write a PHP script that uses the $_POST superglobal to respond to the form in part c) with a
personalized greeting and checks that a password has been given. (There is no requirement for any
further validation).
[5 marks]
e) What are Web cookies? Outline briefly how they work.
f)
[4 marks]
What are the two main types of peer-to-peer networks? List two security issues that affect peer-topeer applications.
[4 marks]
Page 3 of 3