Alice programming (sample test at the end of an Alice course)
This user comes from kidslike.info
Find other posts in the same category: | | |

Quick summary in ten words or less
a 30-question multiple choice test

Long description

Here is the test. (I have put the text below, but I have not put in the images.)
To download the document, go here
http://visualization.sju.edu/assessment/ProgrammingConcepts.doc

Here is the page where I got this test from
http://visualization.sju.edu/assessment.html

Programming Concepts
Alice CCLI Study

1. Please enter your identification number (ID), as defined by your instructor. Limit your ID to no more than 8 digits and use no spaces or dashes.

________________________

2. Select the college or university where you are enrolled.

____Ithaca College
_____Duke University
_____University of Mississippi
_____Haverford College
_____Mississippi Valley State University
Other : Please specify: ____________________________________________

3. I am currently taking (check all that apply):

____Haverford: CS 100
____Ithaca College: CS190
____MVSU: CS 112
____SJU: CSC1301
____U Miss: CSCI 103
Other : Please specify ___________________________________________

Instructions: Read each question and all answers carefully. Select the BEST answer.
Part I. Fundamental Programming Concepts (Questions 6 – 19).

4. Which of the following is NOT used to describe a class?
____an abstraction of a real-life object
____a primitive property
____a collection of properties and methods
____a blueprint for creating an object
____defines a particular kind of object

5. Which of the following is used to describe an object?
____an instance of a class
____another name for a class
____a 3D model
____an event defined in a class
____another name for a method

6. Which of the following most accurately describes a program, written in an object oriented programming style?
____a collection of objects, all of the same type
____a collection of objects of different types
____a list of instructions for objects to perform certain actions
____a list of instructions for classes to perform certain actions
____a collection of information about instantiated objects

7. The purpose of a comment is
____code development
____data storage
____design
____documentation and explanation
____code execution

8. In an object oriented program, we use methods as a way to
____eliminate the need for events
____eliminate the need for parameters
____design and think about an intricate program
____check a condition in an If/Else statement
____none of the above

9. A method that is expected to receive an object or other information (when called) must be written with a(n)
____Loop
____comment
____parameter
____event
____If/Else

10. Designing a complex program using stepwise refinement is most likely to result in a program consisting of a ____well-organized
____sequence of actions in a single method
____network of several distinct methods that work together
____network of a single method with several events
____sequence of actions that cannot be interactive
____none of the above

11. Which of the following best describes the usefulness of class-level methods?
____writing a method that involves several objects
____reusing an object in other worlds
____accessing the parts of an object within a method
____writing events that involve an object
____using decision-making instructions with an object

12. Which of the following programming concepts involves creating a new class by starting with an existing class and defining new methods?
____style
____logic
____recursion
____inheritance
____function

13. In an interactive program, control of flow is determined by
____the programmer, at design-time
____the user, at runtime
____coordination of special effects
____random events
____passing parameters

14. Each property of an object is named as a(n)
____variable that has a value that can be changed
____variable that has a value that cannot be changed
____instruction that has a value of a specific data type
____instruction that has a value that can be changed
____instruction that has a value that cannot be changed

15. The expression height >= 5 evaluates to which of the following data types?
____Number
____Object
____Boolean
____String
____Color

16. In a program, a function is used to
____compute and return a value
____perform an animation (change the state)
____handle an event
____change an object's property
____iterate through a list

17. Repeated execution of a block of instructions a counted number of times is written using a
____Do together
____Do in order
____Loop
____Parameter
____For all together

PART II. Applying Programming Concepts in Alice (Questions 18-30)

18. In the initial scene shown below, Alice is facing the tree, one meter from it. From Alice's point of view, she can see a yellow flower to the left side of the tree, and a red flower on the right side of the tree. Each flower is one meter away from the tree. What is the result of running the block of code?

____Alice is near the tree facing the red flower.
____Alice is near the tree facing the yellow flower
____Alice is near the tree and facing the tree
____Alice does not move, instead turning to the right .25 revolutions
____Alice is near the yellow flower and facing the tree

