Introduction to Programming with C++ 3rd Edition Liang Test Bank pdf download
Introduction to Programming with C++ 3rd Edition Liang Test Bank pdf download
https://testbankdeal.com/product/introduction-to-programming-
with-c-3rd-edition-liang-test-bank/
https://testbankdeal.com/product/introduction-to-c-programming-and-
data-structures-4th-edition-liang-solutions-manual/
testbankdeal.com
https://testbankdeal.com/product/introduction-to-programming-
with-c-4th-edition-diane-zak-test-bank/
testbankdeal.com
https://testbankdeal.com/product/introduction-to-programming-
with-c-4th-edition-diane-zak-solutions-manual/
testbankdeal.com
https://testbankdeal.com/product/elementary-algebra-4th-edition-
sullivan-test-bank/
testbankdeal.com
Consumer Behavior 10th Edition Solomon Test Bank
https://testbankdeal.com/product/consumer-behavior-10th-edition-
solomon-test-bank/
testbankdeal.com
https://testbankdeal.com/product/fundamentals-of-human-resource-
management-7th-edition-noe-solutions-manual/
testbankdeal.com
https://testbankdeal.com/product/nutrition-an-applied-approach-5th-
edition-thompson-test-bank/
testbankdeal.com
https://testbankdeal.com/product/operations-management-processes-and-
supply-chains-10th-edition-krajewski-solutions-manual/
testbankdeal.com
https://testbankdeal.com/product/intermediate-microeconomics-and-its-
application-11th-edition-nicholson-solutions-manual/
testbankdeal.com
Medical Surgical Nursing in Canada 2nd Edition Lewis Test
Bank
https://testbankdeal.com/product/medical-surgical-nursing-in-
canada-2nd-edition-lewis-test-bank/
testbankdeal.com
Name:_______________________ CSCI 2490 C++ Programming
Armstrong Atlantic State University
(50 minutes) Instructor: Dr. Y. Daniel Liang
1
12 quizzes for Chapter 7
1 If you declare an array double list[] = {3.4, 2.0, 3.5, 5.5}, list[1] is ________.
A. 3.4
B. undefined
C. 2.0
D. 5.5
E. 3.4
2 Are the following two declarations the same
A. no
B. yes
3 Given the following two arrays:
1
A. yes
B. no
6 Suppose char city[7] = "Dallas"; what is the output of the following statement?
A. Dallas0
B. nothing printed
C. D
D. Dallas
7 Which of the following is incorrect?
A. int a(2);
B. int a[];
C. int a = new int[2];
D. int a() = new int[2];
E. int a[2];
8 Analyze the following code:
#include <iostream>
using namespace std;
int main()
{
int list[] = {1, 2, 3, 4, 5};
int newList[5];
reverse(list, 5, newList);
for (int i = 0; i < 5; i++)
cout << newList[i] << " ";
}
#include <iostream>
using namespace std;
2
int main()
{
int x[] = {120, 200, 16};
for (int i = 0; i < 3; i++)
cout << x[i] << " ";
}
A. 200 120 16
B. 16 120 200
C. 120 200 16
D. 16 200 120
10 Which of the following statements is valid?
A. int i(30);
B. int i[4] = {3, 4, 3, 2};
C. int i[] = {3, 4, 3, 2};
D. double d[30];
E. int[] i = {3, 4, 3, 2};
11 Which of the following statements are true?
A. 5
B. 6
C. 0
D. 4
#include <iostream>
using namespace std;
3
int main()
{
int matrix[4][4] =
{{1, 2, 3, 4},
{4, 5, 6, 7},
{8, 9, 10, 11},
{12, 13, 14, 15}};
int sum = 0;
return 0;
}
A. 3 6 10 14
B. 1 3 8 12
C. 1 2 3 4
D. 4 5 6 7
E. 2 5 9 13
15
Which of the following statements are correct?
a. (2 pts)
#include <iostream>
using namespace std;
int main()
{
int a[] = {1, 2};
swap(a[0], a[1]);
cout << "a[0] = " << a[0] << " a[1] = " << a[1] << endl;
return 0;
}
4
b. (2 pts)
#include <iostream>
using namespace std;
int main()
{
int a[] = {1, 2};
swap(a);
cout << "a[0] = " << a[0] << " a[1] = " << a[1] << endl;
return 0;
}
c. (4 pts) Given the following program, show the values of the array
in the following figure:
#include <iostream>
using namespace std;
int main()
{
int values[5];
for (int i = 1; i < 5; i++)
{
values[i] = i;
}
return 0;
}
5
After the last statement
After the array is After the first iteration After the loop is in the main method is
created in the loop is done completed executed
0 0 0 0
1 1 1 1
2 2 2 2
3 3 3 3
4 4 4 4
Part III:
Part III:
<Output>
<End Output>
6
Write a test program that reads a C-string and displays the number of
letters in the string. Here is a sample run of the program:
<Output>
7
Another Random Scribd Document
with Unrelated Content
unrelated turns, jumps sidewise and up in the air, entrechats and kicks,
bears about the same relation to choreographic argument as a cat’s antics on
the keyboard of a piano does to the work of a musician.
It will of course be understood that the ballet-master’s problem is
complicated by requirements and limitations not even touched upon in this
work. Conformity to his accompanying music, for instance, is alone a
matter of careful study. In former generations, before the present relative
importance of music, the musical composer followed the scenario of the
ballet, which was composed first and independently. Nowadays—owing to
causes as to which speculation is free—the procedure is reversed. The
ballet-master must not only follow phrasing as it is written; he must move
his people about the stage in felicitous group evolutions, basing their steps
on a fixed number of musical bars and beats. This requirement disposed of,
he should interpret the music’s changing moods with appropriate steps.
Taking as an example a bit of the Ballet of the Hours in Gioconda: the
music of the hours before dawn is largo and dreamy, breaking into a
sparkling allegro as the light comes, increasing in speed and strength until a
forte tells of the full-fledged new day. There are steps and combinations to
render these motives with the utmost expressiveness. Failure to employ
them does not represent lack of competence on the part of the director, so
often as it does inadequacy of the human material at his disposal. In
America, at present, the task of producing effects with people whose
incapability he must conceal is perhaps the most serious embarrassment the
ballet-master has to face.
The dancer’s supreme virtue is style. If, beginning as a naturally graceful
youngster, he has been diligent for from four to seven years in ballet school,
he will have it; some acquire it by study alone. With practice from two to
four hours every morning, and half an hour to an hour before each
performance, he is likely to keep it. What style is, is not for words to define.
To preserve mathematical precision in a series of definitely prescribed
movements, while executing those movements with the flowing sweep of
perfect relaxation; to move through the air like a breeze-wafted leaf, and
alight with a leaf’s airiness; to ennoble the violence of a savage with a
demi-god’s dignity; to combine woman’s seductiveness with the
illusiveness of a spirit—these things are not style, but the kind of thing that
style makes possible, the magic results from the perfect co-ordination of
many forces, both æsthetic and mechanical. Some of the latter, as to theory,
are readily enough understood.
Of the ballet dancer’s ever-surprising defiance of the law of gravity, the
more obvious means are the plié, to soften a descent, and a manner of
picking up the weight so quickly that the body seems buoyant. Of perhaps
no less value, though not so obvious, is the straight knee. To the eye it gives
a sensation of sure architectural support—doubtless through the suggestion
of a column. The mechanical importance of the straight supporting knee is
no less than the æsthetic, since a firm foundation is essential to perfect
control of body, arms and head. When the knee “slumps,” the usual
consequence is a softened back and a collapsed chest. The muscles of the
body “let down,” the fine, hypersensitive control of head and arms is gone.
Crisp movement being impossible to them without a sound, springy body as
a base to work on, the work becomes monotonous and soggy.
The theory of a straight supporting axis applies also to the foot as soon
as it rises sur la pointe. The foot of Madame Pavlowa en arabesque (see
reproduction of her photograph) illustrates the principle. Mechanically,
there is definite advantage in an absolutely vertical support; while the
spectator’s visual impression asserts without hesitation that the figure above
the foot is without weight whatever. The superb line of the ankle,
continuous in sweep over the instep, is not the least of the wonders of what,
if one were writing in Spanish, one could without extravagance refer to as
“that little foot of gold.”
It should not in the least modify admiration of this superlative bit of
technique to dispel the not uncommon belief that rising on the toes is a
cause of physical torment, a feat requiring extraordinary strength, or in
itself an achievement to insist upon. Quite the contrary. Like every other
position in the dance, any half-trained performer or student can get it, all
except the quality. As soon as a pupil has acquired the equilibrium that
ought to precede toe-work, the necessary muscular development has taken
care of itself, as a general rule; and she takes position on the point without
special effort. Help is given the foot by the hard-toe slipper, combining as it
does the support of a well-fitted shoe with a square, blunt toe. The latter,
though of small area, furnishes some base to stand on. Stiffening in the
fore-part of the shoe protects the toes against bruising in the descent from
leaps.
Position on the point justly claims attention as an acrobatic wonder,
when it is taken barefooted. And a dancer who, barefooted, can perform
steps on the point, supporting herself easily with one foot off the floor, is
simply hyper-normal in strength of ankles, feet, and legs. Miss Bessie
Clayton is such a one, and very likely the only one. It is a feat whose
absence from formal dancing is not felt, though its use would be effective in
some of the re-creations of Greek work. There is evidence that the early
Greeks practiced it, as before noted. In our own times, there is only one
instance, among the stories ever heard by the authors, of barefoot work on
the point being done in public; and that performance, oddly enough, took
place in precedent-worshipping Spain. The occasion was one of those
competitions that Spaniards love to arrange when two or more good dancers
happen to play the same town at the same time. Tremendous affairs; not
only does rivalry approach the line of physical hostilities among the
spectators, but the competition draws out feats of special virtuosity that the
dancers have practiced secretly, in anticipation of such contingencies. La
Gitanita (the Little Gipsy), one of the competitors in the event referred to,
had, for some years, put in a patient half-hour a day on the ends of her bare
toes, without the knowledge of any but the members of her family. When,
therefore, at the coming of her turn in the competition, she threw her shoes
to the audience, and her stockings behind a wing, and danced a copla of las
Sevillanas on the point, the contest was settled. Most of the spectators never
had heard even of the existence of such a thing as toe-work, because it does
not exist in Spanish dancing. The experience to them was like witnessing a
miracle; so it happens that La Gitanita, many years dead, is still talked of
when Spanish conversation turns to incredible feats of dancing.
With such rare exceptions as the above, however, the person who is
happy in seeing difficulties overcome is best repaid by watching the manner
instead of the matter. There is hardly a step but can be floundered through,
if real execution be disregarded. The difficulties that take years to master,
that keep the front rank thin, are those of nobility, ease and precision of
action. Naturally, it is harder to preserve these qualities through a renversé
than in a pas de Basque; but there is no merit in exhibiting a renversé badly
done. The latter is a pertinent instance of things difficult to do well. A
fouetté tour “inward” is not safely attempted by any but the most skilful;
nor is either a fouetté or a rond de jambe, finishing in arabesque. To keep
the movement continuous, imperceptibly slowing it down as the arabesque
settles into its final pose, requires ability of a rare grade.
As the little alternating steps furnish the means of regaining equilibrium
after a big pas or tour, it follows that their elimination from an
enchainement represents a tour de force. This is especially true if the big
steps be taken at a slow tempo (as an adagio, so called); and difficulties are
compounded if the artist performs the entire adagio on the point. Few there
are in any generation who can attempt such a flight.
But there are many qualities justly to be demanded of any artist who
steps before an audience. Crisp, straight-line movements should be cleanly
differentiated from the soft and flowing. An entrechat not as sharp-cut as a
diamond represents incompetent or slovenly workmanship. The same
applies to other steps of the staccato character—as battements, brisés,
pirouettes sur le cou-de-pied. Each dancer rightly has his own individuality;
and the movements of one will be dominated by a liquid quality, while
another’s will be brilliant, or “snappy.” But a dancer who is truly an artist
has, within his scope, a good contrast between the several types of
movement. Lack of such contrast may cause a sense of monotony even in
very skilful work. Elevation also is important in preserving a sense of
variety. Not only plié and rise are made to serve; raisings of the arms add
immensely to the sense of vertical uplift when height is sought.
A certain conformity to geometrical exactness is necessary to the
satisfaction of the spectator’s eye, and is observed by all but the
incompetent. Not that movement should be rigid—very much to the
contrary. “Geometry” is a sinister word; interpreted in a sense in which it is
not meant, it would be misleading. An example is sometimes clearer than
attempted definitions or descriptions.
If, having given an order for a grandfather’s clock, the recipient found on
delivery that it did not stand quite straight, he would be annoyed. Suppose
then that further observation revealed that the face of the clock was not in
the middle, that the centre of the circle described by the hands was not the
centre of the face, that the face was no more than an indeterminate
approximation of a circle, and that the numerals were placed at random
intervals; the eye of the clock’s owner would be offended. Various æsthetic
and psychological arguments might be applied to the justification of his
feeling, but they are not needed. The futility of near-circles, approximate
right angles and wobbly lines is felt instinctively. Yet the eye rejoices in the
“free-hand” sweep of line correct in placement, though not subjected to the
restrictions of straight-edge and compass. Asking for acceptance in such
sense of the terms “geometrical” and “precision,” we may return to our
discussion of the ballet.
The decorative iniquity of the hypothetical clock attaches to all dancing
that fails to give to precision the most rigourous consideration. The
imaginary circle described in a pirouette for example, is divided into halves
and quarters. Let us suppose the pirouette to end in arabesque, stopping on
the half-circle, bringing the dancer in profile to the audience: a very few
degrees off the half-circle are, from the ballet-master’s point of view, about
of a kind with a few centimetres separating the misplaced clock hands from
their proper situation in the centre of the dial. The petit rond de jambe has
its imaginary quarter of the great circle in which to play, and which it must
fill. In a fouetté, the sweep of the foot starts at the quarter-circle (marked by
an imaginary lateral plane through the dancer’s body), and reaches back just
to the half-circle (defined by a similar plane, drawn longitudinally). The
lateral elevations of the legs are likewise subject to law, the imaginary
vertical circle described by the leg as radius being divided into eights, to
allow the leg to use the angle of forty-five degrees; experience shows that
this diagonal, half a right angle, is pleasing to the eye and not disturbing to
the senses.
The hands and forearms are turned in such a way as to eliminate elbows,
the coincidence of a contour of the arm with an arc of a big (imaginary)
circle being always sought.
The convention of “toeing out” has as an object the showing of ankles
and legs to the best advantage. On the flat foot the advantage is not so
apparent; but experiment shows that pointing out and down greatly helps
the appearance of a foot in the air. The supporting foot and leg also show
the benefit of the device as soon as the dancer rises to the ball of the foot or
the point. Moreover, it is obvious that the pointing of a supporting foot
forward would necessitate changes from the classic form of many steps.
Recent years have brought out a volume of protest to the effect that the
classic ballet’s restriction of movement too severely limits expression. The
protest is right or wrong according to point of view, and point of view is a
matter of historical period. The French school comes to us from a time
when men kissed hands and drew swords in exact accordance with accepted
forms, and the favoured house-decoration was a tapestry designed on lines
purely architectural. The present is a moment of much concern about
freedom of the individual, and its expression. Curiosity is at boiling-point.
Narrative is sought. We want something to happen, all the time. And those
who fail to see the actual occurrence want the story of it to be graphic.
Moving pictures are very satisfying to the majority. Acres of popular
pictures are painted in boisterous disregard of order or harmony of line and
form. It would be very pleasant for those who enjoy optical beauty, if public
taste required beauty as a first requisite for popularity. Nevertheless,
popular pictures as they are do no particular harm, probably, either to those
who like them or to those who do not.
But, if the world’s great and beautiful mural decorations were suddenly
painted over with frenzied or sentimental illustrations, to “modernise” them,
it would be a different matter. That little public to whom beauty is as a
necessary sustenance—by coincidence the same public that includes the
leaders of thought in each generation—would have a good deal to say in the
line of objection to such desecration. Now, the ballet is essentially a mural
decoration, potentially very great in power to exalt. If a large element
should have its way, the next few years would see that decoration painted
over with a huge choreographic story-picture, sentimental or frenzied,
realistic; and beauty be hanged.
This anarchistic mania is in no wise a doctrine of the Russians. But their
undiscerning admirers, seeing in their work only the lines of departure from
old-established formulæ, shout to heaven that any restraint of individual
caprice is wrong. Innocent of suspicion that such things as æsthetic
principles exist, they force their expression of “individuality” to the limit of
their invention. And some of them certainly are inventive.
Fortunately the great dancer is great largely because of his perception of
the value of order and form. The best of the Russians are great dancers;
great artists in the full sense of the word. They are the ones who will
profoundly influence the æsthetic thought of the present generation, and
their influence will be sound and good. Opposing it will be many a “hit” by
skilful characters, and a dangerous numerical force among the public. It is
easily possible that the latter influence may prevail. The grand ballet is still
an experiment in the America of this generation. It was here thirty years
ago, and fell into the hands of Philistines, who shaped it into the silly thing
they thought they wanted, and then were forced to abandon it because it
was silly.
Than the present, there never was a more important crisis in the cause of
choreographic good taste. The outcome depends upon the manner and
degree in which those who stand for good taste assert themselves during the
next few years.
CHAPTER V
SPANISH DANCING
S INCE earliest Occidental history, the dances of Spain have been famous.
To-day their richness, variety and fundamental nobility give them a
position in advance of any other group of national dances of the
Occidental type. Whether certain of the Oriental expressions are superior to
the Spanish is wholly a matter of point of view on dancing. But dancers and
dance-lovers, of all beliefs and prejudices, unite in conceding to Spain the
highest development of “characteristic” or national dancing. More even:
though the French and Italian ballets in general hold their schools to be the
very fountainhead of the choreographic art, not a few disciples of the
academies of Milan or Paris concede to Spanish dancing superiority over
all, in that aspect of beauty that is concerned with majesty of line and
posture.
It is as though Terpsichore herself had chosen the dwellers of Iberia to
guard her gifts to mankind. Gadir, the city now called Cadiz, was a little
Paris in the day of the Carthaginian, with dancing as its most highly
developed art and notable among its diversions. When the Romans took the
city they were delighted with the dancers they found there; for centuries
after, Spanish dancers remained a fashionable adjunct of great
entertainment in the capital, and Cadiz the inexhaustible source of their
supply.
When Rome, too infirm to resist, left Spain to be overrun by the
Visigoth, she left the arts of the peninsula to the mercy of a destroying
barbarian. Architecture and statuary he demolished, books he burned.
Dancing eluded his clumsy hand; in places of retirement children were
taught the steps and gestures that had crossed the sea from Egypt in the
days of the Phœnicians.
In the eighth century came the Moor: slayer, organiser, builder; fanatic,
dreamer, poet; lover and creator of beauty in all its manifestations. His
verses were epigrams of agreeable and unexpected sounds, formed into
phrases of eloquent metaphor. His architecture and its ornament, too, were
epigrams; combinations of graceful and simple lines and forms into
harmonious symbols more eloquent than description. To him the dance was
verse and decoration united, with music added; entertainment and stimulus
to contemplation. Under his guardianship and tuition the Spanish dance
strengthened its hold on the people, and increased in scope. A certain class
of it retains to-day a distinctly Moorish flavour.
The “Century of Gold” that followed the expulsion of the Moors and the
discovery of America found the dance surrounded by conditions than which
none could have been more favourable. Gold looted from the new continent
was lavished on masques and fiestas that emulated those of neighbouring
monarchies; courtiers were so preoccupied with the diversion that a memoir
of the period contains a complaint that “sleep in any part of the palace has
become impossible, since persons of all degrees have taken to continuous
strumming of the music of the zarabanda.” The less exalted had in the
dance
“La Malagueña y el Torero”
Eduardo and Elisa Cansino
To face page 122