Professional Documents
Culture Documents
Full download C++ How to Program Early Objects Version 9th Edition Deitel Test Bank all chapter 2024 pdf
Full download C++ How to Program Early Objects Version 9th Edition Deitel Test Bank all chapter 2024 pdf
https://testbankfan.com/product/c-how-to-program-early-objects-
version-9th-edition-deitel-solutions-manual/
https://testbankfan.com/product/c-how-to-program-late-objects-
version-7th-edition-deitel-test-bank/
https://testbankfan.com/product/java-how-to-program-early-
objects-11th-edition-deitel-test-bank/
https://testbankfan.com/product/java-how-to-program-early-
objects-10th-edition-deitel-test-bank/
Java How to Program Early Objects 11th Edition Deitel
Solutions Manual
https://testbankfan.com/product/java-how-to-program-early-
objects-11th-edition-deitel-solutions-manual/
https://testbankfan.com/product/java-how-to-program-early-
objects-10th-edition-deitel-solutions-manual/
https://testbankfan.com/product/c-how-to-program-7th-edition-
deitel-test-bank/
https://testbankfan.com/product/c-how-to-program-10th-edition-
deitel-test-bank/
https://testbankfan.com/product/c-how-to-program-7th-edition-
deitel-solutions-manual/
C++ How to Program, 9/e Multiple Choice Test Bank 1 of 5
8.2 Q4 [C++11]: Which of the following statements about pointer initialization and values is false?
a. Prior C++11, the value specified for a null pointer was 0 or NULL.
b. When 0 is assigned to a pointer, it’s converted to a pointer of the appropriate type.
c. The value 0 is the only integer value that can be assigned directly to a pointer variable without first casting
the integer to a pointer type.
d. In the new standard, you should use the constant null_ptr to initialize a pointer instead of 0 or NULL.
ANS: d. In the new standard, you should use the constant null_ptr to initialize a pointer instead of 0 or
NULL. [The constant is actually nullptr (without the underscore).]
8.3 Q2: All of the following can cause a fatal execution-time error except:
a. Dereferencing a pointer that has not been assigned to point to a specific address.
b. Dereferencing a pointer that has not been initialized properly.
c. Dereferencing a null pointer.
d. Dereferencing a variable that is not a pointer.
ANS d. Dereferencing a variable that is not a pointer. (This is a compilation error.)
8.3 Q3: Three of the following expressions have the same value. Which of the following expressions has a value
different from the others’?
a. *&ptr
b. &*ptr
c. *ptr
d. ptr
© Copyright 1992-2014 by Deitel & Associates, Inc. and Pearson Education, Inc. All Rights Reserved.
C++ How to Program, 9/e Multiple Choice Test Bank 2 of 5
ANS c. *ptr
8.4 Q1: Which of the following is not a valid way to pass arguments to a function in C++?
a. By reference with reference arguments.
b. By value.
c. By reference with pointer arguments.
d. By value with pointer arguments.
ANS: d. By value with pointer arguments.
8.4 Q2: When a compiler encounters a function parameter for a single-subscripted array of the form int a[], it
converts the parameter to:
a. int a
b. int &a
c. int *a
d. No conversion is necessary.
ANS c. int * a
8.5 Q1: Which of the following is not a correct way to initialize a built-in array?
a. int n[ 5 ] = { 0, 7, 0, 3, 8, 2 };
b. int n[] = { 0, 7, 0, 3, 8, 2 };
c. int n[ 5 ] = { 7 };
d. int n[ 5 ] = { 9, 1, 9 };
ANS: a. int n[ 5 ] = { 0, 7, 0, 3, 8, 2 };
8.5 Q2: Which statement would be used to declare a 10-element integer array c?
a. array c = int[ 10 ];
b. c = int[ 10 ];
c. int array c[ 10 ];
d. int c[ 10 ];
ANS d. int c[ 10 ];
8.5 Q3: To prevent modification of a built-in array’s values when you pass the built-in array to a function:
a. The built-in array must be declared static in the function.
b. The built-in array parameter can be preceded by the const qualifier.
c. A copy of the built-in array must be made inside the function.
d. The built-in array must be passed by reference.
ANS: b. The built-in array parameter can be preceded by the const qualifier.
8.5 Q4: Which of the following is false about a function to which a built-in array is being passed?
a. It always knows the size of the built-in array that is being passed.
b. It is being passed the address of the first element in the built-in array.
c. It is able to modify the values stored in the built-in array.
d. The built-in array’s name is used as an argument in the function call.
ANS: a. It always knows the size of the built-in array that is being passed.
8.5 Q5[C++11]: Given a built-in array of ints named values, which of the following statements would sort the
array?
a. sort( values.begin(), values.end() );
b. sort( values.array_begin(), values.array_end() );
c. sort( begin( values ), end( values ) );
d. sort( array_begin( values ), array_end( values ) );
ANS: c. sort( begin( values ), end( values ) );
© Copyright 1992-2014 by Deitel & Associates, Inc. and Pearson Education, Inc. All Rights Reserved.
C++ How to Program, 9/e Multiple Choice Test Bank 3 of 5
8.6 Q1: A function that modifies an array by using pointer arithmetic such as ++ptr to process every value of the
array should have a parameter that is:
a. A nonconstant pointer to nonconstant data.
b. A nonconstant pointer to constant data.
c. A constant pointer to nonconstant data.
d. A constant pointer to constant data.
ANS: a. A nonconstant pointer to nonconstant data.
8.6 Q2: A function that prints a string by using pointer arithmetic such as ++ptr to output each character should
have a parameter that is:
a. A nonconstant pointer to nonconstant data.
b. A nonconstant pointer to constant data.
c. A constant pointer to nonconstant data.
d. A constant pointer to constant data.
ANS: b. A nonconstant pointer to constant data.
8.6 Q3: Which of the following best describes the array name n in the declaration int n[10];?
a. n is a nonconstant pointer to nonconstant data.
b. n is a nonconstant pointer to constant data.
c. n is a constant pointer to nonconstant data.
d. n is a constant pointer to constant data.
ANS: c. n is a constant pointer to nonconstant data.
8.6 Q4: What method should be used to pass an array to a function that does not modify the array and only looks at
it using array subscript notation:
a. A nonconstant pointer to nonconstant data.
b. A nonconstant pointer to constant data.
c. A constant pointer to nonconstant data.
d. A constant pointer to constant data.
ANS: d. A constant pointer to constant data.
8.7 Q2: Which of the following gives the number of elements in the array int r[ 10 ]?
a. sizeof r
b.sizeof ( *r )
c.sizeof r / sizeof ( int )
d.sizeof ( *r ) / sizeof ( int )
ANS: c sizeof r / sizeof ( int )
© Copyright 1992-2014 by Deitel & Associates, Inc. and Pearson Education, Inc. All Rights Reserved.
C++ How to Program, 9/e Multiple Choice Test Bank 4 of 5
8.8 Q2: Given that k is an integer array starting at location 2000, kPtr is a pointer to k and each integer is stored in
4 bytes of memory, what location does kPtr + 3 point to?
a. 2003
b. 2006
c. 2012
d. 2024
ANS: c. 2012
8.8 Q4: Comparing pointers and performing pointer arithmetic on them is meaningless unless:
a. They point to elements of the same array.
b. You are trying to compare and perform pointer arithmetic on the values to which they point.
c. They point to arrays of equal size.
d. They point to arrays of the same type.
ANS: a. They point to elements of the same array.
8.9 Q1: Assuming that t is an array and tPtr is a pointer to that array, which expression refers to the address of
element 3 of the array?
a. *( tPtr + 3 )
b. tPtr[ 3 ]
c. &t[ 3 ]
d. *( t + 3 )
ANS: c. &t[ 3 ]
© Copyright 1992-2014 by Deitel & Associates, Inc. and Pearson Education, Inc. All Rights Reserved.
C++ How to Program, 9/e Multiple Choice Test Bank 5 of 5
© Copyright 1992-2014 by Deitel & Associates, Inc. and Pearson Education, Inc. All Rights Reserved.
Another random document with
no related content on Scribd:
The Project Gutenberg eBook
of Sonnets and madrigals of
Michelangelo Buonarroti
This ebook is for the use of anyone anywhere in the United
States and most other parts of the world at no cost and with
almost no restrictions whatsoever. You may copy it, give it away
or re-use it under the terms of the Project Gutenberg License
included with this ebook or online at www.gutenberg.org. If you
are not located in the United States, you will have to check the
laws of the country where you are located before using this
eBook.
Language: English
Some minor changes to the text are noted at the end of the book.
S ON N E T S A N D
M A D R I GA L S
OF M I C H E L A N GE L O
B U ON A R R OT I
S O NNE T S A ND MADRIG A L S
O F MICHEL ANG EL O
BU O NA RRO T I
H O U G H TO N
MIFFLIN AND
C O M PA N Y
MDCCCC
Copyright 1900 by William Wells Newell
All rights reserved
CONTENTS
Michelangelo as Poet Page i
Sonnets ” 1
Epigrams ” 26
Madrigals ” 28
Notes ” 59
Index of First Lines ” 105
MICHELANGELO AS
POET
MICHELANGELO AS
POET
MICHELANGELO, who considered himself as primarily sculptor,
afterwards painter, disclaimed the character of poet by profession.
He was nevertheless prolific in verse; the pieces which survive, in
number more than two hundred, probably represent only a small part
of his activity in this direction. These compositions are not to be
considered merely as the amusement of leisure, the byplay of fancy;
they represent continued meditation, frequent reworking, careful
balancing of words; he worked on a sonnet or a madrigal in the
same manner as on a statue, conceived with ardent imagination,
undertaken with creative energy, pursued under the pressure of a
superabundance of ideas, occasionally abandoned in dissatisfaction,
but at other times elaborated to that final excellence which exceeds
as well as includes all merits of the sketch, and, as he himself said,
constitutes a rebirth of the idea into the realm of eternity. In the
sculptor’s time, the custom of literary society allowed and
encouraged interchange of verses. If the repute of the writer or the
attraction of the rhymes commanded interest, these might be copied,
reach an expanding circle, and achieve celebrity. In such manner,
partly through the agency of Michelangelo himself, the sonnets of
Vittoria Colonna came into circulation, and obtained an acceptance
ending in a printed edition. But the artist did not thus arrange his own
rhymes, does not appear even to have kept copies; written on stray
leaves, included in letters, they remained as loose memoranda, or
were suffered altogether to disappear. The fame of the author
secured attention for anything to which he chose to set his hand; the
verses were copied and collected, and even gathered into the form
of books; one such manuscript gleaning he revised with his own
hand. The sonnets became known, the songs were set to music, and
the recognition of their merit induced a contemporary author, in the
seventy-first year of the poet’s life, to deliver before the Florentine
Academy a lecture on a single sonnet.
Diffusion through the printing-press, however, the poems did not
attain. Not until sixty years after the death of their author did a grand-
nephew, also called Michelangelo Buonarroti, edit the verse of his
kinsman; in this task he had regard to supposed literary proprieties,
conventionalizing the language and sentiment of lines which seemed
harsh or impolite, supplying endings for incomplete compositions,
and in general doing his best to deprive the verse of an originality
which the age was not inclined to tolerate. The recast was accepted
as authentic, and in this mutilated form the poetry remained
accessible. Fortunately the originals survived, partly in the
handwriting of the author, and in 1863 were edited by Guasti. The
publication added to the repute of the compositions, and the sonnets
especially have become endeared to many English readers.
The long neglect of Michelangelo’s poetry was owing to the
intellectual deficiencies of the succeeding generation. In spite of the
partial approbation of his contemporaries, it is likely that these were
not much more appreciative, and that their approval was rendered
rather to the fame of the maker than to the merits of the work. The
complication of the thought, frequently requiring to be thought out
word for word, demanded a mental effort beyond the capacity of
literati whose ideal was the simplicity and triviality of Petrarchian
imitators. Varchi assuredly had no genuine comprehension of the
sonnet to which he devoted three hours of his auditors’ patience;
Berni, who affirmed that Michelangelo wrote things, while other
authors used words, to judge by his own compositions could scarce
have been more sensible of the artist’s emotional depth. The
sculptor, who bitterly expressed his consciousness that for the
highest elements of his genius his world had no eyes, must have felt
a similar lack of sympathy with his poetical conceptions. Here he
stood on less safe ground; unacquainted with classic literature,
unable correctly to write a Latin phrase, he must have known, to use
his own metaphor, that while he himself might value plain homespun,
the multitude admired the stuffs of silk and gold that went to the
making of a tailors’ man. It is likely that the resulting intellectual
loneliness assumed the form of modesty, and that Michelangelo took
small pains to preserve his poetry because he set on it no great
value.