Q #1.
(a) What is the difference between Viruses and Worms? You can take help from internet to answer this question. Give your answer precisely and to the point.
(b) What precautionary steps can you take to protect your computer from different viruses? Briefly explain in points (Marks: 5+5=10)
Q #2.
Write down the output for each part of the JavaScript code. (Marks: 10)
(a)
<script type="text/javascript">
for(var a=1; a<6;a++)
document.write(a); // output ?
</script>
(b)
<script type="text/javascript">
var str="Islamic Republic of Pakistan"
document.write(str.substr(19)); // output ?
</script>
(c)
<script type="text/javascript">
document.write(Math.round(5.55)); // output ?
</script>
(d)
<script type="text/javascript">
document.write(Math.cos(0)); // output ?
</script>
(e)
<script type="text/javascript">
document.write(Math.sqrt(100)); // output ?
</script>