Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
FINAL EXAMINATION
SESSION I, ACADEMIC YEAR 2015/2016
TDMM 2073
SCRIPTING IN MULTIMEDIA
INSTRUCTION TO CANDIDATES:
1.
2.
3.
4.
Answer Booklet.
SULIT
TDMM 2073
SEPTEMBER 2015
SECTION A
Marks: 20
1.
2.
3.
4.
5.
class; data
B.
data; class
C.
suffix; object
D.
B.
C.
D.
suffix.
B.
services.
C.
code hinting.
D.
self-contained.
FLA.
B.
EXE.
C.
XML.
D.
DHTML.
right to left.
B.
left to right.
C.
top to bottom.
D.
bottom to top.
2
SULIT
TDMM 2073
6.
7.
8.
Pseudo-code is
A.
B.
C.
D.
B.
C.
D.
Which of the following is the right match between flash files and its function?
A.
B.
C.
D.
9.
SEPTEMBER 2015
files).
0 or 1.
B.
0 and 1.
C.
true or false.
D.
B.
Array
C.
Method
D.
MyMovieclip_mc
SULIT
TDMM 2073
SEPTEMBER 2015
F8.
B.
Ctrl + F8.
C.
D.
B.
C.
the left operand and the right operand both return a value of true.
D.
the left operand and the right operand both return a value of false.
1; 0
B.
0; 1
C.
100; 0
D.
0; 100
14. To perform event handling there are three important elements need to be
identified. One of the element is
A.
the use.
B.
the class.
C.
the event.
D.
the function.
15. A(n) __________ provide a way to group action together as a single unit.
A.
event
B.
function
C.
data type
D.
parameter
SULIT
TDMM 2073
SEPTEMBER 2015
event target.
B.
event action.
C.
event object.
D.
event handler.
17. Which of the following the right matches between operator and its type?
A.
>=
Logical operator.
B.
Numeric operator.
C.
!=
Comparison operator.
D.
===
19.
A.
B.
C.
D.
Symbol of parenthesis
A.
[]
B.
{}
C.
D.
()
Available to anywhere.
B.
C.
D.
SULIT
TDMM 2073
SEPTEMBER 2015
SECTION B
Marks: 40
1.
a.
The symbols for line comment and block comment in ActionScript 3.0.
(2 marks)
b.
(3 marks)
c.
2.
d.
(3 marks)
e.
(3 marks)
f.
(2 marks)
a)
(2 marks)
b)
(2 marks)
c)
(2 marks)
d)
(2 marks)
SULIT
TDMM 2073
e)
SEPTEMBER 2015
var nama = "Seroja"; var pekerjaan = "nelayan.";
trace (ayah + nama + " adalah seorang " + pekerjaan);
(2 marks)
f)
g)
(2 marks)
var markah = 40 ;
var kehadiran = 10;
var lulus = (markah <= 50)&&(kehadiran >= 10);
if (lulus){
trace("Alhamdulillah, anda LULUS");
} else{
trace("Ulang subjek Scripting.");
}
(2 marks)
h)
i)
(2 marks)
trace (v);
j)
(2 marks)
3.
(2 marks)
(3 marks)
SULIT
TDMM 2073
4.
SEPTEMBER 2015
Find the syntax error of the ActionScript code below and rewrite the right
script.
(2 marks)
this.Stop ();
function playMovie (event:mouseEvent): void
{
this.Play ();
}
playButton.addEventListener(MouseEvent.Click, playMovie);
SULIT
TDMM 2073
SEPTEMBER 2015
SECTION C
Marks: 20
Question 1
a)
c)
var
(2 marks)
switch (saluran){
case "TV 1":
trace ("Saluran Komunikasi Anda...");
break;
case "TV 2":
trace ("Saluran Dunia Anda...");
break;
case "TV 3":
trace ("Keriangan sentiasa bersamamu di TV3...");
break;
case "NTV 7":
trace ("Saluran Ceria Anda. Feel Good...");
break;
case "TV 8":
trace ("We're different...");
break;
case "TV 9":
trace ("Malaysia...lah!");
break;
case "TV Al-Hijrah":
SULIT
TDMM 2073
SEPTEMBER 2015
trace ("TV Kita Untuk Semua...");
break;
default :
trace ("Jom cipta slogan TV");
break;
Question 2
a)
(4 marks)
b)
(4 marks)
c)
(2 marks)
var a = 7;
do{
trace ("Output do...while loop: " + a);
a--;
} while (a >= 5);
10
SULIT