Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Model Examination - II
Multimedia and Web Technology (067)
Class XII
Time: 3 Hours Maximum Marks: 70
(c ) Differentiate between
XII 1st Weekly Test March 2018 Page 1 / 2 Subject: MMWT (067)
2 Answer the following questions based on JavaScript:
(a) Name the event that occurs when: (1)
(i) The mouse is double clicked
(ii) The cursor comes over an element.
(b) What is conditional operator? Explain with example. (2)
(c) Analyse the given program segment and determine how many times the (2)
loop will be executed. What will be the value of A, B and S after loop is terminated.
var A , B;
A=10;
B=20;
S=0;
while(A>=5)
{
A=A-2;
S+=A-- + (--B)
B = (--B)
}
(d) Change the while loop to for loop in above program without affecting the output (2)
(d) Point out the errors in the following script and rewrite the corrected code with the (2)
corrections underlined:
<SCRIPT LANGUAGE = "JavaScript">
function Change(a, b)
{
a = a*a+1.5
b = b-1;
result = a+b;
ret result
}
x = 2.5
y==-5
Change(x);
CHANGE(x,y)
z = Change(y,x)
</SCRIPTING>
(e) Write the HTML code to generate the following form: (4)
Write the embedded JavaScript code to display the Movie category in alert box on the
click of the CATEGORY button. Note that the category should be displayed as:
“New” if the year of release is greater than 2016.
“Still in Mind” if the year of release is between 2012 and 2016.
“Old” if the year of release is less than 2012.
XII 1st Weekly Test March 2018 Page 2 / 2 Subject: MMWT (067)