1

ITP100: Mid-Term Review Study Sheet (Chapters 1 through 4-2). Some of these questions will be Open Book, & some will be Closed Book.

Multiple Choice

1. A sequence of steps that must be taken to perform a task is called a(n):

2. Because of Alice’s drag-and-drop interface, Alice programs cannot contain

3. The following button is used to run an Alice program.

4. An object can have:

5. The Alice galleries contain:

6. The only language a computer can understand is

7. Machine language instructions are written in

8. Which of the following is used to add objects to an Alice world?

9. Which of the following is used to edit a method associated with an object?

10. What would you use to add a snowman to an Alice world?

11. Which property would be used to make an object invisible?

12. Which property would be used to make an object purple?

13. Which property would be used to show the location of an object in relation to the center of the world?

14. When an object is rotated, it turns around its

15. When an Alice world is first created, it must contain the following objects:

True/False

1. True/False: You can create 3D animations in Alice.

2. True/False: Syntax errors are easy to create in Alice.

3. True/False: Most people prefer to program directly in machine language.

4. True/False: An algorithm is a set of instructions that a programmer can translate into a programming language.

5. True/False: The speed slider is used to alter the speed of a program as it is running.

6. True/False: The Go button is used to run an Alice program.

7. True/False: Properties are used to specify characteristics of an object.

8. True/False: The opacity property could be used to make an object red.

9. True/False: The invisible property is used to make an object invisible.

10. True/False: An object can be made up of other objects.

11. True/False: If an Alice world contains three instances of a chicken, then the chickens must all face the same direction.

12. True/False: The camera is an object that is automatically placed in every Alice world.

Fill in the Blank

1. A(n) ______is a sequence of steps that must be taken to perform a task.

2. A computer ______is a set of instructions that a computer follows to perform a task.

3. ______is the only language that computers understand.

4. Machine language instructions are written in ______.

5. Misspelled keywords, missing punctuation characters, and other such errors are called ______errors.

6. The ______Editor is used to create and edit methods.

7. The ______button is used to run an Alice program.

8. An Alice world is created by placing items in the world. These items are called ______.

9. ______are used to specify an object’s characteristics.

10. The ______property would be used to make an object red.

11. The ______property would be used to make an object invisible.

12. A(n) ______is a set of programming statements associated with an object.

13. In programming terminology, an object is said to be a(n) ______of a class.

14. The Alice galleries contain ______, which are used to create an Alice world.

15. The ______mode is used to add objects to an Alice world.

16. Objects in an Alice world can be moved in ______directions.

17. The position of the camera, including the direction in which it points is called the camera’s ______.

18. When an object is rotated, it turns around its ______point.

19. An object’s ______property shows the location of the object in relation to the center of the Alice world.

Multiple Choice

1. What is the name of the default world method that automatically runs when an Alice program is executed?

2. Which of the following is not a primitive method?

3. When creating a new Alice world, which of the following should be done prior to the rest?

4. The foottap method associated with the Frog class is what type of method?

5. Which of the following identifiers utilizes the camelCase naming convention?

6. Which of the following is the first step in the program development cycle?

7. Pseudo code is written in the following language:

8. Which Alice structure is used to have two objects move towards each at the same time?

9. Which Alice structure is used to have one object move before another object?

10. The say method associated with the Frog class is what type of method?

11. Which type of error will not prevent a program from running, but will produce incorrect results?

12. The my first world method is what type of method?

13. How are method calls added to a method in the Method Editor?

14. Which of the following structures are used to add explanatory notes into a method?

15. Which of the following is a primitive method?

True/False

1. True/False: Only certain Alice objects have all of the primitive methods.

2. True/False: All classes have custom methods.

3. True/False: Using the camelCase naming convention is a good way to have easy-to-read, meaningful identifiers.

4. True/False: The move method can be used to change the direction an object is facing.

5. True/False: The resize method can be used to change the size of an object.

6. True/False: The orient to method and the various turn methods can all be used to change the direction an object is facing.

7. True/False: The jump method is a primitive method.

8. True/False: The Do together structure is used to execute a set of instructions sequentially.

9. True/False: The comment structure is used to improve the readability of a program.

