0% found this document useful (0 votes)
13 views8 pages

It104 Ita

Uploaded by

dilshatest
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views8 pages

It104 Ita

Uploaded by

dilshatest
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

.

./ 00118

Sri Lanka Institute of Information Technol gy

B. S~. Special Honours Degree/ Diploma


.
In
Information Technology

Final Examination
Year 1, Semester 11(2016)

IT! 04 - Internet Technology and Applications

I Duration: 3 Hours

Instruction to Candidates:

• This paper has 05 questions. Answer all questions.


• Provide answers on the answer booklet given.
• Total marks 100.
• This paper coritains 08 pages including the Cover page.

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)

d) Differentiate 2-tier architecture vs peer-to-peer architecture entioning real


world applications for each.
(5 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).

I Section 1 -~It's Your Birthday


Enter your birthday (mrn/dd/yyyy)

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)

iii) Analyze following requirements and complete JavaScript function given


below
• User can input any date in mm/dd/yyyy format
• Once the "Check Date" button is clicked the day of the week of
the Birthday entered (Sunday, Monday etc.) and th age of the
user to the current year should be displayed.
(9 marks)

~,
f
function checkMyBdate()
{
//access the textbox value
var mybday = document.getElementByld("dob").valuej

//convert the string value to a date object


var d = new Date(mybday)j

//determine the day (Sunday, Monday etc.)

//determine the age

//display the outputs


}
3

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:

. It' s Your Birthday


Enter your birthday (nuniddlyyyy)

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)

. b) Compare and contrast E-commerce vs. E-business.


(4 marks)

c) Customer service is highly important in E-commerce. Support the statement by


giving two facts.
(3 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>

<form action = "<?php $_PHP_SELF ?>" method = "GET"


Name: <input type = "text" name = "name" />
Age: <input type = "text" name = "age" />
<input type = "submit" />
</form>

</body>
</html>

c) Explain the use of$_SESSION.


(4 marks)

d) Explain the output of the given code below.


(2 marks)

<?php
$colors = trray("red", "green", "blue", "yellow")j

foreach ($colors as $value) {


if($value == "blue")
breakj
echo "$value <br>"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 = new mvsali($sn. Sun. $oass. $dbname);


if ($conn->connect_error) {
die("Connection failed: " . $conn->connect error);
}

$sql "INSERT INTO MyGuests (firstname, lastname, email)


VALUES ('John', 'Doe', 'john@example. com' )";

if ($conn->guery($sgl) === TRUE) {


$la~t_id = $conn->insert_id;
echo "New record created successfully. Last inserted ID is: " . $last_id;
} else {
echo "Error: " . $sql . "<br>" . $conn->error;
}

$conn->closeO i
?>

31/03/2016
Question 5 (20 marks)

a) Briefly explain data encryption. and data decryption.


(4 marks)

b) Differentiate active intruder vs. passive intruder?


(3 marks)

c) Explain the term Authentication using a real world example.


(3 marks)

d) Decrypt the following encrypted code using Substitution Cipher, for the key 4.
"WPMMX mw iu Ikqi"
(2 marks)

e) Explain Transposition data encryption technique using an example.


~
(4 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)

End of the Question Paper

31/03/2016

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy