Compsci Midterm Midterm review

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.
2. Alice is a 3D programming environment that is an introduction to object oriented programming. (t/f) True
3. All Alice programs start with "world.my first method" (t/f) True
4. This is your local drive found on the school network. C Drive
5. How (in general) do you join strings together? A joined with B
6. HTML comments start with <!– and end with –> (t/f)
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? Number, Boolean, Object and Other
9. In Alice, there are primitive functions associated with all objects, including the world object (t/f) True
10. In the Fish/Gumdrop project we used which operator to determine which gumdrop is closest to the fish?
11. What allows you to create a group of items of the same data type? List
12. What allows you to reuse code without having to repeat it?
13. What data type do you use for 1 or more letters? Other
14. What data type do you use for a character? Object Variable
15. What data type do you use for positive, negative or decimal numbers? Number Variable
16. What data type do you use for yes/no or true/false questions? Boolean Variable
17. What does HTML stand for? Hyper Text Markup Language
18. What is the correct HTML element for inserting a line break? <br></br>
19. What is the correct HTML element for the largest heading: <h1></h1>
20. What is the difference between a method and a function? A function returns a value, while a method doesn’t
21. What are the different Boolean data types?
22. What are the different Number data types?
23. What are the different string data types?
24. This tag tells the browser that this is an HTML document <!DOCTYPE html>
25. These < > are called what in HTML?
26. This tag defines a paragraph. Browsers automatically add some space (margin) before and after each element. <p> </p>
27. This HTML tag defines the main content of the HTML document or the section of the HTML document that will be directly visible on your web page. <body></body>
28. Each object has six directions, which are also relative to the object, what are they? Up, down, right, left, forward and backward
29. In Alice, there are four data types, what are they? Number, Boolean, Object and Other
30. What is a named storage location in the computer's memory called? Variable
31. In computer programs, simple decisions are broken into the two options, what are they?
32. In all of the methods we wrote, the instructions have executed in order, one after the other. What is that known as?
33. If you execute one set of commands for given circumstances, and another set of commands for different circumstances, it is accomplished using what?
34. To allow for more flexibility, Alice, along with other programming languages, provide what to compare the relationship between two values?
35. In order to combine multiple conditions into a single True or False result, we use what type of operators?
36. Which function accepts parameters which allow you to specify the minimum and maximum values for the random number?
37. This is a type of repetition structure.
38. When you select this option, the loop will repeat without ending until the world is stopped by the user. Infinity times
39. What is the html code to insert an image link in your website? <a href=”url”link> text</a>40.
40. What HTML code creates a horizontal line?
41. Which HTML code creates a list? <li></li>
42. What is a detailed yet readable description of what a computer program or algorithm must do called?
43. Which of these would you use to make objects do a specific task at the same time? Do together
44. Which of these would you use to make objects do a specific task in a specified order? Do in order
45. Which of these would you use to make a method repeat something a specific number of times? Loop
46. Where would you find the math functions in Alice World Functions
47. In Alice, where would you find “ask user for a number” World Function, under String
48. In Alice, where would you find ______’s width Object Functions
49. In Alice, where would you go to change an objects opacity? Object functions
50. In Alice, where would you go to change the vehicle of an object? Properties
51. In Alice, why would you set a dummy camera object?
52. 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
53. The process of responding to an event is commonly called what?
54. Most event tiles require _____________, such as the method that should run in response to the event.
55. A method that executes in response to an event is commonly referred to as _______________.
56. When a world is first created, the only event is the ___________event.

Leave a Reply

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

»