comp sci mid term

Print this FlashCard
Question Answer
1. Alice provides a function called random number 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) t
4. This is your local drive found on the school network. H: drive
3. All Alice programs start with " first method" (t/f) t
5. How (in general) do you join strings together? Join a with b function
7. In Alice you can view the objects in which two different ways?
6. HTML comments start with <!– and end with –> (t/f) t
8. In Alice, there are four data types, what are they? Numbers, Boolean, string, object
9. In Alice, there are primitive functions associated with all objects, including the world object (t/f)
10. In the Fish/Gumdrop project we used which operator to determine which gumdrop is closest to the fish? If/else operation with big fish distance to gumdrop a
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? methods
13. What data type do you use for 1 or more letters? string
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? Hypertext Markup Language
20. What is the correct HTML element for inserting a line break? <br> </br>
18. What is the correct HTML element for the largest heading: <h1> </h1>
19. What is the difference between a method and a function? Method is a set of actions to do, function requires a variable and an action to execute.
20. What are the different Boolean data types? True and False
21. What are the different Number data types? intigers
22. What are the different string data types? String and array
23. This tag tells the browser that this is an HTML document? <HTML> </HTML>
24. These < > are called what in HTML? brackets
25. This tag defines a paragraph. Browsers automatically add some space (margin) before and after each element. <p></p>
26. 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>
27. Each object has six directions, which are also relative to the object, what are they? Forward, backward, left, right, up , down
28. In Alice, there are four data types, what are they? Number, Boolean, object, string
29. What is a named storage location in the computer's memory called? C: drive
30. In computer programs, simple decisions are broken into the two options, what are they? 1 and 0 (bits)
31. In all of the methods we wrote, the instructions have executed in order, one after the other. What is that known as? Do in order
32. If you execute one set of commands for given circumstances, and another set of commands for different circumstances, it is accomplished using what? variables
33. To allow for more flexibility, Alice, along with other programming languages, provide what to compare the relationship between two values? Logic
34. In order to combine multiple conditions into a single True or False result, we use what type of operators? If else statements
35. Which function accepts parameters which allow you to specify the minimum and maximum values for the random number? Maximum and Minimum
36. This is a type of repetition structure. Loop

Leave a Reply

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