Published: May 24, 2007
By Richard G. Baldwin
File: Alice0150PracticeTest.htm
1. True or False: If you write new class-level methods, you can create new classes that include those methods for use in future programs.
2. True or False: Every true OOP language must support the following four programming concepts:
3. True or False: Alice is an object-oriented programming language.
4. True or False: Alice provides strong support for polymorphism.
5. True or False: In OOP, a class is a blueprint from which objects can be created.
6. True or False: The Alice gallery contains about a dozen classes from which you can create objects and add them to your worlds.
7. True or False: In more conventional OOP languages, you can start from scratch and create your own classes. However, that is not possible in Alice.
8. True or False: When a new class extends an existing class, an object of the new class will contain all of the variables (properties in Alice) and all of the methods (class-level methods in Alice) that are defined in the existing class, plus all of the variables and all of the methods that are inherited into the existing class from all of its ancestors in the inheritance family tree.
9. True or False: Typically, a new class that extends an existing class will be a more specialized version of the existing class.
10. True or False: Alice provides no support for inheritance.
11. True or False: When you create new classes in Alice, you can add them to the gallery.
12. True or False: The Alice program was written in Java.
13. True or False: To write a class-level method, do the following:
14. True or False: To declare and initialize class-level variables, do the following:
15. True or False: In a conventional object-oriented programming language, if two or more methods have the same names but the argument lists are different this is commonly referred to as method overriding.
16. True or False: In a conventional object-oriented programming language, if two or more methods have the same names and the same argument lists, this is commonly referred to as method overriding.
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.
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-