Alice Chapter 4 Graded Quiz

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Any statements placed within a while statement will be repeated (looped) so long as the condition of the while statement is true. If a while loop never reaches a condition where its statement becomes false, ____________ will result.

an infinite loop

For the "Jane and ball" file, the ground (as an object) is visible within the dropAndBounce method.

False

When evaluating the code for the "Dragon Shake Head" file and the if statement that makes the dragon shake his head up and down, the uppercase "YES" or lowercase "yes" string values will be acceptable when the contentEquals() method is used.

False

Which of the follow answers is NOT true?

The doInOrder statements used within Alice methods produce parallel execution statements. The doTogether statements produce a sequence of execution of statements.

Which one of the following statements is FALSE?

The six relational operators mentioned in the text are often used to compare numeric values. Alice does not provide any methods that can be used to compare the relationships of two strings.

USING YOUR PAST ALICE EXPERIENCE FOR THIS QUESTION: The code for the walk method shown on page 180 in the "Ann Walk" file could easily be reused for other Bipeds.

True

While testing the GEOfile and entering a negative leg length for the triangle, a message will be produced that says, "A triangle's leg-lengths must be positive!" because a validating parameter using an IF statement is being used in the code.

True

While working with the "Dragon Descends on Gate" file we learned that the while statement can be used for a repetitive behavior (such as a loop) when we don't know in advance how many repetitions are required.

True

In the Dragon Flap file, the value of N was used to:

count the Number of times the dragon would flap his wings within a loop.

Which of the following items were not part of the code used with the "Jumping Fish" file?

A MIN_DISTANCE parameter was used to be sure a value was entered that was greater than 0 (or positive).


Kaugnay na mga set ng pag-aaral

Disease Flash Cards Microbiology 242

View Set

The Peritoneal Cavity & Abdominal Wall

View Set

Small Business Management Chapters 3, 4, & 5

View Set

Lab Simulation 7-1: Establish a Remote Desktop Connection: Network+

View Set

New Testament First Exam (Multiple Choice Chapters 1-10)

View Set

WC+ Ch. 20 - The Industrial Revolution Begins

View Set

Characteristics of Life Pretest Life Science A (90%)

View Set

BLAW CH. 9 Mindtap Practice Questions

View Set