Test Bank For Starting Out With Java From Control Structures Through Objects 5th Edition 0132855836 9780132855839
Test Bank For Starting Out With Java From Control Structures Through Objects 5th Edition 0132855836 9780132855839
Test Bank for Starting Out with Java From Control Structures
through Objects 5th Edition 0132855836 9780132855839
Full link download
Solution Manual
https://testbankpack.com/p/solution-manual-for-starting-out-with-java-from-
control-structures-through-objects-5th-edition-gaddis-0132855836-
9780132855839/
Test Bank
https://testbankpack.com/p/test-bank-for-starting-out-with-java-from-
control-structures-through-objects-5th-edition-gaddis-0132855836-
9780132855839/
Chapter 2
MULTIPLE CHOICE
1. Which one of the following would contain the translated Java byte code for a program named Demo?
a. Demo.java
b. Demo.code
c. Demo.class
d. Demo.byte
ANS: C
ANS: C
ANS: A
ANS: A
Gaddis: Starting Out with Java: From Control Structures through Objects, 5/e © 2012 Pearson Education
5. The term typically refers to the device that displays console output.
a. Standard output device
b. Central processing unit
c. Secondary storage device
d. Liquid crystal display
ANS: A
ANS: A
ANS: D
ANS: A
ANS: B
Gaddis: Starting Out with Java: From Control Structures through Objects, 5/e © 2012 Pearson Education
ANS: D
11. Which of the following is not a rule that must be followed when naming identifiers?
a. The first character must be one of the letters a-z, A-Z, and underscore or a dollar sign.
b. Identifiers can contain spaces.
c. Uppercase and lowercase characters are distinct.
d. After the first character, you may use the letters a-z, A-Z, the underscore, a dollar sign, or digits 0-
9.
ANS: B
ANS: C
ANS: A
ANS: D
b. float y;
double z;
z = 934.21;
y = z;
c. float w;
w = 1.0f;
d. float v;
v = 1.0;
ANS: C
16. The boolean data type may contain values in the following range of values
a. true or false
b. -128 to + 127
c. - 2,147,483,648 to +2,147,483,647
d. - 32,768 to +32,767
ANS: A
ANS: C
10 + 5 * 3 - 20
a. -5
b. 5
c. 25
d. -50
ANS: B
25 / 4 + 4 * 10 % 3
a. 19
b. 5.25
c. 3
d. 7
ANS: D
Gaddis: Starting Out with Java: From Control Structures through Objects, 5/e © 2012 Pearson Education
int x = 5, y = 20;
x += 32;
y /= 4;
System.out.println("x = " + x + ", y = " + y);
a. x = 32, y = 4
b. x = 9, y = 52
c. x = 37, y = 5
d. x = 160, y = 80
ANS: C
21. What will be the value of z as a result of executing the following code?
int x = 5, y = 28;
float z;
z = (float) (y / x);
a. 5.60
b. 5.6
c. 3.0
d. 5.0
ANS: D
22. What will be the displayed when the following code is executed?
a. x = 22, y = 4
b. x = 22, y = 26
c. x = 22, y = 88
d. Nothing, this is an error
ANS: D
23. In the following Java statement what value is stored in the variable name?
a. John Doe
b. The memory address where "John Doe" is located
c. name
d. The memory address where name is located
ANS: B
G. Burnet,
History of My Own Time,
book 5 (volume 4), 1692.
SCOTLAND: A. D. 1695-1699.
The Darien scheme.
King William urges a Union of the kingdoms.
Sir J. Dalrymple,
Memorials of Great Britain,
part 3, book 6 (volume 3).
ALSO IN:
J. H. Burton,
History of the Reign of Queen Anne,
chapter 4 (volume l).
Lord Macaulay,
History of England,
chapter. 24 (volume 5).
SCOTLAND: A. D. 1703-1704.
Hostility to England.
The Act of Security.
The Scottish Plot.
C. Knight,
Popular History of England,
volume 5, chapter 21.
ALSO IN:
J. H. Burton,
History of the Reign of Queen Anne,
chapters 4 and 7 (volume 1).
SCOTLAND: A. D. 1707.
The Union with England.
Earl Stanhope,
History of England: Reign of Queen Anne,
chapter 8.
ALSO IN:
J. H. Burton,
History of the Reign of Queen Anne,
chapter 7 (volume 1).
Sir W. Scott,
Tales of a Grandfather: Scotland,
series 2, chapters 12.
H. Hallam,
Constitutional History of England,
chapter 17 (volume 3).
SCOTLAND: A. D. 1707-1708.
Hostility to the Union.
Spread of Jacobitism.
Sir W. Scott,
Tales of a Grandfather: Scotland,
series 3, chapters 1-2.
SCOTLAND: A. D. 1715.
The Jacobite rising.
J. Rowley,
The Settlement of the Constitution,
book 3, chapter 1.
ALSO IN:
J. McCarthy,
History of the Four Georges,
volume 1, chapter 7.
J. H. Jesse,
Memoirs of the Pretenders,
volume 1, chapters 3-4.
Earl Stanhope,
History of England, 1713-1783,
chapters 5-6 (volume l).
Mrs. K. Thomson,
Memoirs of the Jacobites,
volumes 1-2.
SCOTLAND: A. D. 1736.
The Porteous Riot.
SCOTLAND: A. D. 1745-1746.
The Young Pretender's invasion.
The last rising of the Jacobites.
J. R. Green,
Short History of the English People,
chapter 10, section 1.
ALSO IN:
Lord Mahon (Earl Stanhope),
History of England, 1713-1783,
chapters 26-29 (volume 3).
R. Chambers,
History of the Rebellion of 1745.
Mrs. K. Thomson,
Memoirs of the Jacobites,
volumes 2-3.
Chevalier de Johnstone,
Memoirs of the Rebellion of 1745.
J. H. Jesse,
Memoirs of the Pretenders.
SCOTLAND: A. D. 1779.
No-Popery Riots.
SCOTLAND: A. D. 1832.
Representation in Parliament increased by the Reform Bill.
SCOTLAND: A. D. 1843.
The Disruption of the Church.
Formation of the Free Church.
J. Mackintosh,
Scotland,
chapter 19.
S. Walpole,
History of England from 1815,
chapter 21 (volume 4).
"In 1874 the Patronage Act of 1712 was repealed, but it was
too late to be of much use, and Scottish Presbyterianism
remains split up into different camps. Some of the older
secessions were in 1847 joined together to form the United
Presbyterian Church, mostly distinguished from the Free Church
by its upholding as a theory the 'Voluntary Principle.'"
T. F. Tout,
History of England from 1689,
page 238.
ALSO IN:
T. Brown,
Annals of the Disruption.
R. Buchanan,
The Ten Years' Conflict.
W. Hanna,
Memoirs of Thomas Chalmers,
volume 3, chapter 18
and volume 4, chapters 6-25.
P. Bayne,
Life and Letters of Hugh Miller,
book 5 (volume 2).
SCOTLAND: A. D. 1868.
Parliamentary Reform.
----------SCOTLAND: End--------
SCOTS,
Deliverance of Roman Britain by Theodosius from the.
SCRIBES, The.
Dean Stanley,
Lectures on the History of the Jewish Church,
lecture 44.
SCRUPULA.
See As.
{2881}
SCRUTIN DE LISTE.
SCUTAGE.
K. Norgate,
England Under the Angevin Kings,
volume 1, chapter 9.
ALSO IN:
W. Stubbs,
The Early Plantagenets,
page 54.
SCUTARI: A. D. 1473-1479.
Stubborn resistance and final surrender to the Turks.
SCUTUM.
SCYRI, The.
T. Hodgkin,
Italy and her Invaders,
book 3, chapter 8 (volume 2).
E. Curtius,
History of Greece,
book 6, chapter 2.
ALSO IN:
G. Grote,
History of Greece,
part 2, chapter 78.
SCYTHIANS, The.
G. Grote,
History of Greece,
part 2, chapter 17.
G. Rawlinson,
Five Great Monarchies: Assyria,
chapter 9, footnote.
For an account of the Scythian expedition of Darius, B. C. 508.
G. F. Schömann,
Antiquity of Greece: The State,
part 3, chapter 3.
ALSO IN:
A. Boeckh,
Public Economy of Athens: The State,
book 2, chapter 11.
SEBASTE.
{2882}
SEBASTOPOL:
The Name.
H. N. Humphreys,
History of the Art of Printing,
page 68.
SEBASTOPOL: A. D. 1854-1855.
Siege and capture by the English, French, and Sardinians.
SECESH.
SECULAR CLERGY.
E. de Bonnechose,
History of France,
epoch 2, book 1, chapter 6, foot-note.
C. Merivale,
History of the Romans,
chapter 35, with footnote.
ALSO IN:
E. Gibbon,
Decline and Fall of the Roman Empire,
chapter 7.
SEGNI, The.
The Segni were a tribe in ancient Gaul who occupied a region
on the Rhine supposed to be indicated by the name of the
modern small town of Sinei or Segnei, a small town in the
territory of Namur on the Meuse above Liège.
G. Long,
Decline of the Roman Republic,
volume 4, chapter 8.
SEGONTIACI, The.
SEGONTIUM.
T. Wright,
Celt, Roman and Saxon,
chapter 5.
SEGUSIAVI, The.
Napoleon III.,
History of Cæsar,
book 3, chapter 2, foot-note.
SELAH.
See NABATHEANS.
SELECTMEN.
W. T. Davis,
Ancient Landmarks of Plymouth,
pages 84-85.
See, also, TOWNSHIP AND TOWN-MEETING.
SELEUCIA.
E. Gibbon,
Decline and Fall of the Roman Empire,
chapter 8.
----------SELEUCIDÆ: Start--------
The struggle for power which broke out after his death among
the successors of Alexander the Great (see MACEDONIA: B. C.
323-316 to 297-280) may be regarded as having been brought to
a close by the battle of Ipsus. "The period of fermentation
was then concluded, and something like a settled condition of
things brought about. A quadripartite division of Alexander's
dominions was recognised, Macedonia, Egypt, Asia Minor, and
Syria (or south-western Asia) becoming thenceforth distinct
political entities. … Of the four powers thus established, the
most important … was the kingdom of Syria (as it was called),
or that ruled for 247 years by the Seleucidæ. Seleucus
Nicator, the founder of this kingdom, was one of Alexander's
officers, but served without much distinction through the
various campaigns by which the conquest of the East was
effected. At the first distribution of provinces (B. C. 323)
among Alexander's generals after his death, he received no
share; and it was not until B. C. 320, when upon the death of
Perdiccas a fresh distribution was made at Triparadisus, that
his merits were recognised, and he was given the satrapy of
Babylon. … Seleucus led the flower of the eastern provinces to
the field of Ipsus (B. C. 301), and contributed largely to the
victory, thus winning himself a position among the foremost
potentates of the day. By the terms of the agreement made
after Ipsus, Seleucus was recognised as monarch of an the
Greek conquests in Asia, with the sole exceptions of Lower
Syria and Asia Minor. The monarchy thus established extended
from the Holy Land and the Mediterranean on the west, to the
Indus valley and the Bolor mountain-chain upon the east, and
from the Caspian and Jaxartes towards the north, to the
Persian gulf and Indian Ocean towards the south. It comprised
Upper Syria, Mesopotamia, parts of Cappadocia and Phrygia,
Armenia, Assyria, Media, Babylonia, Susiana, Persia, Carmania,
Sagartia, Hyrcania, Parthia, Bactria, Sogdiana, Aria,
Zarangia, Arachosia, Sacastana, Gedrosia, and probably some
part of India."
G. Rawlinson,
Sixth Great Oriental Monarchy,
chapter 3.