Learn to Program using Alice

Practice Test for the Lesson Titled

The Program Development Cycle

 

Published:  May 12, 2007
By Richard G. Baldwin

File: Alice0130PracticeTest.htm


Questions

1.  True or False:  You should plan and design your program before you start writing code.

Answer and Explanation

2.  True or False: 

The program development cycle should include the following steps as a minimum:

  1. Understand the requirements.
  2. Design the program (down to a reasonable level of detail).
  3. Code the program.
  4. Test the program.
  5. Debug the program.
  6. Go back to the top and make improvements if necessary.

Answer and Explanation

3.  True or False:  If you don't know where you are going, any road will get you there.

Answer and Explanation

4.  True or False:  Debugging is the process of finding and correcting those programming errors or circumstances that cause the insect creatures in your 3D animated Alice game to run wild.

Answer and Explanation

5.  True or False:  The program development cycle can be applied to the programming project as a whole, but it cannot be applied to the smaller tasks required to complete the project.

Answer and Explanation

6.  True or False:  You can defer the decision on how to organize the program until after you begin coding.

Answer and Explanation

7.  True or False:  One of the main concepts of top-down design is that each module in the program should do only one thing and should do it well.

Answer and Explanation

8.  True or False:  In Alice, the primary mechanism for modularization consists of classes and objects.

Answer and Explanation

9.  True or False:  You can create new objects at runtime in Alice.

Answer and Explanation

10.  True or False:  You can create all of the objects that will be required at the beginning of the development cycle, you can manually add them as needed during the development cycle, or you can use a combination of the two.

Answer and Explanation

11.  True or False:  You can use any of the following three ways to create and arrange the objects in the world during the setup process (three ways to set the objects' viewpoints):

  1. You can drag them around and make other required adjustments with the mouse.
  2. You can set their positions and make other required adjustments by manually and interactively calling methods on the objects.
  3. You can write program code to create the objects and set the objects' viewpoints after the program starts running, but before the actual show begins.

Answer and Explanation

12.  True or False:  The only way to get multiple copies of an object in Alice is to import it multiple times from the gallery.

Answer and Explanation

13.  True or False:  The available color values for the color property of an object is limited to the printed list of colors in a pull-down list.

Answer and Explanation

14.  True or False:  Because of the drag-and-drop paradigm used in Alice, you can't write any of the methods in a program that call other new methods unless you write the lower-level methods first.

Answer and Explanation

15.  True or False:  In Alice, we usually design the method execution tree from the top down.  We also usually write the code to implement the tree from the top down.

Answer and Explanation



Copyright 2007, Richard G. Baldwin.  Faculty and staff of public and private non-profit educational institutions are granted a license to reproduce and to use this material for purposes consistent with the teaching process.  This license does not extend to commercial ventures.  Otherwise, reproduction in whole or in part in any form or medium without express written permission from Richard Baldwin is prohibited.


The following image is the splash screen from Alice 2.0, and is the property of the developers of Alice at Carnegie Mellon.

Answers and Explanations


Answer 15

False

Explanation 15

Back to Question 15


Answer 14

True

Explanation 14

Back to Question 14


Answer 13

False

Explanation 13

Back to Question 13


Answer 12

False

Explanation 12

Back to Question 12


Answer 11

False  You must manually create all objects in Alice.

Explanation 11

Back to Question 11


Answer 10

True

Explanation 10

Back to Question 10


Answer 9

False

Explanation 9

Back to Question 9


Answer 8

False

Explanation 8

Back to Question 8


Answer 7

True

Explanation 7

Back to Question 7


Answer 6

False

Explanation 6

Back to Question 6


Answer 5

False

Explanation 5

Back to Question 5


Answer 4

False

Explanation 4

Back to Question 4


Answer 3

True

Explanation 3

Back to Question 3


 

Answer 2

True

Explanation 2

Back to Question 2


Answer 1

True

Explanation 1

Back to Question 1


Copyright 2007, Richard G. Baldwin.  Faculty and staff of public and private non-profit educational institutions are granted a license to reproduce and to use this material for purposes consistent with the teaching process.  This license does not extend to commercial ventures.  Otherwise, reproduction in whole or in part in any form or medium without express written permission from Richard Baldwin is prohibited.

The following image is the splash screen from Alice 2.0, and is the property of the developers of Alice at Carnegie Mellon.

-end-