IT1100 I and WT
IT1100 I and WT
••• Q FFFCl
Final Examination
Year 1, Semester U(20 19)
June Intake
I Duration: 02 Hours I
Instruction to Candidates:
I
Is the above statement true? Justify your answer with the he p of proper example.
(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
..
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)
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>
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)
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)
"
",