Objective-C and Ios Programming A Simplified Approach To Developing Apps For The Apple Iphone and Ipad 1St Edition Arshia Khan Test Bank
Objective-C and Ios Programming A Simplified Approach To Developing Apps For The Apple Iphone and Ipad 1St Edition Arshia Khan Test Bank
Objective-C and Ios Programming A Simplified Approach To Developing Apps For The Apple Iphone and Ipad 1St Edition Arshia Khan Test Bank
https://testbankfan.com/product/objective-c-and-ios-programming-
a-simplified-approach-to-developing-apps-for-the-apple-iphone-
and-ipad-1st-edition-arshia-khan-solutions-manual/
https://testbankfan.com/product/programming-with-mobile-
applications-android-ios-and-windows-phone-7-1st-edition-duffy-
solutions-manual/
https://testbankfan.com/product/system-programming-with-c-and-
unix-1st-edition-hoover-solutions-manual/
https://testbankfan.com/product/introduction-to-c-programming-
and-data-structures-4th-edition-liang-solutions-manual/
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/building-cross-platform-mobile-
and-web-apps-for-engineers-and-scientists-an-active-learning-
approach-1st-edition-lingras-solutions-manual/
https://testbankfan.com/product/introduction-to-programming-
with-c-4th-edition-diane-zak-test-bank/
https://testbankfan.com/product/introduction-to-matlab-
programming-and-numerical-methods-for-engineers-1st-edition-
siauw-solutions-manual/
https://testbankfan.com/product/business-communication-
developing-leaders-for-a-networked-world-1st-edition-cardon-test-
bank/
Chapter 9: Understanding and Creating User Interfaces
TRUE/FALSE
1. The UIKit framework classes manage the application object, event handling, windows, views, and all
the controls that help create an interactive touch screen user interface.
2. When you have a large number of views displayed at one time, the Xcode window can get crowded;
therefore, it’s helpful to use a large monitor when working with storyboards.
4. An arrow on the right side of a view controller in a storyboard file indicates that this is the project’s
initial view.
5. To open the Object Library in Xcode, click View > Utilities > Show Object Library.
6. In a storyboard file, control-dragging a button from one view to another brings up an options menu for
creating a segue.
7. To embed a navigation controller in a view controller that is being displayed in Interface Builder, first
select the view controller and then, on the Xcode window menu along the top, click Editor >
Embed In > View Controller.
8. When a new navigation controller is added to a project, that navigation controller must be used as the
initial view controller.
9. In Interface Builder, a view controller is graphically connected to its embedded navigation controller
with an arrow that points from the view controller to the navigation controller.
10. To add a title to a navigation bar in Interface Builder, double-click in the center of the navigation bar
and then type the desired title.
12. When creating a segue from a view controller to a second view controller using a navigation bar
button, you should use the modal segue option.
13. When a navigation bar is used to transition to a new view, it is important to create a button on the
second view that will return to the original view.
14. When transitioning from one view to another through a storyboard segue, it is possible to pass data
from the first view to the second view.
15. When two views share a storyboard, they can also share the related View Controller.h and
ViewController.m files.
17. To select a view controller in Interface Builder, you should click in its top blue bar, near the battery
icon.
18. When writing code involving segues, you can ensure that you are referring to the correct one in your
code by checking that the identifier attribute of the segue is the expected string.
19. When working with numbers that are entered into textfields, the numbers will be read as strings and
must be explicitly converted to numeric form before performing numeric operations.
20. The createASegue method is automatically generated when a segue is created using the
control-drag method.
1. The ____ framework is the most important framework in the design and building of an interactive
interface.
a. UIKit c. NavController
b. Storyboard d. DemoKit
ANS: A PTS: 1 REF: 236
2. ____ is a feature that allows the developer to work with all the view controllers in an app at one time.
a. Segueing c. Storyboarding
b. Transitioning d. Modal Building
ANS: C PTS: 1 REF: 236
4. The Xcode editor pane that contains a graphic representation of a view is called the ____ canvas.
a. Storyboard c. Assistant Editor
b. Interface Builder d. Segue
ANS: B PTS: 1 REF: 236
5. The accompanying figure shows a portion of the ____ area of the Xcode editor.
a. Object Library c. Identity Inspector
b. Attributes Inspector d. Assistant Editor
ANS: A PTS: 1 REF: 237
6. When creating a project using storyboards, you must select the ____ option in the “Choose options for
your new project” window.
a. Create Automatic Storyboards c. Include Storyboards
b. Use Storyboards d. Generate Storyboards
ANS: B PTS: 1 REF: 239-240
7. To see the graphical view of a project in the Xcode Interface Builder window, click on the ____ file in
the navigation area on the left-hand side of the screen.
a. Main.h c. Main.xib
b. Project.m d. MainStoryboard.storyboard
ANS: D PTS: 1 REF: 240
9. The controls that can be dragged into Interface Builder to create a user interface are found in the
Xcode ____.
a. ViewController Library c. Storyboard Library
b. Object Library d. GUI Library
ANS: B PTS: 1 REF: 241
10. In the accompanying figure, the arrow to the left of the blue view signifies that this is the ____ view.
a. modal c. initial
b. child d. segue
ANS: C PTS: 1 REF: 241
11. The button on the blue view of the accompanying figure is an example of a(n) ____.
a. Navigation button c. Information button
b. Oval button d. Round Rect button
ANS: D PTS: 1 REF: 242
12. Control-dragging the “Go to next view” button onto the right view controller in the accompanying
figure will bring up an option menu for choosing a type of ____.
a. view controller c. IBAction
b. IBOutlet d. segue
ANS: D PTS: 1 REF: 243
13. In the accompanying figure, the arrow between the two views shown represents a ____.
a. mode c. shift
b. segue d. method call
ANS: B PTS: 1 REF: 245
14. A ____ segue is typically used for presenting a new view controller without a navigation controller.
a. push c. hierarchical
b. custom d. modal
ANS: D PTS: 1 REF: 244
15. A(n) ____ bar is a horizontal bar with buttons that the user can click to move among view controllers.
a. navigation c. controller
b. action d. title
ANS: A PTS: 1 REF: 247
16. Embedding a(n) ____ adds a navigation bar at the top of a view controller.
a. segue controller c. action controller
b. title controller d. navigation controller
ANS: D PTS: 1 REF: 247
17. The object in a navigation bar that is used to initiate a transition to a new view is called a ____.
a. Nav Button c. Bar Button Item
b. Round Rect Button d. Fixed Button Item
ANS: C PTS: 1 REF: 251
18. The type of segue associated with a navigation controller is a ____ segue.
a. push c. transition
b. modal d. custom
ANS: A PTS: 1 REF: 251
19. When looking for a specific control in the Object Library of Xcode, you can type at least part of the
name of the control in the ____ of the library to display matching controls.
a. object finder c. finder
b. control search d. search field
ANS: D PTS: 1 REF: 251
20. If the accompanying figure shows the main storyboard for an app , what is the first thing displayed
when running the app?
a. A view with the label “Navigation Controller”
b. An empty black view with a navigation bar
c. An empty white view with a navigation bar
d. A view with the label “Navigation Controller - View”
ANS: B PTS: 1 REF: 252-253
21. In the accompanying figure, the arrow to the left of the View Controller with the label “View 1” in the
navigation bar represents a(n) ____.
a. modal segue c. initial view
b. embedded navigation controller d. push segue
ANS: B PTS: 1 REF: 252
22. In the accompanying figure, the object labelled “Next” is an example of a ____ item.
a. segue button c. bar button
b. controller button d. nav button
ANS: C PTS: 1 REF: 251
24. To create a new set of .h and .m files, you can choose File > New > ____ from the Xcode menu bar.
a. View Controller c. Class
b. File d. Open
ANS: B PTS: 1 REF: 255
25. When creating a file that is to contain a view controller, you should select the ____ template from the
template menu.
a. Objective-C class extension c. Objective-C class
b. Objective-C category d. Objective-C protocol
ANS: C PTS: 1 REF: 256
26. When creating a new view controller file, you would normally choose ____ from the Subclass of
dropdown list in the “Choose options for your new file” menu.
a. UIView c. UIController
b. UIViewController d. UINavigationController
ANS: B PTS: 1 REF: 257
27. Which of the following icons represents the Identity Inspector in the Xcode editor?
a. c.
b. d.
28. The accompanying figure shows the ____, which allows you to change the class of a selected view
controller in a storyboard.
a. Identity Inspector c. Assistant Editor
b. Object Library d. Organizer
ANS: A PTS: 1 REF: 258
29. To see a graphic representation of a view controller alongside its associated code in Xcode, you can
first select the storyboard file in the navigation area and then open the ____ pane.
a. Identity Inspector c. Object Library
b. Organizer d. Assistant Editor
ANS: D PTS: 1 REF: 258
30. You can create an IBOutlet for a label control by control-dragging the label from Interface Builder
to its associated ____ file.
a. .xib c. .m
b. .h d. .storyboard
ANS: B PTS: 1 REF: 259
31. The code statement, @synthesize total;, would appear in a ____ file.
a. .xib c. .m
b. .h d. .storyboard
ANS: C PTS: 1 REF: 260
32. You can name a segue by selecting the segue and typing the desired name in the ____ field of the
Attributes Inspector.
a. Title c. Name
b. Label d. Identifier
ANS: D PTS: 1 REF: 261-262
33. The name of the method used to pass data between two views via a segue is ____.
a. loadNewSegue c. prepareForSegue
b. transitionToSegue d. startSegue
ANS: C PTS: 1 REF: 262
34. When working with a view controller named ViewController,in which of the following files
would the accompanying code segment appear?
a. ViewController.h c. ViewController.storyboard
b. ViewController.m d. MainStoryboard.storyboard
ANS: B PTS: 1 REF: 262
35. In the accompanying code segment, segue on line 4 refers to a(n) ____.
a. class c. IBOutlet
b. method parameter d. IBAction
ANS: B PTS: 1 REF: 262
36. To reference the view controller being transitioned to during a segue, you can use the method call
____.
a. [segue ToNewViewController];
b. [beginSegueTransition destination]
c. [segue destinationViewController];
d. [segue getViewController2];
ANS: C PTS: 1 REF: 262
37. An integer can be converted to a string using a(n) ____
a. IntegerConverter c. StringFormatter
b. StringCast d. NSNumberFormatter
ANS: D PTS: 1 REF: 263
38. In the following code segment, myInt is an integer.What is the type of the result returned?
a. int c. string
b. NSNumber d. float
ANS: C PTS: 1 REF: 263
39. Which of the following statements could be used to return an integer value from a textfield called
myField?
a. [myField.text intValue];
b. myfield.text;
c. [myField.value stringToInt];
d. [myField.value toInt];
ANS: A PTS: 1 REF: 263
40. The ____ method is generated when a segue is created using the control-drag method.
a. createSegue c. pushSegue
b. prepareForSegue d. startSegue
ANS: B PTS: 1 REF: 263
Another random document with
no related content on Scribd:
Cimbex she finds a similar arrangement, but there are ten chambers,
and no aorta.
The dorsal vessel is connected with the roof of the body by some
short muscles, and is usually much surrounded by fat-body into
which tracheae penetrate; by these various means it is kept in
position, though only loosely attached; beneath it there is a delicate,
incomplete or fenestrate, membrane, delimiting a sort of space
called the pericardial chamber or sinus; connected with this
membrane are some very delicate muscles, the alary muscles,
extending inwards from the body wall (b, Fig. 72): the curtain formed
by these muscles and the fenestrate membrane is called the
pericardial diaphragm or septum. The alary muscles are not directly
connected with the heart.
Fig. 72.—Dorsal vessel (c), and alary muscles (b), of Gryllotalpa (after
Graber); a, aorta. N.B.—The ventral aspect is here dorsal, and
nearly the whole of the body is removed to show these parts.
It has been thought by some that delicate vessels exist beyond the
aorta through which the fluid is distributed in definite channels, but
this does not appear to be really the case, although the fluid may
frequently be seen to move in definite lines at some distance from
the heart.
Fat-Body.
The matter extracted from the food taken into the stomach of the
Insect, after undergoing some elaboration—on which point very little
is known—finds its way into the body-cavity of the creature, and as it
is not confined in any special vessels the fat-body has as unlimited a
supply of the nutritive fluid as the other organs: if nutriment be
present in much greater quantity than is required for the purposes of
immediate activity, metamorphosis or reproduction, it is no doubt
taken up by the fat-body which thus maintains, as it were, an
independent feeble life, subject to the demands of the higher parts of
the organisation. It undoubtedly is very important in metamorphosis,
indeed it is possible that one of the advantages of the larval state
may be found in the fact that it facilitates, by means of the fat-body,
the storage in the organisation of large quantities of material in a
comparatively short period of time.
Organs of Sex.
There are in different Insects more than one kind of diverticula and
accessory glands in connexion with the oviducts or uterus; a
receptaculum seminis, also called spermatheca, is common. In the
Lepidoptera there is added a remarkable structure, the bursa
copulatrix, which is a pouch connected by a tubular isthmus with the
common portion of the oviduct, but having at the same time a
separate external orifice, so that there are two sexual orifices, the
opening of the bursa copulatrix being the lower or more anterior. The
organ called by Dufour in his various contributions glande sébifique,
is now considered to be, in some cases at any rate, a spermatheca.
The special functions of the accessory glands are still very obscure.
Although the internal sexual organs are only fully developed in the
imago or terminal stage of the individual life, yet in reality their
rudiments appear very early, and may be detected from the embryo
state onwards through the other preparatory stages.
Parthenogenesis.
Glands.
CHAPTER V
DEVELOPMENT
EMBRYOLOGY–EGGS–MICROPYLES–FORMATION OF EMBRYO–VENTRAL
PLATE–ECTODERM AND ENDODERM–SEGMENTATION–LATER STAGES–
DIRECT OBSERVATION OF EMBRYO–METAMORPHOSIS–COMPLETE AND
INCOMPLETE–INSTAR–HYPERMETAMORPHOSIS–METAMORPHOSIS OF
INTERNAL ORGANS–INTEGUMENT–METAMORPHOSIS OF BLOWFLY–
HISTOLYSIS–IMAGINAL DISCS–PHYSIOLOGY OF METAMORPHOSIS–
ECDYSIS.
The processes for the maintenance of the life of the individual are in
Insects of less proportional importance in comparison with those for
the maintenance of the species than they are in Vertebrates. The
generations of Insects are numerous, and the individuals produced
in each generation are still more profuse. The individuals have as a
rule only a short life; several successive generations may indeed
make their appearances and disappear in the course of a single
year.
Although eggs are laid by the great majority of Insects, a few species
nevertheless increase their numbers by the production of living
young, in a shape more or less closely similar to that of the parent.
This is well known to take place in the Aphididae or green-fly Insects,
whose rapid increase in numbers is such a plague to the farmer and
gardener. These and some other cases are, however, exceptional,
and only emphasise the fact that Insects are pre-eminently
oviparous. Leydig, indeed, has found in the same Aphis, and even in
the same ovary, an egg-tube producing eggs while a neighbouring
tube is producing viviparous individuals.[69] In the Diptera pupipara
the young are produced one at a time, and are born in the pupal
stage of their development, the earlier larval state being undergone
in the body of the parent: thus a single large egg is laid, which is
really a pupa.
The eggs are usually of rather large size in comparison with the
parent, and are produced in numbers varying according to the
species from a few—15 or even less in some fossorial Hymenoptera
—to many thousands in the social Insects: somewhere between 50
and 100 may perhaps be taken as an average number for one
female to produce. The whole number is frequently deposited with
rapidity, and the parent then dies at once. Some of the migratory
locusts are known to deposit batches of eggs after considerable
intervals of time and change of locality. The social Insects present
extraordinary anomalies as to the production of the eggs and the
prolongation of the life of the female parent, who is in such cases
called a queen.
Formation of Embryo.
The mature, but unfertilised, egg is filled with matter that should
ultimately become the future individual, and in the process of
attaining this end is the seat of a most remarkable series of changes,
which in some Insects are passed through with extreme rapidity. The
egg-contents consist of a comparatively structureless matrix of a
protoplasmic nature and of yolk, both of which are distributed
throughout the egg in an approximately even manner. The yolk,
however, is by no means of a simple nature, but consists, even in a
single egg, of two or three kinds of spherular or granular
constituents; and these vary much in their appearance and
arrangement in the early stages of the development of an egg, the
yolk of the same egg being either of a homogeneously granular
nature, or consisting of granules and larger masses, as well as of
particles of fatty matter; these latter when seen through the
microscope looking sometimes like shining, nearly colourless,
globules.
Fig. 79.—Showing the two extruded polar bodies P1, P2 now nearly
fused and reincluded, and the formation of the spindle by junction
of the male and female pronuclei. (After Henking.)