Final Examination Semester 2 / Year 2011

Southern College
Kolej Selatan
南方学院
Final Examination
Semester 2 / Year 2011
COURSE
COURSE CODE
TIME
DEPARTMENT
LECTURER
: MULTIMEDIA DEVELOPMENT
: CSIS2124
: 3 HOURS
: COMPUTER SCIENCE
: TAN WEE CHUEN
Student’s ID
Batch No.
:
:
Notes to candidates:
1) The question paper consists of 7 pages and 3 parts.
2) Answer all questions.
3) Submit your answer for Part C to http://cms.sc.edu.my
MULTIMEDIA DEVELOPMENT
PART A: MULTUPLE CHOICE QUESTIONS (30 MARKS)
(1 mark for each question from question 1 to 18, 2 marks for each question from
question 19 to 24)
Identify the choice that best completes the statement or answers the question.
____ 1. The dot (.) links the property to the particular instance or ____ .
a. button
c. field
b. movie clip
d. object
____ 2. The prebuilt ____ function displays values in the Output panel.
a. display()
c. trace()
b. show()
d. output()
____ 3. Actionscript programming requires ____ that consist of actions, event handlers, and other
programming statements to control how the actions are executed.
a. methods
c. writing script
b. behaviors
d. events
____ 4. Parameters are sometimes referred to as ____.
a. methods
c. statements
b. events
d. arguments
____ 5. As shown in the accompanying figure, parentheses are used to group ____.
a. related statements
c. methods
b. parameters
d. functions
____ 6. The results of a function, such as a return value, must be assigned a ____.
a. void
c. data type
b. validity argument
d. keycode
1/7
MULTIMEDIA DEVELOPMENT
____ 7. The item marked ____ in the accompanying figure is the function name.
a. 1
c. 3
b. 2
d. 4
____ 8. The item marked ____ in the accompanying figure is the parameter name.
a. 2
c. 4
b. 3
d. 5
____ 9. The event source is also known as the event ____.
a. occasion
c. target
b. function
d. object
____ 10. An event ____ is a method that the Flash Player executes in response to specific events.
a. handler
c. listener
b. manager
d. fixer
____ 11. The item marked ____ in the accompanying figure is the method to add the event listener
to the event source.
a. 1
c. 3
b. 2
d. 4
____ 12. The item marked ____ in the accompanying figure is the function to call when an event
occurs.
a. 1
c. 3
b. 2
d. 4
____ 13. The Simulate Download command is available on the ____ menu.
a. Edit
c. View
b. Preview
d. Simulation
2/7
MULTIMEDIA DEVELOPMENT
____ 14. A(n) ____ form allows the user to enter data into text boxes.
a. entry
c. input
b. data
d. text
____ 15. Creating an input form requires the use of ____ and input text.
a. static
c. relative
b. dynamic
d. absolute
____ 16. The ____ operator causes a condition to be true if either one of the comparisons is true.
a. ||
c. &&
b. \\
d. ++
____ 17. The logical operator ____ represents Or.
a. ++
b. &&
c. \\
d. ||
____ 18. Values entered into an input block are treated as ____ characters.
a. input
c. text
b. numeric
d. either b or c
Case-Based Critical Thinking Questions
Case 8-1
With your help, Philip has constructed the initial version of a Flash Web site for Snail’s
Pace Construction. He now needs to add some pages with interactive elements, including a
page that will allow potential clients to submit information about projects that they would
like Snail’s Pace Construction to complete. Philip asks you for help in learning how to use
ActionScript 3.0 to add these interactive elements.
____ 19. You show Philip how to write a function that processes information and returns a value or
performs some action. If a function does not return a value, what term must appear in the
function definition to indicate that no value is returned?
a. none
c. null
b. void
d. nil
3/7
MULTIMEDIA DEVELOPMENT
Case-Based Critical Thinking Questions
Case 8-2
Aaron is developing a Web site for the dinosaur exhibit at his local science museum, and he
asks for your assistance in using ActionScript 3.0 to add interactive elements to the Web
site. For example, he wants to allow users of the site to pause movie clips, and he wants to
include links to Web sites with additional information about dinosaurs.
____ 20. You tell Aaron that he can use ActionScript to pause a movie clip when the user clicks a
pause button. You mention that there are three elements involved when writing the
necessary code. One of these elements is the pause button itself, which is the object used to
trigger the desired action. Which of the following is a technical term for this type of
element?
a. event
c. event response
b. event source
d. event listener
____ 21. You next tell Aaron that he must create the function that the Flash Player will execute when
the user clicks the pause button. What is the term used for this type of function?
a. Event
c. event response
b. event source
d. event listener
____ 22. Once Aaron creates the function that will be executed when the user clicks the pause button,
he needs to establish a connection between that function and the pause button. What is the
name of the method used to establish the connection?
a. connectToEventSource
c. addEventListener
b. connectFunctionToButton
d. addEventAction
____ 23. You next show Aaron how he can use buttons to represent links to external Web sites.
When the viewer clicks a button, a browser window will open, displaying an external Web
site. In the functions that he writes for this purpose, Aaron needs to create an object with
the value of the Web address of the site to which he wants to link. What is the name of the
class that he will use to define this object?
a. URLRequest( )
c. constructor( )
b. eventListener( )
d. object( )
____ 24. In the functions that Aaron writes for the purpose of displaying an external Web site, he
needs to call a function that opens the Web site in the computer’s default browser. What is
the name of this function?
a. connectToURL
c. openURL
b. navigateToURL
d. URLRequest
4/7
MULTIMEDIA DEVELOPMENT
PART B: ANSWER ALL QUESTIONS (40 MARKS)
1. Name any FIVE movie clip properties that can be controlled with ActionScript (5
marks).
2. What is the basic logic behind a preloader ActionScript (7 marks)? Where do you place
the message and animation (3 marks)?
3. What keyword is used to create a new instance of an ActionScript class (3 marks)?
4. How is a display object added to the display list in ActionScript (2 marks)?
5/7
MULTIMEDIA DEVELOPMENT
5. What is one way to generate a random color in ActionScript (5 marks)?
6. Name THREE file types that you can load into a Flash project with the UILoader
component (3 marks).
7. Write the basic syntax to use for loop in ActionScript 3.0 (5 marks).
8. Name an ActionScript class that can be used to store a list of objects (3 marks).
9. What method can be used to add a new element to the next available location in an
Array instance (2 marks)?
10. Name an event that is available for the List component that can respond when the user
makes a selection from a List instance (2 marks).
6/7
MULTIMEDIA DEVELOPMENT
PART C: PRACTICAL QUESTIONS (30 MARKS)
Answer the following questions using Flash CS5.
http://cms.sc.edu.my .
Submit your answer to
A game prototype, “fruitGame.fla” was given to you and you were asked to complete the
game by:
i.
Creating a button that allows the user to replay the game (20 marks).
ii.
Add graphics in movie clips that are triggered when the user wins or loses the
game (10 marks).
000
7/7