MWT Sample Paper
MWT Sample Paper
1. a) What is a Database? 1
d) Study the following data and answer the questions given below:
Table: Doctors
DocID DocName Department OPD_Days
101 M.Panday ENT TTS
102 G.P.Gupta Paed. MWF
201 C.K.Sharma Ortho MWF
Table: Patients
Pat_no PatName Department DocID
1 Neeraj ENT 101
2 Mohit Ortho 201
3 Ragini ENT 101
4 Mohit Paed. 102
5 Nandini Ortho 201
1
(i) What type of relationship exists between table Doctors and the table
Patients?
2
(ii) Name the fields, which can act as the primary key and foreign key for the
table Doctors and the table Patients respectively.
e) Aman has created a symbol in Flash which can be clicked, write the type of 1
symbol that he has created.
f) Rahul has created a movie in Flash. When he is running his movie, it is going 1
very fast. What should he do to slow down his movie.
g) Mr. Raja Maheshwari is planning to gift a digital album to his daughter on her
birthday. All the images have lots of colour shading and are all static images. 2
Which of the following formats are best suited for this purpose:
(i) GIF
(ii) JPEG
(iii) AVI
Justify your choice
2. Answer the following questions based on Macromedia Flash:
The bird on the right hand side shows the position for frame 1.
The bird on the leftt hand side shows the position for frame 20.
The bird in frame 1 moves to frame20 following path as shown in fig.
The image of bird is bird.jpg saved in flash library.
Write the procedure and property settings for animating the above scenario.
a) Fill in the blanks in the HTML code to create a framed web page in the following 2
format:
FileA.html
45%
<HTML>
<FRAMESET _______ = "25%,*">
<FRAME___________ = “FileA.html”>
<FRAME ________ = "45%,*">
<FRAME ______ = "FileB.html">
<FRAME ______ = "FileC.HTML">
</FRAMESET>
</FRAMESET>
</HTML>
b) Write the HTML code to generate a Web Page in the format given below : 8
<SCRIPT LANGUAGE="VBScript">
OPTION EXPLICIT
A=10
B=20
DOCUMENT.WRITE(A+B)
</SCRIPT>
b) Explain with an example the difference between the string operators + and &. 2
c) Which two objects are essential for accessing and reading a text file using ASP? 3
Also write their role using an example.
Write the server side script to display the contents of this table.
d) Write the structure of rotator schedule file where 3 images are displayed namely 3
img1.jpg, img2.jpg, img3.jpg. All the images have same weightage and are not
redirecting to any site. Also the alternative text for them is “Today”, “we have”,
“exam” resp.
Assume the default height, width and border for images.
a) A code to display the reverse of a string is written below. Fill in the blank to 1
complete it:
<html>
<head>
<script language=”vbscript”>
sometext = "Bye!"
document.write(_____________(sometext))
</script>
</head>
</html>
b) Write the equivalent script for the following code using FOR loop without effecting 2
the output:
<SCRIPT LANGUAGE="VBScript">
DIM count(5)
i=1
DO
If i mod 2 = 0 then
count(i)=1
Else
count(i)= i *10
end if
i = i + 1
LOOP WHILE i<=5
</SCRIPT>
c) Write a function using VbScript that allows two values to be passed to it and 3
calculates the multiplication of those two nos. and returns the result.
d) Create a form that contains two checkbox options and a textbox as shown below. 4
When the user clicks on any or both checkboxes, the price to be paid should be
displayed in the textbox. Write the HTML code for creating the form and the
embedded VBScript code for the click events of the button.
b) Write any two advantages of using optical fiber cable over coaxial cable and 2
twisted pair cable.
c) Explain the term Protocol and give the names of any two protocols. 2
d) What is UNICODE? 1
e) An Organization has its offices in building A, B, C and D. Answer questions (a) to
(d) in context of the following layout of the three offices:
B
A
C
D
(i) Suggest and draw the layout for a network, with proper justification to connect all 1
the office
(iii) Suggest the most suitable place to house the server for the organization with 1
proper justification.