SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
iOS 5 App Development Basics
Start Test
Study First
Subjects
:
it-skills
,
apple
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. Declare and initialize a string that says: 'Hello World' whose identifier if 'phrase' . Use the shortest command possible.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
2. Key sequence to open the Project Navigator (left panel)
Command+1
%
/*blah blah blah */
+
3. Class that creates an array capable of being changed after it is create
Isolate the functional components of an app
nested message send
switch
NSMutableArray
4. Defines the functional building blocks (classes) that make iOS devices perform certain actions
Cocoa Touch
ption+Command+Return
Model-View-Controller
NSDictionary
5. @synthesize directives should be placed _____ (above or below) the @implementation directive in the implementation file
Program received signal: EXC_BAD_ACCESS
below
segue
XML
6. Apple's classes often provide a special initialization method called a _____ method
Option+Command+ 0
graduationParty ... addAttendee:withDish
Send the 'resignFirstResponder' message to the object that currently controls the keyboard (such as a text field)
convenience
7. This keyword in the property directive is related to memory management and refers to the idea that we want to maintain control of memory issues
NSLog(@'%s' - __FUNCTION__);
Something unique - based on the app's name (perhaps abbreviated). Avoid 'NS' or 'UI' since they are used in Apple's frameworks. A framework or library should always be prefixed. For a simple app - they are not necessary.
The Console area of the Debug area
retain
8. A tool in Xcode to help fix broken code
NO
Gray circle with a white 'X' in it - positioned to the right of the text field box
protocols
debugger
9. Creates 'getters' and 'setters'
Object-oriented programming
IBAction)moveMe:(id)sender;
NSObject
@synthesize directive
10. To zoom between an overview of the entire storyboard and the actual size view - ______ the storyboard background.
IBAction
NSLog
Double-click
debugger
11. This file contains the scene - segue and relationship definitions for your project
//blah blah blah
storyboard
eXtensible Markup Language
The Console area of the Debug area
12. UI
==
User Interface
/*blah blah blah */
while(<boolean expression>){/*stuff to do here*/}
13. What are the guidelines for the class prefix for a project?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
14. Character used to show an element as a literal string
Identity Inspector
CGAffineTransform
@
accessors
15. XML
view
eXtensible Markup Language
%
Attributes Inspector
16. What do the Autosizing settings of the Size Inspector do?
header
Commmand-R
Determine how controls resize/reposition themselves when a device changes orientation
Seques .... relationships
17. Attribute that informs the system that the object referred to needs to be kept around and not discarded from memory
prototyping
!=
Xcode
strong
18. Fixed iteration repetition control structure syntax
UIApplication
for(<initialization>;<test condition>;<update instruction>){/*do this over and over*/}
wrap
'Interface Builder'
19. Key sequence to run an app in Xcode
performance
Option+Command+4
Command+R
Identity Inspector
20. Name of the drop-down menu in Xcode that lets you select the device used with the iOS Simulator
void
Scheme
instantiation
self
21. An alternative way to see the connections between an object in the Interface Builder and it's code in Xcode without using the Connections inspector
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
22. Precondition repetition structure syntax
Control-click on the View Controller's icon to bring up a Connections dialog
while(<boolean expression>){/*stuff to do here*/}
NSLog(@'%s' - __FUNCTION__);
UIImage *wp1 = [UIImage imageNamed:@'wallPaper_01.png'];
23. The '@' symbol is shorthand for creating one of these
Something unique - based on the app's name (perhaps abbreviated). Avoid 'NS' or 'UI' since they are used in Apple's frameworks. A framework or library should always be prefixed. For a simple app - they are not necessary.
NSString
h
Document Outline Area or Outline View
24. An app has boolean variables 'hasShrunk' and 'hasMoved'. Write a boolean condition that checks if each are true
Option-click a symbol
hasShrunk==YES && hasMoved == YES
image view
Identity Inspector
25. Class used for creating image views
UIApplication
modal views
UIImageView
instantiation
26. Extension for implementation file
m
UITextView
Cocoa is the development framework used for most native Mac OS X applications; Cocoa Touch is customized for a touch interface
NSLog
27. Extension for an iPhone/iPad app
&&
NSMutableString
Seques .... relationships
xcodeproj
28. Beginning with iOS4 - applications no longer terminate when the user presses the...
main()
Home button
Seques .... relationships
C
29. This type of app typically involves hierarchical data
pound
workspace
/*blah blah blah */
productivity
30. Class used for image manipulations such as scaling - rotation and translation. Its data structure represents a matrix used for affine transformations.
First Responder
UIImageView
attributes
CGAffineTransform
31. Class of collection data type which stores information as object/key pairs
NSDictionary
bgImages = [[NSArray alloc] initWithObjects: wp1 - wp2 - wp3 - wp4 - wp5 - nil];
retain - release - dealloc - autorelease
pound
32. A class that implements a protocol is said to ____ to that protocol
viewDidLoad
conform
/*blah blah blah */
png
33. In your implementation file - the _____ method (provided in stub form by Apple) runs after machine language code reserves some space in memory for your View. This method is often used to create a 'clean slate' as an app opens.
User Interface
UILabel *myLabel = [[UILabel alloc] init];
viewDidLoad
token
34. To use a new class you need to _____ it
instantiate
//blah blah blah
Control-click on the View Controller's icon to bring up a Connections dialog
2
35. File name suffix indicating an image is suitable for retina display
==
%
Objective-C
@2x
36. These define to which messages the datasource and delegate respond
bool
protocols
hash
Nib (but a few call it 'zib' but that's not preferred)
37. Tests to see whether two values are equal
nibfile
==
Option+Command+ 0
UILabel *myLabel = [[UILabel alloc] init];
38. Expression to create a random number in [0 -20];
casting
convenience
storyboards
rand( )%21
39. What type of object does a web view expect as a parameter when loading a remote URL?
segmented control
IBAction
model
NSURLRequest
40. How do you get rid of an onscreen keyboard?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
41. In most graphical user interfaces - a _____ view is a view that must be dismissed ('OK' button - 'Cancel' button for example) before the user can perform any other actions in the application.
NSURL
modal
Something unique - based on the app's name (perhaps abbreviated). Avoid 'NS' or 'UI' since they are used in Apple's frameworks. A framework or library should always be prefixed. For a simple app - they are not necessary.
Object library
42. Calling a method is the same as...
UIApplication
sending an object a message
x--;
model
43. Single line text field
interface file
hash
UITextField
57 x 57
44. A file folder in the navigator panel is called a ________
:
instantiation
Attribute settings for some onscreen controls (like text areas) that analyze content and provide helpful links based on what they find. For example - phone numbers can be touched to dial the phone; web addresses can launch Safari if tapped - etc
Group
45. The Inspector you would use to tweak the way interface objects appear
sending an object a message
above
Attributes Inspector
==
46. Size of iPhone 'lo-res' icon image in pixels
strong
IBAction)moveMe:(id)sender;
Control-click on the View Controller's icon to bring up a Connections dialog
57 x 57
47. Size of iPhone retina icon image in pixels
57 x 57
Xcode
scene
114 x 114
48. This type of app is mostly custom controllers and graphics
do not
immersive
CGAffineTransform
@synthesize
49. The Utilities area has two sections: ______ and ______
inspector and library
Actions
Control-click on the View Controller's icon to bring up a Connections dialog
IBOutlet
50. If you have an image file called 'myImage.png' and you make a hi-res version for the retina display - what should be the name of the new file?
Model-View-Controller
@
To provide a convenient way of setting the button's title in the code
myImage@2x.png