First Term Examination (2015-2016)
First Term Examination (2015-2016)
First Term Examination (2015-2016)
Section:
General Instructions:
This question paper consists of 6 printed pages.
All answers to be written in the answer sheet provided.
Write the HTML code to generate following web page
10/6/15
Max. Marks:70
Time:3 Hrs
Roll No:
(10)
(10)
2
2
The relation Products is use to maintain some data related to products in a shop. Study the 5
following data and answer the questions given below:
Table: Products
Prod_ID
121
134
123
126
Prod_Name
Soap
Sugar
Chocolate
Detergent
Price
35
45
125
62
Category
SOAPS
EDIBLE
EDIBLE
SOAPS
Availability
20
12
23
25
i.
ii.
iii.
III
(15)
d) Explain the usage of Timeline. Name any two components of the timeline.
Page 2 of 6
Study the figure given below and answer the question that follow:
i)
ii)
g)
2
3
iii)
Observe the figure given below and do as directed:
Write the procedure for animating a star on top left corner of the stage into an 8-point
star on the bottom right corner of the stage over a span of 10 frames.
IV
(25)
1) Underline the errors in the following code and write the corrected code
<%
option explicit
<HTML>
<BODY>
The login name entered is:
pass=mypasss
The password is:
If pass=mypass
Request.output(Valid)
Else
Request.output(InValid)
End
%>
</BODY>
</HTML>
Page 3 of 6
<%
Dim list(5)
i=5
Do while i>=0
if i mod 2= 0 then
list(i)=i*i
else
list(i)=i+i
end if
i=i-1
loop
%>
3) Give the output for the following code segment:
a
b
c
d
e Response.write(isnumeric(mid(expo2020,5,3)))
f <% option explicit %>
<HTML>
<head>
<%
Function F1(num)
F1=num mod 6
End Function
%>
</head>
<BODY>
<%
a=30
Sum=0
Do while a > 0
sum=sum+F1(a)
Response.write(sum=&sum)
a=a-10
Loop
%>
</BODY>
</HTML>
Page 4 of 6
1
1
1
1
1
2
g <%
Dim cnt,num
list=array(14,12,32,15,8,4,2,10)
Max=ubound(list)
For cnt=max to 1 step -2
Num=list(cnt)-list(cnt-1)
Response.write(num&<br>)
Next
%>
h <HTML>
<HEAD>
<%
sub vbproc(num1,num2)
response.write(num1\ num2)
end sub
%>
</HEAD>
<BODY>
<p>
Result: <%call vbproc(6,3)%>
</p>
<p>
<%vbproc 4,3
vbproc 4,2
%>
</p>
</body>
</html>
6) Answer the following
1
2
2
e What is an array? How will you declare an array strArray that can store 10elements?
Answer the following questions based on Communication and network concepts:
a. Name any two transmission media for networking.
a
b. Define bandwidth.
c. Differentiate between circuit switching & packet switching.
a
d. Differentiate between a Hub and a Gateway.
B
e. BV Communication limited in Chandigarh is setting up the network between its different departments
F located in different blocks. There are 4 blocks named as Sutlej (S), Beas (B), Raavi (R) and Chinab (C).
2
(10)
1
Page 5 of 6
1
2
2
4
100 m
Block C to Block S
200 m
Block C to Block B
400 m
Block R to Block S
300 m
Block S to Block B
100m
Block R to Block B
450 m
Number of Computers:
Block S
15
Block B
100
Block R
50
Block C
150
i)
ii)
Name the Block where the Server is to be installed. Justify your answer.
iii)
iv)
The company plans to link its head office situated in hilly area of Dalhousie.
Suggest an economic way to connect it. Justify your answer.
****************
Page 6 of 6