10. True/False: Pseudocode and flowcharting are tools used by programs during debugging.

Fill in the Blank

1. World.______is the default world method that automatically runs when an Alice program is executed?

2. The built-in methods that are associated with every object are called ______methods.

3. The programming terminology for executing a method is ______a method.

4. Additional information to a called method is provided via one or more ______.

5. The ______method is used to change the location of an object.

6. The ______method is used to change the size of an object.

7. The ______method is used to change the direction an object is facing.

8. The ______method is used to turn an object so it faces in the same direction as another object.

9. Method calls are added to a method by ______the method tile from the Details Panel to the Method Editor.

10. A(n) ______method is unique to a specific class.

11. Pseudo code is written in the ______language.

12. ______and ______are two tools use by programmers to design a method.

13. A(n) ______error will not prevent the program from running, but will produce incorrect results.

14. The ______tile is used to insert explanatory notes into a method.

15. The ______structure is used to execute a set of instructions simultaneously.

16. The ______structure is used to execute a set of instructions sequentially.

Multiple Choice

1. Which of the following belongs to a specific method?

2. Which of the following belongs to the world?

3. Which of the following holds an argument that is passed to a method?

4. Which of the following belongs to a specific object?

5. Which of the following variable types can hold a value of either true or false?

6. Which of the following variable types should be used to store someone’s age?

7. When a local variable is declared, which of the following can be set?

8. Which of the following functions will input a Boolean value from the user?

9. Which of the following functions could be used to input the user’s first name?

10. Given that the variable days has a value of 14, the following expression would evaluate to what value? days / 7 + 1

11. Which category of primitive functions returns values indicating an object’s distance or nearness to another object?

12. Which category of primitive functions has a function that could test whether an object is above another object?

13. Which category of primitive functions has a function that returns an object’s height?

14. What is the name of the special Alice object that allows you to add text to a world?

15. What is the name of the operation that joins two strings together?

True/False

1. True/False: A class-level variable belongs to the world.

2. True/False: A parameter variable belongs to a specific object.

3. True/False: A local variable belongs to a specific method.

4. True/False: A Boolean variable can only store the two values true or false.

5. True/False: To assign a value to a variable during run-time, drag the variable tile and drop it into the method editor where you want the set statement to be executed.

6. True/False: The ask user functions are used to get input from the user.

7. True/False: String addition is used to join two strings together.

8. True/False: Local variables are created in the local area of the Method Editor.

9. True/False: A function is not considered to be a method.

10. True/False: A string is a sequence of characters and is used to store text.

Fill in the Blank

1. A(n) ______variable belongs to the world.

2. A(n) ______variable belongs to a specific object.

3. A(n) ______variable holds an argument that is passed to a method.

4. A(n) ______variable belongs to a specific method.

5. A(n) ______is a named location in memory.

6. A(n) ______variable can hold one of two values: true or false.

7. Local variables are created in the ______area of the Method Editor.

8. A(n) ______is a special type of method that returns a value.

9. The ______function is used to input a numeric value from the user.

10. The ______function is used to input a Boolean value from the user.

11. The ______functions return values indicating an object’s proximity to another object.

12. Given that the variable hours has a value of 10, the following expression would evaluate to what value? hours / 5 + 2

13. String ______is used to join two strings together.

14. Alice has a special object called ______text that allows you to add text to a world.

15. A(n) ______is a sequence of characters and is used to store text.

Multiple Choice

1. Which type of structure is used to determine which of two sets of instructions to execute?

2. Which type of structure is used to execute a set of instructions in the order in which they appear?

True/False

1. True/False: The If/Else instruction uses a Boolean condition to determine which set of instructions to execute.

2. True/False: The Else part of the If/Else instruction must have at least one statement.

3. True/False: The If/Else instruction cannot contain another If/Else instruction.

Fill in the Blank

1. The If/Else decision structure uses a ______condition to determine which set of instructions to execute.

2. In the ______-alternative decision structure the Else part is empty.

3. We say a decision structure contains ______it is considered “nested”.

4. What is the decimal number 125 expressed in binary? ______

5. What is the binary number 1010000110100010 expressed in hexadecimal? ______

6. What is the hexadecimal number FF0A expressed in binary? ______