0% found this document useful (0 votes)
44 views5 pages

IT1100 I and WT

This document is the final examination paper for the subject ITII00 - Internet and Web Technologies from the Sri Lanka Institute of Information Technology for the June 2019 intake. The 3-question paper tests the students' knowledge of JavaScript, PHP, networking concepts like LAN and WAN, responsive web design, protocols, search engine optimization, social media, internet security attacks, and using JavaScript to dynamically generate HTML tables from user input. It contains code snippets and requires students to write and modify JavaScript functions to output tables with different structures based on input values.

Uploaded by

vihinsab
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)
44 views5 pages

IT1100 I and WT

This document is the final examination paper for the subject ITII00 - Internet and Web Technologies from the Sri Lanka Institute of Information Technology for the June 2019 intake. The 3-question paper tests the students' knowledge of JavaScript, PHP, networking concepts like LAN and WAN, responsive web design, protocols, search engine optimization, social media, internet security attacks, and using JavaScript to dynamically generate HTML tables from user input. It contains code snippets and requires students to write and modify JavaScript functions to output tables with different structures based on input values.

Uploaded by

vihinsab
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/ 5

•.

••• Q FFFCl

Sri Lanka Institute of Information Technology

B. Sc. Special Honours Degree/ Diploma


.
In
Information Technology

Final Examination
Year 1, Semester U(20 19)
June Intake

ITII00 - Internet and Web Techn logies

I Duration: 02 Hours I

Instruction to Candidates:
I

• This paper is preceded by a 10-minute reading pel iod. The


supervisor will indicate when answering may corn ence.
• This paper has 03 questions. Answer all questions
• Provide answers on the answer booklet given.
• Total marks 100.
• This paper contains 05 pages including the Cover .iage.
I Question 1

a) "JavaScript and PHP are loosely typed languages"


(30 Marks)

Is the above statement true? Justify your answer with the he p of proper example.
(4 marks)

b) Explain the underlined parts of the following example?


Example:
ftp://ftp.funet.fi:8080/pub/standardsIRFClrfc959.txt
(4 marks)

c) What the difference between LAN and WAN? Compile you answer according to
the following table.
(12 marks)

LAN WAN
.
Definition

Bandwidth

Connection

Problems

Ownership
..

Set-up & Cost

d) Describe the term "Responsive Web Design". State why it s important in web
development.
(4 marks)

e) What is a protocol? List some protocols which could be used "or below purposes
a. Web communication
b. File sharing
c. E-Mail

(6 marks)

2
Question 2 (30 Marks)

a) List some changes you could do on a website to make it m re visible in search


engine (SEO).
(6 Marks)

b) "Web crawling" is a process maintained by search engine to get the optimal


result from this what are the policies available? Explain at east three.
(12 marks)

c) List six types of social media with their purpose and mention two example for
each.

(6 Marks)

. d) What are the main types of Internet Security attacks? Expla n two of them.

(6 Marks)

3
Question 3 (40 Marks)

Study the following source code ("draw _ table.html") and answer th given questions (a-
e).
Line Source code
No.
I. <html>
II. <head> .
...
11I. <title> </title>
IV. <script>
v. function draw'I'ablet) {
VI. var num=document.getElementB yId(" inputTxt l").value;
V11 . num=parseInt(num);
...
Vlll. document.write("<table border='5'>");
IX. document. write(" <tr> ");
x. for(i=l ;i<=num;i++){
Xl. document. write("<td>~~~"+i);
XII. document. wri te(" </td> ");
...
X111. }
XIV. document. write(" </tr> ");
XV. document.write(" </table> ");
XVI. }
XVII. </script>
...
V111. </head>
XIX. <body>
xx. Input a number 1:<input type="test" id="inputTxt 1"> <br I>
XXI. <input type="button" value="DRA W TABLE" onclick=t'drawTable/)">
XXll. </body>

a) Explain the purpose of the following source do des


(12 marks)

Line Source code


,
No.
. '-:;;.,..,

1. VI var num=document.getElementById("inputTxt 1"). lue;


I -

2. xx Input a number 1:<input type="test" id=t'input'IxtT > <br I>

3. XXI <input type="button" value="DRA W TABLE" onclic k= drawI'ablet) ">


II

b) Draw the output of the code ("draw_table.html") if user input '5" in to the
text box "inputTxt_l".
(08 marks)

4
c) Rewrite the function "drawTableO" given in ("draw_table.htl'1I") to get the
following outputs (write 03 independent functions separately).
1. Same output (question a) as a single column.
(04 marks)

2. Write the javacript codeto include an image ("apple.jpg") inside each


cell. (03 marks)

d) What is the HTML code to link an external JavaScript ("draw Junction.js")?


(03 marks)
I

e) Mo~ify the HTML code (question c) to input another number. Add a textbox
("inputtxt1 "). Now, user can input two numbers, "inputtxt1" a d "inputtxt2" .
.' Update the function (drawTable 0") to draw a table using inpi ttxt1 as number of
columns and inputtxt2 as number of rows.
(10 marks)

End of the Question Paper

"

",

You might also like