Professional Documents
Culture Documents
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://testbankdeal.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://testbankdeal.com/product/programming-with-mobile-
applications-android-ios-and-windows-phone-7-1st-edition-duffy-
solutions-manual/
https://testbankdeal.com/product/system-programming-with-c-and-
unix-1st-edition-hoover-solutions-manual/
https://testbankdeal.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://testbankdeal.com/product/introduction-to-programming-
with-c-3rd-edition-liang-test-bank/
https://testbankdeal.com/product/building-cross-platform-mobile-
and-web-apps-for-engineers-and-scientists-an-active-learning-
approach-1st-edition-lingras-solutions-manual/
https://testbankdeal.com/product/introduction-to-programming-
with-c-4th-edition-diane-zak-test-bank/
https://testbankdeal.com/product/introduction-to-matlab-
programming-and-numerical-methods-for-engineers-1st-edition-
siauw-solutions-manual/
https://testbankdeal.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:
he often lays his hand lightly on
those who use him well.
Barnaby Rudge.
Madam Mantalini.
Twenty-fourth Day.
Barnaby Rudge.
Martin Chuzzlewit.
Little Dorrit.
Gabriel Varden.
Twenty-fifth Day.
Pickwick Papers.
Nicholas Nickleby.
Nicholas Nickleby.
Sketches by Boz.
Great Expectations.
Twenty-seventh Day.
Haunted Man.
Dickens.
Twenty-eighth Day.
Little Dorrit.
Dickens.
Little Dorrit.
Twenty-ninth Day.
Ralph Nickleby.
Martin Chuzzlewit.
Hard Times.
Thirtieth Day.
Nicholas Nickleby.
Christmas Carol.
Battle of Life.
Thirty-first Day.
Little Dorrit.
Little Dorrit.
Transcriber’s note
Minor punctuation errors have been changed
without notice. The following printer errors have
been changed.
CHANGED FROM TO
“always some thing “always something
Page 12:
to be” to be”
Page 19: “Go in an win” “Go in and win”
“An Uncommercial “The Uncommercial
Page 26:
Traveller.” Traveller.”
Page 31: “what ever it is” “whatever it is”
*** END OF THE PROJECT GUTENBERG EBOOK HOLLY
BERRIES FROM DICKENS ***
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.
1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if
you provide access to or distribute copies of a Project
Gutenberg™ work in a format other than “Plain Vanilla ASCII” or
other format used in the official version posted on the official
Project Gutenberg™ website (www.gutenberg.org), you must, at
no additional cost, fee or expense to the user, provide a copy, a
means of exporting a copy, or a means of obtaining a copy upon
request, of the work in its original “Plain Vanilla ASCII” or other
form. Any alternate format must include the full Project
Gutenberg™ License as specified in paragraph 1.E.1.
• You pay a royalty fee of 20% of the gross profits you derive from
the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information