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. 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?
contentSize
UITextField
implicitly declare a matching instance variable
myImage@2x.png
2. Always used to end the list of objects when initializing an array
Attributes Inspector
NeXSTEP
+
nil
3. Key sequence to save an Xcode file
NSDate
Command+S
alpha
import
4. Tests to see whether two values are equal
==
UILabel *myLabel = [[UILabel alloc] init];
Nib (but a few call it 'zib' but that's not preferred)
Double-click
5. The bar across the top of the Editor area that shows you the item you are editing
utility
property list
Jump Bar
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
6. Memory aid for keyboard shortcuts in the Navigator panel
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
7. Postcondition repetition structure syntax
import
Model-View-Controller
do{/*stuff to do here*/}while(<boolean expression>);
image view
8. Purpose of 'Secure' attribute for text fields
strong
Seques .... relationships
Attributes Inspector
Treats the field as a password - hiding each character as it is typed
9. Apple's classes often provide a special initialization method called a _____ method
myImage@2x.png
disclosure triangle
convenience
accessors
10. Syntax for declaring a string called 'userName'
NSString *userName;
token
utility
&&
11. In the MVC design pattern for iOS apps - view consists of the various...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
12. Beginning with iOS4 - applications no longer terminate when the user presses the...
NeXSTEP
Home button
workspace
Command+R
13. The goal of the MVC design pattern
<type> <variableName>;
control-dragging
implicitly declare a matching instance variable
Isolate the functional components of an app
14. The Inspector you will need if you want to connect a custom class to an object in Interface Builder
main()
y *= 5;
Identity Inspector
Gray circle with a white 'X' in it - positioned to the right of the text field box
15. Expression to create a random number in [0 -20];
[[<class name> alloc] init];
rand( )%21
Treats the field as a password - hiding each character as it is typed
prototyping
16. Crash statement likely when an NSString is assigned a value with an incorrect format
detail disclosure
workspace
Program received signal: EXC_BAD_ACCESS
attributes
17. Used to display image file resources and show simple animations
Send the 'resignFirstResponder' message to the object that currently controls the keyboard (such as a text field)
Seques .... relationships
image view
NeXSTEP
18. Negation symbol
retain - release - dealloc - autorelease
Program received signal: EXC_BAD_ACCESS
!
:
19. Key sequence to hide/show Navigator View
Command+0
segue
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.
id
20. Master class in iOS
NSObject
strong
bool
token
21. IB
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
22. UI
do{/*stuff to do here*/}while(<boolean expression>);
User Interface
IBOutlet
interface and implementation files
23. The Utilities area has two sections: ______ and ______
UILabel *myLabel = [[UILabel alloc] init];
Cocoa is the development framework used for most native Mac OS X applications; Cocoa Touch is customized for a touch interface
inspector and library
Option+Command+4
24. Language used to write iOS apps
bool
workspace
Objective-C
import
25. OOP
@synthesize directive
UIWindow
Object-oriented programming
contentSize
26. Modulus (remainder) operator
%
XML
Size Inspector
com.basicversity
27. Character used to show an element as a literal string
@
Human Interface Guide
controller
IBOutlet
28. Data type for whole numbers
&&
for(<initialization>;<test condition>;<update instruction>){/*do this over and over*/}
int
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
29. A transition between scenes - frequently with a visual transition effect applied
Application Programming Interface
2
%@
segue
30. Data type for true/false type variables
Nib (but a few call it 'zib' but that's not preferred)
2
bool
NSDictionary
31. Creates 'getters' and 'setters'
count++;
@synthesize directive
Double-click
ommand+Return
32. @property directives should be placed ____ (above or below) any IBActions in the header file
viewDidLoad
ption+Command+Return
above
==
33. Given: [graduationParty addAttendee: @'Aunt Jane' withDish: @'deviled eggs']; The 'receiver' is _______; the 'selector' is _________
graduationParty ... addAttendee:withDish
segue
YES
Command+1
34. The Inspector you would use to control your layout in Interface Builder
Option+Command+4
Size Inspector
&&
contentSize
35. Correct the error: label.text = 'Hello World !';
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
36. Data type for highly precise numbers with huge numbers of decimal places
hash
double
for(<initialization>;<test condition>;<update instruction>){/*do this over and over*/}
int
37. API
2
NSObject
Application Programming Interface
UIPicker
38. What property needs to be set before a scroll view (UIScrollView) will scroll?
label.text=@'Hello World!';
contentSize
while(<boolean expression>){/*stuff to do here*/}
NSDate
39. Class used for image manipulations such as scaling - rotation and translation. Its data structure represents a matrix used for affine transformations.
+
114 x 114
parameter
CGAffineTransform
40. In a stepper control - when this attribute option is checked - the stepper's value is automatically set to the minimum value when the maximum value is exceeded (or vice versa).
wrap
[[<class name> alloc] init];
UITextView
+
41. Recommended image type for button graphics
IBAction)moveMe:(id)sender;
Object library
png
myImage@2x.png
42. Formatting placeholder for a floating point value with one digit on the left of the decimal and two digits on the right
%1.2f
detail disclosure
model
Option+Command+ 0
43. What's the difference between Cocoa and Cocoa Touch?
114 x 114
protocols
Cocoa Touch
Cocoa is the development framework used for most native Mac OS X applications; Cocoa Touch is customized for a touch interface
44. Given: #import <UIKit/UIKit.h> @interface WelcomeViewController : UIViewController @end The superclass for WelcomeViewController
onscreen 'widgets' a user can interact with
UIViewController
bgImages = [[NSArray alloc] initWithObjects: wp1 - wp2 - wp3 - wp4 - wp5 - nil];
'Software Development Kit'
45. iPhone and iPad ____ support .png transparency
do not
productivity
UILabel *myLabel = [[UILabel alloc] init];
NSURLRequest
46. 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?
nested message send
2
Hold down the Option key and point to the other label. The distance will be shown
UILabel *myLabel = [[UILabel alloc] initWithString:@'GO!'];
47. A view that is displayed on top of an original view when user interactions are required
modal views
attributes
productivity
retain
48. Term used to describe each screen of an iPhone app
//blah blah blah
disclosure
Command + Tab
view
49. 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.
pipe
view controller
id
viewDidLoad
50. Tests to see whether two values are not equal
@
||
!=
Object library