Objective-C and iOS Programming A Simplified Approach To Developing Apps for the Apple iPhone and iPad 1st Edition Arshia Khan Test Bank - Full Version Is Now Available For Download
Objective-C and iOS Programming A Simplified Approach To Developing Apps for the Apple iPhone and iPad 1st Edition Arshia Khan Test Bank - Full Version Is Now Available For Download
_____ Follow the link below to get your download now _____
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-test-bank/
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/quantitative-methods-for-
business-12th-edition-anderson-test-bank/
Business Law Text Cases An Accelerated Course 14th Edition
Miller Solutions Manual
https://testbankfan.com/product/business-law-text-cases-an-
accelerated-course-14th-edition-miller-solutions-manual/
https://testbankfan.com/product/influence-science-and-practice-5th-
edition-cialdini-test-bank/
https://testbankfan.com/product/microeconomics-for-life-smart-choices-
for-you-canadian-2nd-edition-cohen-solutions-manual/
https://testbankfan.com/product/principles-of-managerial-finance-
brief-7th-edition-gitman-solutions-manual/
https://testbankfan.com/product/marketing-management-14th-edition-
kotler-solutions-manual/
Nutrition for Life 4th Edition Thompson Solutions Manual
https://testbankfan.com/product/nutrition-for-life-4th-edition-
thompson-solutions-manual/
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 Scribd Document
with Unrelated Content
"I was found and brought up by gypsies," said Mrs. Gilroy,
indifferently, "although I am not of Romany blood. But I learned a
few secrets from the Romany," added Mrs. Gilroy, her eyes flashing,
"and one of them relating to drabbing—if you know what that means
—may come in useful this day."
"It has to do with drows," said Mrs. Gilroy, laughing and rocking.
"I daresay you'll know the meaning of both words before the end of
this day." And she began to sing softly:—
"'The Romany cha,
Durham thought that her illness had affected her head. He did
not say anything, but resolved to get her examination over as
quickly as possible. A clerk entered at the moment, carrying a
typewriting machine, which he set down on a small table near at
hand.
"I think it will be best that your words should be taken down by
the machine," said Durham, turning to Mrs. Gilroy, "as the writer can
keep up with your speech."
"As you please," said Mrs. Gilroy, coolly. "I have to sign my
statement in the presence of witnesses, you and this young man."
"I am a foundling," said Mrs. Gilroy, smoothly and swiftly. "I was
picked up by some gypsies called Lovel, in the New Forest. I was
with them till I came of age. I was then a pretty girl. In our
wanderings we came to Hurseton. There I saw Walter Gore at a fair.
I did not know he was married, as we stopped at Hurseton only a
short time. We went away. Walter followed and said he loved me. He
married me at last. We went abroad—then came back to London.
When my child, Michael, was born, I learned the truth, for Walter
had deserted me. I went down to Hurseton to see Sir Simon. He
sent me to the States with Michael, my son. Walter sent me money."
"I know all that," said Durham, quickly. "Michael told me. I know
he was employed by Beryl to impersonate Bernard so that Sir
Simon's anger should be aroused."
"Well, then, you know a good deal," said Mrs. Gilroy, "but not all.
No, indeed," she added, smiling strangely, "not all."
"Tell me the events of that night, and how Beryl killed Sir Simon."
Mrs. Gilroy laughed again. "I am coming to that. You will be much
surprised when I tell you all. Bernard was in town as a soldier; Beryl
got Michael to masquerade. I never knew it was my own son who
courted Jane Riordan. Had I known, I should have put a stop to the
business. I really thought from the description given, that Jane's
lover was Bernard. I wanted Sir Simon, whom I told, to throw over
Bernard and let my son have the property. He would have done so,
but that Michael had forged a check——"
"Very good. We will pass that," said the woman. "Well, Sir Simon
was angry. I saw there was no chance for my boy, and cast about
how else to get the money for him. Beryl informed me that he
intended by means of the Red Window and Jerry to lure Bernard to
the Square, in the hope that when he saw the red light he would
come up and have a quarrel with his grandfather."
"Yes. Then I was to show Bernard up, and the quarrel would then
take place."
"Of course not. Beryl knew she was friendly to Bernard, and
wished her out of the way. For that reason, he took her to the
theatre. I then suggested to Sir Simon that probably Bernard knew
of the house from you, and might come back. Sir Simon had sent for
him to the kitchen, but my son, being afraid, ran away. Sir Simon
laughed at the idea of the red lamp, but he did not forbid my
arranging it. I got a lamp and placed it before the window. Then I
placed across the window a red bandana of Sir Simon's. From the
outside the signal could be plainly seen."
"Various things," retorted Mrs. Gilroy, "and not those you expect
to hear. I sat downstairs, waiting and working. Sir Simon was in the
room with the red light showing through the window. The trap was
laid. It only remained for Jerry to bring Bernard to fall into it. Shortly
before ten an Italian called."
"Yes. I knew him, and took him up to Sir Simon, thinking his
presence might make the quarrel worse. All Beryl and I wished to do
was to prevent Bernard and Sir Simon from becoming reconciled.
Well, Tolomeo saw Sir Simon, and while he was with him, my son
arrived. I asked him what he was doing there. He told me then that
he had been masquerading as Bernard, and informed me about the
check. He was afraid of trouble in connection with it, as by means of
it, Beryl held him in his power. He came to make a clean breast of it
to Sir Simon. I tried to stop him going up——"
"But why?" interrupted the lawyer, quickly.
"Tolomeo, running after Michael, left the door open. Beryl tried to
pacify the old man. I remained in the room all the time——"
"Yes," said Mrs. Gilroy, coolly. "You have been on the wrong tack
all along. You thought that Bernard killed Sir Simon—that my son did
so—that Tolomeo did so—that Beryl was guilty. But you were all
wrong. I, and none other, killed Sir Simon."
"No. Tolomeo can prove that Sir Simon was alive when Michael
fled from the house. Beryl can prove that I was alone with Sir
Simon. I was late—the servants were in bed. I determined to kill the
old man."
"Yes and no. I didn't buy it then. I always thought that Sir Simon
kept his will at the Hall, and I bought the chloroform months before,
hoping one night to make him insensible, so that I could look at the
will. But the chloroform was not wasted," said Mrs. Gilroy, with a
pale smile. "I brought it with me to town—always ready to watch for
my chance of rendering my master insensible and of reading the
will. I wanted to see if he left Michael anything, and if he had really
left me the five hundred he promised. Besides, in his death, I saw a
chance of getting rid of Bernard by hanging, and of having my son
acknowledged as the heir."
"No," said Mrs. Gilroy, calmly. "You forget the handkerchief. I took
that down with me, and soaked it with chloroform. I guessed that
the handkerchief would condemn Beryl, should it be necessary to
accuse any one. I did not foresee what would happen," added the
woman, impatiently. "I only acted as I saw things then. I came
upstairs, and while pretending to arrange Sir Simon's cushions, I
clapped the handkerchief over his mouth. He struggled for a long
time. It is not easy to chloroform people," said the woman,
pensively. "I thought they went off at once, but Sir Simon was some
time struggling."
Mrs. Gilroy laughed and drew her shawl tightly about her spare
figure.
"After he was insensible," she continued, "I strangled him with his
own handkerchief, after tying Beryl's handkerchief across his mouth.
I then went down and took my work up again while waiting for
Bernard."
"Why not?" said Mrs. Gilroy. "There was nothing else to do—the
old man was dead—the trap was set. All I had to do was to wait till
Bernard walked into it."
"Bernard was the eldest son, even though Michael had been born
in——"
"I know all about that," said Mrs. Gilroy, waving her hand, "spare
me your preaching. Is there anything more you wish to know?"
"You must sign the paper, and you must be arrested," said
Durham.
"As you please," said Mrs. Gilroy, perfectly calmly. Then Durham
sent for Inspector Groom, and, pending his arrival, Mrs. Gilroy
signed the paper, with Durham and the clerk as witnesses. She then
fell asleep, and Durham went out to receive Groom. They talked
together for some time, then entered the room. Mrs. Gilroy was lying
on the floor in convulsions, and laughed when she saw them.
"The train won't be here for another hour," he said, smiling. "You
will see Bernard soon enough, Miss Malleson."
"Oh, dear me," sighed Alice, "can I ever see him soon enough? It
seems like eleven years instead of eleven months since he went
away. I wish he hadn't gone."
"Well," said Durham, following with his eyes the spare little figure
of Miss Berengaria flitting about amongst the flowers, "I didn't
approve of it at the time, and I told Conniston so. But now I think it
was just as well Bernard did keep to his original intention and go to
the Front. It is advisable there should be an interval between the
new life and the old."
"The new life?" asked Alice, flushing.
"And with a bullet in his arm," sighed Alice. "I shall have to nurse
him back to health before we can marry."
"I am glad they have got off so easily. Bernard might have been
shot, you know."
"That was why I feared about his going out," said he. "I thought
it would be a pity, after all he passed through, that he should be
killed by a Boer bullet. But he has only temporarily lost the use of his
arm; he has been mentioned for gallantry in the despatches; and he
is coming home to marry the most charming girl in the world—I
quote from his own letter," finished Durham, smiling.
"I was only discussing Miss Malleson's future life," said Durham.
"Ah," sighed the old lady, sitting down. "What I shall do without
her I don't know."
"Dear aunt," said Alice, kissing the faded cheek, "I shall not be far
away. The Hall is within visiting distance."
"That's all very well," said Miss Berengaria. "But Bernard will want
you all to himself, and small blame to him. What is the time?"
Alice glanced at her watch. "It's nearly three, and the train arrives
at half-past," she said. "Oh, I wish we could meet them."
"You will have them as near neighbors, Miss Berengaria," said the
lawyer. "Bernard at Gore Hall and Conniston at the castle."
"I hope he and Lucy won't live there," said the old lady, rubbing
her nose. "A dreadfully damp place. I went over there the other day
to tell Mrs. Moon about Jerry."
"So, so. The reformatory he was put into seems to be a good one,
and the boys are well looked after. But Jerry is a tree which will grow
crooked. He seems to have been giving a lot of trouble."
"Yet he was lucky to get off as he did," said Durham. "The judge
might have sent him to jail instead of into a reformatory."
"And he'll land in jail some day," said Alice, shaking her head. "At
least, Bernard seems to think so."
"Michael Gilroy?"
"He has. It's the only name he is entitled to. How glad I am that
the poor creature was acquitted after that dreadful trial. I am sure
there is good in him."
"So Bernard thought, and that was why he assisted him," said
Alice.
"I think you put in a good word for him, Miss Malleson."
Alice assented. "I was sorry for the poor fellow. While I nursed
him I saw much good in him. And, remember, that he had intended
to tell me who he was when he arrived, only he was so ill."
"Well, I don't think he was quite himself during that illness," said
Alice, pensively. "Had he been better, he would certainly have
doubted the fact of aunty's and my beliefs. A few questions from
me, and he would have been exposed, even had I truly believed he
was Bernard."
"And he must have wondered how you never put the questions."
"I wonder will he tell his future wife anything of his past life."
"No," replied the old lady, promptly. "Drat you, Durham! why
should the boy mention his mother at this point? She has been dead
all these months. Poor soul! her end was a sad one. I never heard,
though, of what poison she died."
"I don't know that it is a drug," said Durham. "I can't explain
what it is. She hinted that I would know what drows meant before
the end of the day, and I did. While I was telling Inspector Groom
about her confession, she poisoned herself in my office. I thought
she was asleep, but she evidently was watching for her opportunity
to make away with herself."
"Ugh!" said Miss Berengaria, again. "I wonder you can bear to sit
in that office after such an occurrence."
"How lucky it was that she signed that confession before she
died," was the remark made by Alice.
"And if she had not suffered from that incurable disease, I doubt
if she would have committed suicide," said Miss Plantagenet.
"And a nice trouble there was over it," said the old lady, annoyed.
"I believe Bernard had a man calling on him who wished to write a
play about the affair—a new kind of 'Corsican Brothers.'"
"Then I can tell you, Durham. Michael saw him in New York."
"Where?"
"In some low slum, very ragged and poor. He didn't see Michael,
or he might have troubled him. He has taken to drink, I believe—
Beryl I mean—so some day he will die, and a nice fate awaits him
where he will go," said Miss Berengaria, grimly.
Durham rose and removed his straw hat. "Well," said he, looking
down on the two ladies, "the whole case is over and ended. I don't
see why we should revive such very unpleasant memories. The past
is past, so let it rest. Bernard has the title and the money and——"
"Here's Lucy," said Alice, rising. "Dear girl, how sweet she looks!"
"And Alice will be Lady of the Manor," laughed Lucy. "Oh, by the
way, Mr. Durham, I forgot to tell you that Signor Tolomeo called at
the Hall yesterday. He thought Bernard was back, and came to thank
him for his allowing him an income."
"I don't envy his wife," said Miss Berengaria, rising. "Girls, come
into the house to see that everything is prepared for our heroes."
The girls laughed and tripped away. Durham left the garden and
drove to the station to fetch back Conniston and Bernard. They did
not come by that train, however, much to the disappointment of
those at the Bower. It was seven before they arrived, and then the
three ladies came out to meet them on the lawn.
"Dear Alice," said Bernard, who had his arm in a sling, but
otherwise looked what Conniston called "fit!", "how glad I am to see
you!"
Miss Berengaria took Durham's arm. "I must look out a wife for
you, sir," she said, leading him to the house. "Come away and let the
turtle-doves coo alone. I expect dinner will be late."
And dinner was late. Conniston, with Lucy on his arm, strolled
away in the twilight, but Bernard and Alice remained under the elm.
When it grew quite dusk a red light was seen shining from the
window of the drawing-room. Gore pointed it out.
"That is the signal Lucy used to set in the window at the Hall to
show that all was well," he said, putting his unwounded arm round
the girl, "and now it gleams as a sign that there is a happy future for
you and I, dearest."
"This is the exception that proves the rule," said Gore. "It once
led me into trouble, but now it shines upon me with my arms around
you. Thank Heaven that, after all our trouble, we are at last in
smooth waters. There's the gong for dinner."
On page 99, "I will recive" was replaced with "I will receive".
On page 105, "in her spech" was replaced with "in her
speech".
On page 233, a quotation mark was added before "I did not
catch him myself".
On page 306, "I was late" was replaced with "It was late".
Updated editions will replace the previous one—the old editions will
be renamed.
1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside the
United States, check the laws of your country in addition to the
terms of this agreement before downloading, copying, displaying,
performing, distributing or creating derivative works based on this
work or any other Project Gutenberg™ work. The Foundation makes
no representations concerning the copyright status of any work in
any country other than the United States.
testbankfan.com