Fluency with Information Technology, 6e (Snyder)
Chapter 21 A Case Study in Algorithmic Problem Solving: The Smooth Motion Application
21.1 True/False Questions
1) The Decomposition Principle can only be applied to the main task, not to any subtasks.
2) You must solve independent tasks before tasks which depend on them.
3) The Smooth Motion program uses 140 separate images to fill its 7 x 20 grid.
4) When using images in HTML, it is recommended that they be placed in a separate folder.
5) When the Smooth Motion web page first loads, before the JavaScript starts to run, the initial images
for the grid animation are added to the page the simple way, with 20 <img> tags typed into the
document.
6) In the Smooth Motion application, when the user has not moved the mouse over any key image, the
rightmost image is chosen at random.
7) In the Smooth Motion application, when the mouse enters one of the key images, that event runs
some JavaScript code which assigns the rightmost image of the animation grid.
1) A PERT chart
A) shows which tasks must be completed before which others.
B) displays the layout of elements on an HTML page.
C) gives a symbolic representation of the iterations of a for loop.
D) represents the structure of a JavaScript program.
2) When the Smooth Motion application animates the motion of the columns across the page,
document.images[i] is replaced by
A) document.images[i-1]
B) document.images[2*i]
C) document.images[i+1]
D) document.images[0]