19. Consider the same initial scene as in question #18. What would be the result of running the following piece of code?

____Alice is near the tree facing the yellow flower
____Alice is near the tree facing the red flower
____Alice is near the yellow flower facing the tree
____Alice is near the yellow flower facing away from the tree
____Alice is near the red flower facing away from the tree

20. What does it mean to say that a "Cat's Vehicle is the Horse"?

____if the cat moves, so does the horse
____clicking on the cat makes the horse move
____if the horse moves, so does the cat
____clicking on the horse makes the cat move
____none of the above

21. Consider the following scene, code, and patterns. Which pattern is traced on the ice by the ice skater when the code is run?

____Pattern A (a figure-eight)
____Pattern B (a triangle)
____Pattern C (a diamond)
____Pattern D (an oval)
____None of the above

22. Consider the following scene, code for the World.closer function, and a call to the function. What value would be returned when the call to the function is executed?

____none
____true
____false

23. Using the same initial scene as shown in question #22, what would the expression shown below evaluate to?

____true
____false
____Alice would throw an exception
____unclear -- it depends on the order of evaluation

24. Consider the code shown below. How many meters does the snowman move forward when this code is run?

____2
____5
____7
____10
____none of these

25. Consider the following scene and code. The Samurai is approximately 14 meters away from the ball and is facing it. What would happen if the code is run?

____The Samurai ends up 14 meters past the ball
____The Samurai ends up at the ball, in approximately 7 seconds
____The Samurai ends up at the ball, in approximately 13 seconds
____The Samurai ends up 6 meters in front of the ball, having traveled 1/2 the distance to the ball
____The Samurai ends up 1 meter away from the ball

26. Using the same scene as in question #25, what happens if the following code is run?

____The Samurai walks to the ball and then turns right
____The Samurai walks in a big square around the ball
____The Samurai ends up exactly where he started
____This is an example of an infinite loop -- the code never stops running
____The Samurai walks in a square approximately 3 times

27. Using the same initial scene as in question #25, what would happen if the following World.kick method is run?

____The Samurai moves forward 1 meter
____The Samurai jumps up, and then moves forward and back down
____The Samurai doesn't move
____This is an example of an infinite loop -- the code never stops running
____The Samurai moves up close to the ball, and then jumps over the ball

28. Consider the following initial scene, a list (named people), a mouse-click event, and a method (named World.Jump). What would happen when the world is run, and the Pharoah is clicked?

____all the objects move up 1 meter at the same time
____all the objects except for the Pharoah move up 1 meter
____all the objects except for the Pharoah and the snowman move up 1 meter at the same time
____the cheerleader moves up 1 meter, then the fan dancer moves up 1 meter, then the sheriff moves up 1 meter
____the cheerleader moves up 1 meter, then the Pharoah moves up 1 meter, then the fan dancer moves up 1 meter, ____then the sheriff moves up 1 meter

29. Using the same scene as in question #28, but writing the World.Jump method as shown below, what would happen when the world is run and the Pharoah is clicked?

____all the objects move up 1 meter at the same time
____all the objects except for the Pharoah move up 1 meter at the same time
____all the objects except for the Pharoah and the snowman move up 1 meter at the same time
____the cheerleader moves up 1 meter, then the fan dancer moves up 1 meter, then the sheriff moves up 1 meter
____the cheerleader moves up 1 meter, then the Pharoah moves up 1 meter, then the fan dancer moves up 1 meter, then the sheriff moves up 1 meter

30. Which of the If/Else coded statements below can be used to implement the following action: “If the cheerleader is less than 2 meters tall, resize the cheerleader by 2”?

____code A
____code B
____code C
____code D
____code E

31. During this semester, have you seen or worked with the Alice software in any way?

_____ Yes _____No


Rating (1 to 100) 75 = very good; 50 = good; 1 = unknown
75

To see articles on the same topic, click the links below the name of the author at the top of this page.