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. Fixed iteration repetition control structure syntax
&&
Group
for(<initialization>;<test condition>;<update instruction>){/*do this over and over*/}
label.text=@'Hello World!';
2. Syntax for single-line comment
//blah blah blah
%1.2f
&&
/*blah blah blah */
3. setters
mutators
Human Interface Guide
#import <UIKIT/UIKIT.h>
Command+1
4. 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.
viewDidLoad
Command plus the navigator's position in the selector. For example - the project navigator shortcut is Command-1
Seques .... relationships
UIApplication
5. Key sequence to hide/show the Assistant Editor
ption+Command+Return
Object-oriented programming
nil
png
6. Name of the drop-down menu in Xcode that lets you select the device used with the iOS Simulator
workspace
//blah blah blah
com.basicversity
Scheme
7. File name suffix indicating an image is suitable for retina display
retain
@2x
Identity Inspector
[<object variable> <method name>: p1];
8. Combining two messages into a single line of code
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.
Command+R
nested message send
disclosure
9. This type of app is typically one screen - and gives you the basics with minimal interaction
view
myImage@2x.png
utility
[[<class name> alloc] init];
10. Tests to see whether two values are equal
==
if(<boolean condition>){/* stuff to do*/} else{ /*stuff to do*/}
57 x 57
nested message send
11. Boolean for 'false' in Objective-C
||
Human Interface Guide
NO
NSObject
12. Syntax for block-comment
Group
/*blah blah blah */
below
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
13. A fully transparent image has an _____ property value of _____
alpha ... 0
rand( )%21
UIViewController
scene
14. A virtual 'box' for organizing related projects
NSArray
scene
workspace
proxy
15. To use a new class you need to _____ it
attributes
:
instantiate
rand( )%21
16. In the MVC design pattern for iOS apps - this aspect provides the underlying data and methods that offer information to the rest of the application
Outlets ... pointer
accessors
UIImageView
model
17. Dimensions of iPhone (in points)
Scheme
320 x 480
eXtensible Markup Language
bool
18. Class that another class inherits from
@end
Instruments
Snapshot feature
superclass
19. Beginning with iOS4 - applications no longer terminate when the user presses the...
Cocoa Touch
+
IBOutlet
Home button
20. Apps that provide easy access to a single screen of information with a backside view for modifying preferences
NSObject
//blah blah blah
Utility apps
id
21. Scaling factor to make an image suitable for retina display
xcodeproj
NSString *phrase = @'Hello World';
while(<boolean expression>){/*stuff to do here*/}
2
22. This Xcode utility allows you to check CPU usage - memory allocation and network/file access (among other things)
iOS Simulator
instantiate
The Console area of the Debug area
Instruments
23. Class that creates an array capable of being changed after it is create
Xcode
Command+S
NSMutableArray
variable
24. Other name for an *.xib file
nibfile
hash
Xcode
hasShrunk==YES && hasMoved == YES
25. What's the difference between Cocoa and Cocoa Touch?
label
Cocoa is the development framework used for most native Mac OS X applications; Cocoa Touch is customized for a touch interface
workspace
@synthesize
26. Extension for implementation file
instantiation
m
alpha ... 0
nonatomic
27. An app has boolean variables 'hasShrunk' and 'hasMoved'. Write a boolean condition that checks if each are true
disclosure triangle
NSArray
hasShrunk==YES && hasMoved == YES
-
28. Used to set up an outgoing connection from the implementation code to the view
Single View Application
IBOutlet
NeXSTEP
#import <UIKIT/UIKIT.h>
29. This type of app is mostly custom controllers and graphics
immersive
disclosure
nonatomic
Utility apps
30. Recommended image type for button graphics
instance variable
png
NSString *userName;
segmented control
31. Size of iPhone retina icon image in pixels
114 x 114
modal
retain - release - dealloc - autorelease
accessors
32. What property needs to be set before a scroll view (UIScrollView) will scroll?
IBOutlet
To provide a convenient way of setting the button's title in the code
do not
contentSize
33. A common button type that indicates additional information is available
Integrated Development Environment
bool
instantiate
detail disclosure
34. Implements a logical OR condition
view controller
performance
disclosure triangle
||
35. Symbol often denoting a 'pointer'
*
Option-click a symbol
image view
strong
36. Class of collection data type which stores information as object/key pairs
main()
&&
[<object variable> <method name>];
NSDictionary
37. Boolean for 'true' in Objective-C
NSLog
YES
#import 'myFile.h'
[<object variable> <method name>];
38. Formatting placeholder for strings
iOS Simulator
UILabel *myLabel = [[UILabel alloc] initWithString:@'GO!'];
bgImages = [[NSArray alloc] initWithObjects: wp1 - wp2 - wp3 - wp4 - wp5 - nil];
%@
39. For a text field - what does the 'Clear Button' look like?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
40. A unique combination of view controller and view
scene
accessible apps
@
UIImage *wp1 = [UIImage imageNamed:@'wallPaper_01.png'];
41. To unroll or roll up a hierarchy of files - objects or classes - you click the ______ _______ at the root element
disclosure triangle
320 x 480
The Console area of the Debug area
ommand+Return
42. Purpose of 'Secure' attribute for text fields
NSObject
Treats the field as a password - hiding each character as it is typed
eXtensible Markup Language
x--;
43. A view has a 'Shrink' button whose label needs to change once it is clicked to 'Grow'. Write a 'message' type command to change it's label to 'Grow'
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
44. Framework used to write iPhone apps
control-dragging
==
NSObject
Cocoa Touch
45. You have an instance variable called 'myLabel' that is a member of UILabel. In an app - you set it's text property to 'Howdy' with the correctly-written command: myLabel.text = @'Howdy'; Re-write this command using [ ] message-sending syntax
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
46. Defines the functional building blocks (classes) that make iOS devices perform certain actions
&&
instantiate
Cocoa Touch
<type> <variableName>;
47. 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
48. Used to test an app without needing an actual physical device
iOS Simulator
UIWindow
Commmand-R
==
49. The name of the panel to the left of the Interface Builder Editor panel
Classes
User Interface
Document Outline Area or Outline View
UIImageView
50. Files used to create a class
alpha ... 1
static
Disables the Return key on the keyboard unless the user has entered at least a single character of input into the field
interface and implementation files