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. Syntax for declaring a string called 'userName'
%
NSString *userName;
Treats the field as a password - hiding each character as it is typed
Object library
2. An array of background images called 'bgImages' has been declared as an instance variable in your header file. You have created a set of 5 background images stored in UIImage variables wp1 through wp5. Write a line of code that initializes the array.
Control-click on the View Controller's icon to bring up a Connections dialog
@2x
bgImages = [[NSArray alloc] initWithObjects: wp1 - wp2 - wp3 - wp4 - wp5 - nil];
NSObject
3. Negation symbol
&&
double
interface and implementation files
!
4. Single line text field
Snapshot feature
affine
UITextField
Option+Command+ 0
5. A transition between scenes - frequently with a visual transition effect applied
segue
Integrated Development Environment
UIViewController
@2x
6. Declaring a method in an interface file - before it is actually implemented is called _______ the method
Nib (but a few call it 'zib' but that's not preferred)
prototyping
C
+
7. Used to receive an event in code and trigger something
static
IBAction
[<object variable> <method name>];
Actions
8. An app has boolean variables 'hasShrunk' and 'hasMoved'. Write a boolean condition that checks if each are true
+
hasShrunk==YES && hasMoved == YES
CGAffineTransform
57 x 57
9. Typical header syntax for a button that will be applying the 'moveMe' action in an app
%@
Command+0
Program received signal: EXC_BAD_ACCESS
IBAction)moveMe:(id)sender;
10. A virtual 'box' for organizing related projects
int
workspace
Command plus the navigator's position in the selector. For example - the project navigator shortcut is Command-1
superclass
11. The Inspector you will need if you want to connect a custom class to an object in Interface Builder
inspector and library
NSDate
Identity Inspector
UIApplication
12. The Inspector you would access to gain access to various accessibility attributes
Identity Inspector
affine
float
+
13. Write a statement to declare and initialize a label object called 'myLabel' to 'GO!'
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
14. Files used to create a class
UITextField
interface and implementation files
2
Attributes Inspector
15. Term used to describe each screen of an iPhone app
view
Instruments
Scheme
y *= 5;
16. Key sequence to run an app in Xcode
NSString *phrase = @'Hello World';
Command+R
viewDidLoad
header
17. Key sequence on a Mac to select between open application
NO
Command + Tab
model
nonatomic
18. 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
19. Syntax for declaring a variable
Command plus the navigator's position in the selector. For example - the project navigator shortcut is Command-1
<type> <variableName>;
do not
immersive
20. Other name for an *.xib file
protocols
UIViewController
strong
nibfile
21. Extension for an iPhone/iPad app
57 x 57
Xcode
sending an object a message
xcodeproj
22. Defines what an object can do
contentSize
class
switch
NSString *userName;
23. The goal of the MVC design pattern
while(<boolean expression>){/*stuff to do here*/}
Home button
:
Isolate the functional components of an app
24. A tool in Xcode to help fix broken code
convenience
'Interface Builder'
Command+R
debugger
25. Formatting placeholder for strings
First Responder
%@
The Console area of the Debug area
%
26. Delimiter for a list of protocols
instance variable
<>
'Software Development Kit'
Home button
27. Formatting placeholder for integers
NSArray
%d
Classes
NSLog
28. This type of app is typically one screen - and gives you the basics with minimal interaction
com.basicversity
superclass
Hold down the Option key and point to the other label. The distance will be shown
utility
29. Apps that provide easy access to a single screen of information with a backside view for modifying preferences
CGAffineTransform
protocols
NSArray
Utility apps
30. Data type for true/false type variables
UITextView
NSString
view controller
bool
31. Defines the functional building blocks (classes) that make iOS devices perform certain actions
YES
Cocoa Touch
//blah blah blah
do not
32. Size of iPhone retina icon image in pixels
image view
parameter
Objective-C
114 x 114
33. This element should 'always' accompany a slider to indicate its purpose
UIWindow
iOS Simulator
label
Cocoa is the development framework used for most native Mac OS X applications; Cocoa Touch is customized for a touch interface
34. Modulus (remainder) operator
%
[<object variable> <method name>];
accessors
graduationParty ... addAttendee:withDish
35. 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
do not
id
Seques .... relationships
36. Symbol used for inheritance
UIPicker
storyboard
Program received signal: EXC_BAD_ACCESS
:
37. To zoom between an overview of the entire storyboard and the actual size view - ______ the storyboard background.
Double-click
1024 x 768
double
nil
38. Key sequence to save an Xcode file
Integrated Development Environment
Command+S
NSString *phrase = @'Hello World';
Touch Up Inside
39. Given: [graduationParty addAttendee: @'Aunt Jane' withDish: @'deviled eggs']; The 'receiver' is _______; the 'selector' is _________
To provide a convenient way of setting the button's title in the code
Jump Bar
First Responder
graduationParty ... addAttendee:withDish
40. iOS functional building blocks
NSDictionary
viewDidLoad
Command+0
Classes
41. A common button type that indicates additional information is available
while(<boolean expression>){/*stuff to do here*/}
detail disclosure
proxy
NSArray
42. Alternative selection mechanism when many conditions exist
1024 x 768
!
:
switch
43. What are data detectors?
rand( )%21
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
performance
NSURLRequest
44. Shortcut for writing: x = x - 1;
%d
x--;
Seques .... relationships
pound
45. 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
46. Key sequence to open the Project Navigator (left panel)
NSURL
web view
sending an object a message
Command+1
47. Name of the '|' symbol
Hold down the Option key and point to the other label. The distance will be shown
variable
pipe
Send the 'resignFirstResponder' message to the object that currently controls the keyboard (such as a text field)
48. Syntax to include the fictitious user-created file 'myFile.h'
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
49. What's the difference between Cocoa and Cocoa Touch?
UIApplication
Cocoa is the development framework used for most native Mac OS X applications; Cocoa Touch is customized for a touch interface
NSString
hasShrunk==YES && hasMoved == YES
50. Class used for image manipulations such as scaling - rotation and translation. Its data structure represents a matrix used for affine transformations.
Model-View-Controller
NSLog(@'%s' - __FUNCTION__);
CGAffineTransform
hasShrunk==YES && hasMoved == YES