Professional Documents
Culture Documents
1285856910 9781285856919
Full Link Download:
Test Bank:
https://testbankpack.com/p/test-bank-for-java-programming-8th-edition-farrell-
1285856910-9781285856919/
Solution Manual:
https://testbankpack.com/p/solution-manual-for-java-programming-8th-edition-
farrell-1285856910-9781285856919/
Name: Class: Date:
2. The int data type is the most commonly used integer type.
a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 64
3. Multiplication, division, and remainder always take place after addition or subtraction in an expression.
a. True
b. False
ANSWER: False
POINTS: 1
REFERENCES: 95
6. Once a variable has been declared and initialized, new values may not be assigned to the variable.
a. True
b. False
ANSWER: False
POINTS: 1
REFERENCES: 55
8. Even if a statement occupies multiple lines, the statement is not complete until the semicolon is reached.
a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 56
10. The byte and short data types occupy less memory and can hold only smaller values.
a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 64
Multiple Choice
12. A is a named memory location that you can use to store a value.
a. cast b. variable
c. reference d. primitive
ANSWER: b
POINTS: 1
REFERENCES: 54
14. refers to the order in which values are used with operators.
a. Associativity b. Initialization
c. Declaration d. Floating
ANSWER: a
POINTS: 1
REFERENCES: 55
15. In Java, you use variables of type to store integers, or whole numbers.
a. num b. double
c. var d. int
ANSWER: d
POINTS: 1
REFERENCES: 54, 64
16. A(n) variable can hold only one of two values: true or false.
a. integer b. boolean
c. true d. comparison
ANSWER: b
POINTS: 1
REFERENCES: 70
19. You use the data type to hold any single character.
a. single b. char
Cengage Learning Testing, Powered by Cognero Page 3
Name: Class: Date:
20. In Java, is a built-in class that provides you with the means for storing and manipulating character strings.
a. Escape b. Type
c. String d. Character
ANSWER: c
POINTS: 1
REFERENCES: 74
21. You can store any character, including nonprinting characters such as a backspace or a tab, in a(n) variable.
a. int b. char
c. boolean d. set
ANSWER: b
POINTS: 1
REFERENCES: 75
22. The characters move the cursor to the next line when used within a println() statement.
a. /n b. \n
c. .+ d. $
ANSWER: b
POINTS: 1
REFERENCES: 75
23. In Java, when a numeric variable is concatenated to a String using the , the entire expression becomes a
String.
a. plus sign b. equal sign
c. concatenate statement d. string statement
ANSWER: a
POINTS: 1
REFERENCES: 58
24. You use operators to perform calculations with values in your programs.
a. calculation b. arithmetic
c. integer d. precedence
ANSWER: b
POINTS: 1
REFERENCES: 93
Illicit diamond buyers are like the devils recorded in the gospel,
whose name was “legion, for they were many.” The illicits are not
only many in number, but also many in species.
The genus has little changed from the earlier times, for the I.
D. B. was and is simply a receiver of stolen goods, well knowing
them to be stolen, nothing more and nothing less. But the species
of this genus are so numerous that their accurate categorist would
almost rival a Linnæus or a Cuvier.
Some of the species are as extinct as the dodo; others have
changed as remarkably as diseases, which once epidemic have
become endemic, and members of the latter class, might, if
classically inclined, appropriately quote, with reference to their
altered position: “Tempora mutantur, et nos mutamur in illis.”
The I. D. B. of 1872 was not the I. D. B. of to-day; the I. D. B.,
whose canvas canteen, thronged by semi-nude Shangaans, Zulus,
Basutos or Ballapins, was occasionally burnt over his head, was a
different person in his modus operandi and manner of living from
the “speculator” of 1885.
The “kopje walloper,” who was generally a gentleman of the
Hebrew persuasion hailing from Petticoat Lane or the Minories,
was one of those who, when diamond buying was as legal in the
open air as in a properly registered office, used to haunt the edge
of the mine. With satchel at side, well lined with gold and notes,
sometimes on the chance of buying a diamond cheaply, trading on
the ignorance of the finder, but generally with the view of
tempting sorters to steal from the sorting table, he is now almost
forgotten, although his moral counterpart exists to this day in the
scoundrel who tempts, and but too often successfully, the white
servants of a company or a claim-holder to become thieves, or to
conveniently wink at the thieving of others.
The I. D. B. digger who could turn out as many diamonds in
an afternoon’s wash-up as mealies on a cob, and by a marvelous
dispensation of Providence was always hitting upon “splendid
ground” in his claim, is now a rara avis, for the onus probandi of
bona fide possession being now thrown upon the holders of rough
and uncut diamonds, the digger who discovers priceless gems in
notoriously worthless ground and by the aid of the poorest
appliances runs a serious risk of being confronted with the judge
of the special court.[48] To those unacquainted with diamond
digging the awarding of a punishment for what might, at first
sight, appear to be merely exceptional “luck” may seem more than
Draconian, but this point will be referred to in a succeeding
chapter.
The bogus licensed diamond buyer too who, frequently
subsidised by some hidden man, merely pretended to transact
legitimate business as a cloak for his illicit transactions, but did all
that remunerated him in the “dead waist and middle of the night”
is rapidly becoming extinct, owing to the stringent rules as to the
proof of bona fide possession and the enforced registration of sale
and purchase, though at the same time he is still extant in this
year of grace, 1887. Like the cat employed by the ingenious
monkey, however, in removing chestnuts from the fire, or the
policeman in Gilbert’s opera, “his life is not a happy one.”
Again, the native claim-holder and digger who either bought a
claim or was put into one to find diamonds, which, as a matter of
fact, came from some other claim, perhaps some other mine, or
even the river digging, now finds a more congenial occupation in
running parcels over the Free State line or to Christiana in the
Transvaal, or acting as an unlicensed diamond broker within the
limits of the camp. “Jonas” and “Kleinboy” may still be seen with
rings on their fingers and attired in a “masher” style which would
not disgrace a West End tailor, but they are no longer diggers,
though apparently their present occupation pays them
handsomely enough.
Before the act of 1882 came into force Kimberley was a
different place from what it is now—a nervous activity was
universal. The booted and spurred I. D. B. could then be seen
galloping on his well-groomed steed to his favorite resort, the
canteen bars were thronged day and night, the billiard-rooms
were crowded. The “Free and Easy,” too, had its frequenters, who
were posted in all the comic songs of the day, and nightly twitted
and tickled each other with the chorus of one at that time just out
from home. These gentlemen evidently appropriated and
appreciated the point of its refrain, singing with great gusto.
“They all do it, they all do it,
Though they very often rue it,”
as if their vile traffic and its consequences were one huge grim
joke.[49]
At another music hall the song most in favor and nightly sung
with immense éclat was one in which the adventures of a
fortunate I. D. B. were told in the following doggerel, which was
always sure of a vociferous encore, especially as many thought it
had a peculiar local application:
“I’m shortly about to retire,
Then to Flo of course I’ll be wed,
I shall do the thing fine, buy shares in the mine
Or else float a company instead.
I’ll of course have a carriage and pair,
And later I shall not despair,
In the council I’ll get, and if you wait a bit
No doubt you will see me made mayor.”