Complete Download of Prelude to Programming 6th Edition Venit Test Bank Full Chapters in PDF DOCX
Complete Download of Prelude to Programming 6th Edition Venit Test Bank Full Chapters in PDF DOCX
https://testbankfan.com/product/prelude-to-programming-6th-edition-
venit-solutions-manual/
https://testbankfan.com/product/c-programming-from-problem-analysis-
to-program-design-6th-edition-malik-test-bank/
https://testbankfan.com/product/c-programming-from-problem-analysis-
to-program-design-6th-edition-malik-solutions-manual/
https://testbankfan.com/product/introduction-to-programming-using-
python-1st-edition-schneider-test-bank/
Introduction to Programming with C++ 3rd Edition Liang
Test Bank
https://testbankfan.com/product/introduction-to-programming-
with-c-3rd-edition-liang-test-bank/
https://testbankfan.com/product/introduction-to-programming-using-
visual-basic-10th-edition-schneider-test-bank/
https://testbankfan.com/product/introduction-to-programming-
with-c-4th-edition-diane-zak-test-bank/
https://testbankfan.com/product/introduction-to-java-programming-
comprehensive-version-10th-edition-liang-test-bank/
https://testbankfan.com/product/introduction-to-java-programming-
comprehensive-version-9th-edition-liang-test-bank/
Prelude to Programming 6th edition Elizabeth Drake
MULTIPLE CHOICE
a. 1, 2, 3, 4
b. 0, 1, 2, 3, 4
c. 0, 1, 2, 3
d. 4, 5, 6, 7, 8, 9, 10, 11, 12, 13
ANS: D
a. 1, 2, 3, 4
b. 0, 1, 2, 3, 4
c. 0, 1, 2, 3
d. 4, 5, 6, 7, 8, 9, 10, 11, 12, 13
ANS: C
a. 3 b. 4 c. 1 d. 3 4
4 5 3 6 8
6 5 2
8 6 4
ANS: A
a. 3 b. 4 c. 1 d. 3 4
4 5 3 6 8
6 5 2
8 6 4
ANS: A
a. 5 b. 5 c. 5 d. 2
7 5 5 5
7.5 7 3
7 7 7
ANS: B
a. While
b. For
c. Repeat ... Until
d. Do ... While
e. all of the above can be nested in a For loop
ANS: E
a. 13 b. 7 c. 7 6 d. 13
14 6 7 7 14
15 7 8 6 14
8 8 7 15
ANS: D
8. What will be displayed after code corresponding to the following pseudocode is run?
Declare A As Integer
Declare B As Integer
Declare C As Integer
Set A = 3
While A <= 6
Set B = (2 * A) – 1
Write B
Set C = A
While C <= (A+1)
Write C
Set C = C + 1
End While(C)
Set A = A + 2
End While(A)
a. 5 b. 3 c. 5 d. 5
3 5 3 3
9 4 4 3
5 5 9 9
9 5 5
5 6 5
ANS: C
9. Which of the following statements should be used to validate that a number input by the
user into a variable named Widgets is an integer value?
a. 4.41
b. 3.5
c. 3.91
d. 4.5
ANS: B
13. What is the output of the code corresponding to the following pseudocode?
Declare M As Integer
Declare P As Integer
Repeat
Set P = 1
While P < 4
Write M + “ and “ + P
Set P = P + 1
End While(P)
Set M = M + 1
Until M = 3
14. Which statement would produce an output of one of the following numbers:
5, 6, 7, 8, 9, 10
a. Floor(Random() * 5) + 5
b. Floor(Random() * 6) + 5
c. Floor(Random()) + 5
d. Floor(Random() * 9) - 5
ANS: A
15. What is displayed when the following pseudocode is coded and run, given that the input is
“Harold”?
TRUE/FALSE
1. True/False: It is possible to have both a Select Case statement and an If-Then
structure within a single loop.
ANS: T
4. True/False: If one For loop is nested within another, then the limit value for the two loops
must be different.
ANS: F
14. True/False: In a program with nested loops, the inner loop is completed before the outer
loop.
ANS: T
SHORT ANSWER
1. Numbers that form an unpredictable sequence in which each number is equally likely to oc-
cur are called __________ __________.
ANS: random numbers
3. The starting value of an algorithm used to generate a range of numbers is called the
_________.
ANS: seed
5. When one loop is contained within another loop, we say these are __________ loops.
ANS: nested
6. The statement
If Int(Number) != Number Then...
checks to see if the value of Number is a(n) _________.
ANS: integer
7. In a program with nested loops, the outer loop is completed __________ (before/after) the
inner loop.
ANS: after
8. If a counter named MyCount in a For loop has the value of 5 on the first pass, 10 on the
second pass, 15 on the third pass, and so on, the increment would be written as
__________.
ANS: MyCount+5
9. If a counter named MyCount in a For loop has the initial value of 5 on the first pass and
we want it to go through 4 iterations, increasing its value by 5 on each pass, the test
condition would be written as __________.
ANS: MyCount <= 20 or MyCount < 21
10. The function that returns the number of characters in a string is the __________ function.
ANS: Length_Of()
πμκνον = pyknon
In another place (Probl. xix. 32) the question is asked, why the
interval of the octave is called dia pasôn, not di' oktô,—as the
Fourth is dia tessarôn, the Fifth dia pente. The answer suggested
is that there were anciently seven strings, and that Terpander left out
the Tritê and added the Nêtê. That is to say, Terpander increased the
compass of the scale from the ancient two tetrachords to a full
Octave; but he did not increase the number of strings to eight. Thus
he produced a scale like the standard octave, but with one note
wanting; so that the term di oktô was inappropriate.
Among later writers who confirm this account we may notice
Nicomachus, p. 7 Meib. mesê dia tessarôn pros amphotera en tê
heptachordô kata to palaion diestôsa: and p. 20 tê toinyn
archaiotropô lyra toutesti tê heptachordô, kata synaphên ek
duo tetrachordôn synestôsê k.t.l.
It appears then that two kinds of seven-stringed scales were known,
at least by tradition: viz. (1) a scale composed of two conjunct
tetrachords, and therefore of a compass less than an octave by one
tone; and (2) a scale of the compass of an octave, but wanting a
note, viz. the note above Mesê. The existence of this incomplete
scale is interesting as a testimony to the force of the tradition which
limited the number of strings to seven.
§ 18. The Perfect System.
The term 'Perfect System' (systêma teleion) is applied by the
technical writers to a scale which is evidently formed by successive
additions to the heptachord and octachord scales explained in the
preceding chapter. It may be described as a combination of two
scales, called the Greater and Lesser Perfect System.
The Greater Perfect System (systêma teleion meizon) consists of
two octaves formed from the primitive octachord System by adding a
tetrachord at each end of the scale. The new notes are named like
those of the adjoining tetrachord of the original octave, but with the
name of the tetrachord added by way of distinction. Thus below the
original Hypatê we have a new tetrachord Hypatôn (tetrachordon
hypatôn), the notes of which are accordingly called Hypatê Hypatôn,
Parhypatê Hypatôn, and Lichanos Hypatôn: and similarly above Nêtê
we have a tetrachord Hyperbolaiôn. Finally the octave downwards
from Mesê is completed by the addition of a note appropriately called
Proslambanomenos.
The Lesser Perfect System (systêma teleion elasson) is apparently
based upon the ancient heptachord which consisted of two 'conjunct'
tetrachords meeting in the Mesê. This scale was extended
downwards in the same way as the Greater System, and thus became
a scale of three tetrachords and a tone.
These two Systems together constitute the Perfect and
'unmodulating' System (systêma teleion ametabolon), which may
be represented in modern notation [9] as follows:
a Nêtê Hyperbolaiôn } Tetrachord
g Paranêtê Hyperbolaiôn } Hyperbolaiôn
f Tritê Hyperbolaiôn }
e Nêtê Diezeugmenôn
d Paranêtê Diezeugmenôn }
c Tritê Diezeugmenôn } Tetrachord
b Paramesê } Diezeugmenôn
d Nêtê Synêmmenôn }
c Paranêtê Synêmmenôn } Tetrachord
b♭ Tritê Synêmmenôn } Synêmmenôn
a Mesê }
g Lichanos Mesôn } Tetrachord
f Parhypatê Mesôn } Mesôn
e Hypatê Mesôn
d Lichanos Hypatôn }
c Parhypatê Hypatôn } Tetrachord
b Hypatê Hypatôn } Hypatôn
a Proslambanomenos
Arist. Probl. xix. 20: Dia ti ean men tis tên mesên kinêsê
hêmôn, harmosas tas allas chordas, kai chrêtai tô
organô, ou monon hotan kata ton tês mesês genêtai
phthongon lypei kai phainetai anarmoston, alla kai kata
tên allên melôdian, ean de tên lichanon ê tina allon
phthongon, tote phainetai diapherein monon hotan
kakeinê tis chrêtai? ê eulogôs touto symbainei? panta
gar ta chrêsta melê pollakis tê mesê chrêtai, kai pantes
hoi agathoi poiêtai pykna pros tên mesên apantôsi, kan
apelthôsi tachy epanerchontai, pros de allên houtôs
oudemian. kathaper ek tôn logôn eniôn exairethentôn
syndesmôn ouk estin ho logos Hellênikos, hoion to te kai
to kai, enioi de outhen lypousi, dia to tois men anankaion
einai chrêsthai pollakis, ei estai logos, tois de mê, houtô
kai tôn phthongôn hê mesê hôsper syndesmos esti, kai
malista tôn kalôn, dia to pleistakis enyparchein ton
phthongon autês.
'Why is it that if the Mesê is altered, after the other strings have
been tuned, the instrument is felt to be out of tune, not only
when the Mesê is sounded, but through the whole of the music,
—whereas if the Lichanos or any other note is out of tune, it
seems to be perceived only when that note is struck? Is it to be
explained on the ground that all good melodies often use the
Mesê, and all good composers resort to it frequently, and if they
leave it soon return again, but do not make the same use of any
other note? just as language cannot be Greek if certain
conjunctions are omitted, such as te and kai, while others may
be dispensed with, because the one class is necessary for
language, but not the other: so with musical sounds the Mesê is
a kind of 'conjunction,' especially of beautiful sounds, since it is
most often heard among these.'
In another place (xix. 36) the question is answered by saying that the
notes of a scale stand in a certain relation to the Mesê, which
determines them with reference to it (hê taxis hê hekastês êdê di'
ekeinên): so that the loss of the Mesê means the loss of the ground
and unifying element of the scale (arthentos tou aitiou tou
hêrmosthai kai tou synechontos) [18].
These passages imply that in the scale known to Aristotle, viz. the
octave e-e, the Mesê a had the character of a Tonic or key-note. This
must have been true a fortiori of the older seven-stringed scale, in
which the Mesê united the two conjunct tetrachords. It was quite in
accordance with this state of things that the later enlargement
completed the octaves from Mesê downwards and upwards, so that
the scale consisted of two octaves of the form a-a. As to the question
how the Tonic character of the Mesê was shown, in what parts of the
melody it was necessarily heard, and the like, we can but guess. The
statement of the Problems is not repeated by any technical writer,
and accordingly it does not appear that any rules on the subject had
been arrived at. It is significant, perhaps, that the frequent use of the
Mesê is spoken of as characteristic of good melody (panta ta
chrêsta melê pollakis tê mesê chrêtai), as though tonality were
a merit rather than a necessity.
Another passage of the Problems has been thought to show that in
Greek music the melody ended on the Hypatê. The words are these
(Probl. xix. 33):
Here the Mesê is again the archê or beginning, but the order is the
ascending one, and consequently the Nêtê is the end. The passage
confirms what we have learned of the relative importance of the
Mesê: but it certainly negatives any inference regarding the note on
which the melody ended.
It appears, then, that the Mesê of the Greek standard System had
the functions of a key-note in that System. In other words, the music
was in the mode (using that term in the modern sense) represented
by the octave a-a of the natural key—the Hypo-dorian or Common
Species. We do not indeed know how the predominant character of
the Mesê was shown—whether, for example, the melody ended on
the Mesê. The supposed evidence for an ending on the Hypatê has
been shown to be insufficient. But we may at least hold that as far as
the Mesê was a key-note, so far the Greek scale was that of the
modern Minor mode (descending). The only way of escape from this
conclusion is to deny that the Mesê of Probl. xix. 20 was the note
which we have understood by the term—the Mesê of the standard
System. This, as we shall presently see, is the plea to which Westphal
has recourse.
§ 21. The Species of a Scale.
The object of the preceding discussion has been to make it clear that
the theory of a system of modes—in the modern sense of the word—
finds no support from the earlier authorities on Greek music. There
is, however, evidence to show that Aristoxenus, and perhaps other
writers of the time, gave much thought to the varieties to be
obtained by taking the intervals of a scale in different order. These
varieties they spoke of as the forms or species (schêmata, eidê) of
the interval which measured the compass of the scale in question.
Thus, the interval of the Octave (dia pasôn) is divided into seven
intervals, and these are, in the Diatonic genus, five tones and two
semitones, in the Enharmonic two ditones, four quarter-tones, and a
tone. As we shall presently see in detail, there are seven species of
the Octave in each genus. That is to say, there are seven admissible
octachord scales (systêmata emmelê), differing only in the
succession of the intervals which compose them.
Further, there is evidence which goes to connect the seven species of
the Octave with the Modes or harmoniai. In some writers these
species are described under names which are familiar to us in their
application to the modes. A certain succession of intervals is called
the Dorian species of the Octave, another succession is called the
Phrygian species, and so on for the Lydian, Mixo-lydian, Hypo-dorian,
Hypo-phrygian, and Hypo-lydian. It seems natural to conclude that
the species or successions of intervals so named were characteristic
in some way of the modes which bore the same names, consequently
that the modes were not keys, but modes in the modern sense of the
term.
In order to estimate the value of this argument, it is necessary to
ask, (1) how far back we can date the use of these names for the
species of the Octave, and (2) in what degree the species of the
Octave can be shown to have entered into the practice of music at
any period. The answer to these questions must be gathered from a
careful examination of all that Aristoxenus and other early writers say
of the different musical scales in reference to the order of their
intervals.
§ 22. The Scales as treated by
Aristoxenus.
The subject of the musical scales (systêmata) is treated by
Aristoxenus as a general problem, without reference to the scales in
actual use. He complains that his predecessors dealt only with the
octave scale, and only with the Enharmonic genus, and did not
address themselves to the real question of the melodious sequence
of intervals. Accordingly, instead of beginning with a particular scale,
such as the octave, he supposes a scale of indefinite compass,—just
as a mathematician postulates lines and surfaces of unlimited
magnitude. His problem virtually is, given any interval known to the
particular genus supposed, to determine what intervals can follow it
on a musical scale, either ascending or descending. In the Diatonic
genus, for example, a semitone must be followed by two tones, so as
to make up the interval of a Fourth. In the Enharmonic genus the
dieses or quarter-tones can only occur two together, and every such
pair of dieses (pyknon) must be followed in the ascending order by
a ditone, in the descending order by a ditone or a tone. By these and
similar rules, which he deduces mathematically from one or two
general principles of melody, Aristoxenus in effect determines all the
possible scales of each genus, without restriction of compass or pitch
[20]. But whenever he refers for the purpose of illustration to a scale
in actual use, it is always the standard octave already described (from
Hypatê to Nêtê), or a part of it. Thus nothing can be clearer than the
distinction which he makes between the theoretically infinite scale,
subject only to certain principles or laws determining the succession
of intervals, and the eight notes, of fixed relative pitch, which
constituted the gamut of practical music.
The passages in which Aristoxenus dwells upon the advance which he
has made upon the methods of his predecessors are of considerable
importance for the whole question of the species of the Octave.
There are three or four places which it will be worth while to quote.