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. The first method called when a user taps an application icon
Object Library
main()
eXtensible Markup Language
UILabel *myLabel = [[UILabel alloc] init];
2. Typical header syntax for a button that will be applying the 'moveMe' action in an app
Command+1
Identity Inspector
header
IBAction)moveMe:(id)sender;
3. Recommended image type for button graphics
Size Inspector
retain - release - dealloc - autorelease
storyboards
png
4. Denotes an instance method
Collections
nil
-
superclass
5. The Utilities area has two sections: ______ and ______
NSURL
while(<boolean expression>){/*stuff to do here*/}
inspector and library
stub
6. Syntax for sending an object a message with no parameters
bool
utility
Seques .... relationships
[<object variable> <method name>];
7. Indicates a lack of any value at all
nil
NSURLRequest
png
m
8. Under what circumstances would you need an outlet for a button if it's just needed to trigger an action?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
9. Something the simulator cannot reliably test
Touch Up Inside
hasShrunk==YES && hasMoved == YES
performance
id
10. Calling a method is the same as...
Instruments
nested message send
sending an object a message
NSString *phrase = @'Hello World';
11. Method used to print information in an output panel
Cocoa Touch - Media - Core Services - Core OS
NSObject
NSLog
NSDate
12. Shortcut for writing: y = y * 5;
y *= 5;
-
casting
To provide a convenient way of setting the button's title in the code
13. 'Build and run' keyboard shortcut
%@
Commmand-R
[[<class name> alloc] init];
while(<boolean expression>){/*stuff to do here*/}
14. Extension for implementation file
retain - release - dealloc - autorelease
while(<boolean expression>){/*stuff to do here*/}
m
%
15. Expression to create a random number in [0 -20];
Right-click on it in the Navigator panel and choose 'Open as...' and select 'Source Code'
rand( )%21
m
#import 'myFile.h'
16. To zoom between an overview of the entire storyboard and the actual size view - ______ the storyboard background.
nibfile
hash
Double-click
modal
17. The bar across the top of the Editor area that shows you the item you are editing
57 x 57
[shrinkButton setTitle:@'Grow' forState: UIControlStateNormal];
Jump Bar
disclosure
18. Collection of interface elements and data storage elements etc you can access from your applications
x--;
Cocoa Touch - Media - Core Services - Core OS
NSURL
Cocoa Touch
19. Key sequence to open the Project Navigator (left panel)
Command+0
Command+1
@
#import <UIKIT/UIKIT.h>
20. Combining two messages into a single line of code
implementation file
switch
2
nested message send
21. Although it is possible to declare an instance variable and then define a corresponding property - you may also use @property alone to...
Determine how controls resize/reposition themselves when a device changes orientation
Send the 'resignFirstResponder' message to the object that currently controls the keyboard (such as a text field)
view
implicitly declare a matching instance variable
22. Apple's classes often provide a special initialization method called a _____ method
parameter
convenience
#import 'myFile.h'
NSURLRequest
23. In the MVC design pattern for iOS apps - this aspect is responsible for receiving user input and acting accordingly - and serves as a 'bridge' between the other two components. It is the backbone of the app.
do not
Command+S
@2x
controller
24. Write a statement to declare and initialize a label object called 'myLabel'
UILabel *myLabel = [[UILabel alloc] init];
UIImageView
modal views
count++;
25. 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
26. You have two labels in Interface Builder. One is selected (You clicked on it). How can you tell the distance between it and the other label?
Hold down the Option key and point to the other label. The distance will be shown
C
model
scene
27. Development approach (design pattern) to structure iOS applications
Model-View-Controller
prototyping
'Interface Builder'
NeXSTEP
28. This file contains the code that makes everything 'work'
[shrinkButton setTitle:@'Grow' forState: UIControlStateNormal];
!
implementation file
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.
29. Way to refer to an object within its own methods
self
IBAction
NSMutableArray
xcodeproj
30. Other name for an *.xib file
nibfile
UITextField
modal
instance variable
31. A virtual 'box' for organizing related projects
ommand+Return
1024 x 768
workspace
header
32. Scaling factor to make an image suitable for retina display
label.text=@'Hello World!';
implementation file
nibfile
2
33. strong and nonatomic are examples of ...
Instruments
do{/*stuff to do here*/}while(<boolean expression>);
attributes
myImage@2x.png
34. Boolean for 'true' in Objective-C
YES
Object Library
Object library
eXtensible Markup Language
35. Define a collection of methods to perform a task
accessible apps
Cocoa is the development framework used for most native Mac OS X applications; Cocoa Touch is customized for a touch interface
token
protocols
36. The Inspector you will need if you want to connect a custom class to an object in Interface Builder
Identity Inspector
IBAction)moveMe:(id)sender;
YES
utility
37. What property needs to be set before a scroll view (UIScrollView) will scroll?
UIViewController
inspector and library
!=
contentSize
38. These define to which messages the datasource and delegate respond
protocols
hasShrunk==YES && hasMoved == YES
header
disclosure triangle
39. Denotes a class method
do not
+
Double-click
[<object variable> <method name>: p1];
40. Formatting placeholder for a floating point value with one digit on the left of the decimal and two digits on the right
Object library
%1.2f
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.
immersive
41. Size of iPhone 'lo-res' icon image in pixels
Right-click on it in the Navigator panel and choose 'Open as...' and select 'Source Code'
[[<class name> alloc] init];
-
57 x 57
42. XML
Determine how controls resize/reposition themselves when a device changes orientation
eXtensible Markup Language
'Software Development Kit'
viewDidLoad
43. 'plist' stands for...
@end
token
property list
scene
44. You have created some 'breadcrumbs' using NSLog to trace the path of your code - and the debug area is open - yet you see no information in the panel. What's the problem and what is the solution?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
45. Syntax to include UIKIT in a class
#import <UIKIT/UIKIT.h>
proxy
*
m
46. Syntax for block-comment
/*blah blah blah */
&&
do{/*stuff to do here*/}while(<boolean expression>);
NO
47. Storage location for a piece of information
implementation file
variable
token
NSURL
48. Tests to see whether two values are equal
NSURL
NSString *userName;
nonatomic
==
49. Postcondition repetition structure syntax
id
Document Outline Area or Outline View
IBOutlet
do{/*stuff to do here*/}while(<boolean expression>);
50. Framework used to write iPhone apps
To provide a convenient way of setting the button's title in the code
Command+0
mutators
Cocoa Touch