compsci Midterm

Print this FlashCard
Question Answer
1. Alice provides a function called__________________which is part of the world object that generates a random number in a specified range. random number
2. Alice is a 3D programming environment that is an introduction to object oriented programming. true
3. All Alice programs start with " first method" true
4. This is your local drive found on the school network. c drive
5. How (in general) do you join strings together? an a joined with b function
6. HTML comments start with true
7. In Alice you can view the objects in which two different ways? single view and quad view
8. In Alice, there are four data types, what are they? Boolean, number, object, other
9. In Alice, there are primitive functions associated with all objects, including the world object true
12. What allows you to reuse code without having to repeat it? a loop method
13. What data type do you use for 1 or more letters? a string variable
14. What data type do you use for a character? object
15. What data type do you use for positive, negative or decimal numbers? number
16. What data type do you use for yes/no or true/false questions? Boolean
17. What does HTML stand for? Hyper Text Markup Language
20. What is the correct HTML element for inserting a line break?
18. What is the correct HTML element for the largest heading?
19. What is the difference between a method and a function? a function returns a value
20. What are the different Boolean data types? not a, both a and b, either a or b or both
23. This tag tells the browser that this is an HTML document.
46. In Alice, where would you find “ask user for a number”? In the ask user function
48. In Alice, where would you go to change an objects opacity? properties tab
49. In Alice, where would you go to change the vehicle of an object? properties tab
50. In Alice, why would you set a dummy camera object? In the more controls tab
51. What is something that occurs while an Alice program is running? For example, the user might click the mouse, or press a key on the keyboard. Events
52. The process of responding to an event is commonly called what? a reaction
55. When a world is first created, the only event is the__________________ event when world starts, do first method

Leave a Reply

Your email address will not be published. Required fields are marked *