Object-Oriented Software Design Chapter 9 Questions For Alice World Contains Six Penguin Objects Necessarily The Case

subject Type Homework Help
subject Pages 1
subject Words 304
subject Authors Randy Pausch, Wanda P. Dann

Unlock document.

This document is partially blurred.
Unlock all pages and 1 million more documents.
Get Access
page-pf1
Questions for Chapter 9
1) If an Alice world contains six penguin objects, it is necessarily the case that the six
penguins are items in a list of penguins? Explain your answer.
2) What is the purpose of creating a list of similar items in a program?
It is then possible to iterate through the items (either in order or simultaneously) to
3) For the programmer, what is the advantage of using a list in a program?
The programmer can write a single method/animation, and then use a For all in order or
4) The list examples in this chapter illustrate lists where the items are all objects. What other
types of items could have been used?
You can have a list of values of any valid type in Alice. Some of the more popular ones
5) Which control construct is used to iterate through a list of items in sequence?
6) Which control construct is used to iterate simultaneously (all items in the list at once)?
7) To which of the repetition constructs (Loop or While) is the For all in order construct
most similar? Explain your choice.

Trusted by Thousands of
Students

Here are what students say about us.

Copyright ©2022 All rights reserved. | CoursePaper is not sponsored or endorsed by any college or university.