It104 Ita
It104 Ita
./ 00118
Final Examination
Year 1, Semester 11(2016)
I Duration: 3 Hours
Instruction to Candidates:
31/03/2016
Qu tion 1 (20 marks)
a) "The Internet is becoming the town square for the global village of tomorrow. "
-stu Gates
State whether you agree or disagree with the above statem nt. Justify your
answer with two appropriate examples.
(3 marks)
b) Briefly explain the term "Protocol" and identify uses of it in following contexts.
i) Upload email messages to an email server
ii) Resolve domain names to IP addresses
iii) Provide secure connections across the Internet
(5 marks)
c) Create the DNS resolution hierarchy for the URL given below.
https://msdn.microsoft.com/games-development-msdn
(3 marks)
e) "A company needs its employees to work from home, havin access to all
resources online".
Briefly explain the the best solution company should implemenrt in order to provide
this facility.
(4 marks)
31/03/2016
..
r
;'
··~···!!
....
"""
00118
Question 2 (20 Marks)
a) Write four reasons to prove JavaScript as the best scripting language for the
client-end of web applications. .
(2 marks)
b) Refer the following figure, hints and answer to below questions (i-iii).
Imm/dd/yyyy
[9t;;ckD~t~--1
I Section 2 I--·y ou were bOlTI on : and you are: ye .s old
Figure l-CheckBirthday.html
i) Write HTML code to display the interface given above (Figure 1).
(5 marks)
ii) Write only the CSS code to style the above interface (Figure 1) for
following requirements.
• Section 1 - font colour is green
• Section 2 - font colour is red, font size is x-large
(3 marks)
~,
f
function checkMyBdate()
{
//access the textbox value
var mybday = document.getElementByld("dob").valuej
31/03/2016
HINTS:
• Date Object Methods
o getfrayt) Returns the day of the week (from 0-6)
o getFullYearO Returns the year (four digit)
iv) Write the code statement to call the function when the "Check Date"
button is clicked?
(1 mark)
Sample output:
i64/6412000
t Check Date 1
You were bom on: Tueday and you are : 16 years old
Figure 2-sample output
,
4
31/03/2016
:.":""
...
/.
:: ...
00118
Question 3 (20 marks)
a) "E-commerce is increasingly becoming more stylish and mobil ". State whether
you agree or disagree with the statement. Justify your answer ith appropriate
examples.
(4 marks)
d) What is Digital Marketing? How does it help to boost an E-commerce web site?
. (3 marks)
e) List three common features of an E-commerce site and bri fly explain the
importance of each.
(6 marks)
31/03/2016
Question 4 (20 marks)
a) List three important features that allow PHP to become a server si e programmmg
Language?
(3 marks)
b) Explain the code given below, with reference to the button click even and explain
the difference between $_POST and $_GET.
(6 marks)
<?php
if( $_GET["name"] II LGET["age"] ) {
echo "Welcome" $_GET['name']. "<br />"j
'echo "You are ". $_GET[' age' ]. " years old." j
exitOj
}
?>
chtml»
<body>
</body>
</html>
<?php
$colors = trray("red", "green", "blue", "yellow")j
31/03/2016
00118
e) Explain the code sections which are underlined.
(5 marks)
<?php
$sn = "localhost";
$un = Itaa
n;
$pass "bb";
$dbname = "myDB";
$conn->closeO i
?>
31/03/2016
Question 5 (20 marks)
d) Decrypt the following encrypted code using Substitution Cipher, for the key 4.
"WPMMX mw iu Ikqi"
(2 marks)
f) Explain how a digital envelop is created at the sender's end and how it get
verificatied at the receiver's end.
(4 Marks)
31/03/2016