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. 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.
Instruments
320 x 480
bgImages = [[NSArray alloc] initWithObjects: wp1 - wp2 - wp3 - wp4 - wp5 - nil];
iOS Simulator
2. Used to set up an outgoing connection from the implementation code to the view
for(<initialization>;<test condition>;<update instruction>){/*do this over and over*/}
do{/*stuff to do here*/}while(<boolean expression>);
IBOutlet
strong
3. 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.
inspector and library
id
@synthesize directive
modal
4. Apple's classes often provide a special initialization method called a _____ method
Identity Inspector
nibfile
convenience
debugger
5. The 'First Responder' in a scene is not an object it is considered a ________
if(<boolean condition>){/* stuff to do*/} else{ /*stuff to do*/}
disclosure triangle
proxy
'Software Development Kit'
6. Alternative selection mechanism when many conditions exist
switch
NSString *phrase = @'Hello World';
First Responder
512MB
7. Combining two messages into a single line of code
Model-View-Controller
nested message send
2
[<object variable> <method name>];
8. Class that creates an array capable of being changed after it is create
NSMutableArray
[<object variable> <method name>];
protocols
IBOutlet
9. Key sequence to open the Project Navigator (left panel)
parameter
Command+1
Control-click on the View Controller's icon to bring up a Connections dialog
Integrated Development Environment
10. 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?
casting
NSString *phrase = @'Hello World';
Command plus the navigator's position in the selector. For example - the project navigator shortcut is Command-1
myImage@2x.png
11. Beginning with iOS4 - applications no longer terminate when the user presses the...
below
UIViewController
productivity
Home button
12. 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
13. 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
14. You are creating an app for a company whose URL is http://www.basicversity.com . What should be the company identifier for the app when you begin the project?
accessors
com.basicversity
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-oriented programming
15. Connections between Objects in the Interface Builder and the header file are formed by _____-_______ from the object to the proper place in the header file
utility
-
nil
control-dragging
16. Key sequence on a Mac to select between open application
@synthesize directive
nonatomic
Command + Tab
main()
17. Another name for format specification
x--;
superclass
token
retain - release - dealloc - autorelease
18. This type of app is mostly custom controllers and graphics
ommand+Return
double
immersive
1024 x 768
19. A fully opaque image has an _______ property value of ______
alpha ... 1
@synthesize
NSDictionary
double
20. Formatting placeholder for strings
%@
void
above
class
21. 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.
To provide a convenient way of setting the button's title in the code
parameter
viewDidLoad
interface and implementation files
22. Formatting placeholder for integers
self
nonatomic
%d
*
23. Templates fill in a bunch of ______-_______ code that serves as a framework in which to write future implementations
Utility apps
@2x
NSObject
boiler-plate
24. API
@synthesize directive
Application Programming Interface
Cocoa Touch
<>
25. ______ are variables that can store a ____ to an object.
if(<boolean condition>){/* stuff to do*/} else{ /*stuff to do*/}
Outlets ... pointer
==
immersive
26. Single line text field
UITextField
utility
mutators
graduationParty ... addAttendee:withDish
27. Way to refer to an object within its own methods
while(<boolean expression>){/*stuff to do here*/}
self
@synthesize directive
Cocoa Touch
28. Modulus (remainder) operator
%
Look at the three icons at the upper left portion of the Debug console. The far left one - 'Show only the Variables View' will not show the NSLog-ed information. Click the center icon ('Show the Variables View and the Console') or the right icon ('Sh
<type> <variableName>;
NO
29. Master class in iOS
Integrated Development Environment
NSObject
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
x--;
30. Postcondition repetition structure syntax
do{/*stuff to do here*/}while(<boolean expression>);
UIApplication
for(<initialization>;<test condition>;<update instruction>){/*do this over and over*/}
Attributes Inspector
31. To use a new class you need to _____ it
UIViewController
instantiate
'Software Development Kit'
Touch Up Inside
32. 4 Top down technology layers making up iOS
Cocoa Touch - Media - Core Services - Core OS
detail disclosure
convenience
320 x 480
33. Name of the '|' symbol
iOS Simulator
double
pipe
Isolate the functional components of an app
34. If a method name includes a colon (:) this indicates a required _________
parameter
Double-click
x--;
Model-View-Controller
35. File name suffix indicating an image is suitable for retina display
UILabel *myLabel = [[UILabel alloc] initWithString:@'GO!'];
contentSize
@2x
h
36. Size of iPhone retina icon image in pixels
114 x 114
switch
@2x
property list
37. The Inspector you will need if you want to connect a custom class to an object in Interface Builder
Cocoa Touch - Media - Core Services - Core OS
Command+1
Identity Inspector
Command plus the navigator's position in the selector. For example - the project navigator shortcut is Command-1
38. Syntax for block-comment
/*blah blah blah */
Command+0
float
Human Interface Guide
39. ______ enable applications to store multiple pieces of information in a single object
%
Collections
Option+Command+ 0
property list
40. Expression to create a random number in [0 -20];
Jump Bar
rand( )%21
*
Cocoa Touch
41. NS stands for...
property list
||
NeXSTEP
First Responder
42. Process of creating an active object from a class
//blah blah blah
IBAction
instantiation
Control-click on the View Controller's icon to bring up a Connections dialog
43. 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.
/*blah blah blah */
<type> <variableName>;
controller
Touch Up Inside
44. Class used for image manipulations such as scaling - rotation and translation. Its data structure represents a matrix used for affine transformations.
Attributes Inspector
CGAffineTransform
Collections
instantiate
45. 'plist' stands for...
[myLabel setText:@'Howdy'];
stub
below
property list
46. @property directives should be placed ____ (above or below) any IBActions in the header file
eXtensible Markup Language
Command+0
Object Library
above
47. Formatting placeholder for a floating point value with one digit on the left of the decimal and two digits on the right
:
subclass
convenience
%1.2f
48. Resembles a slot machine display
workspace
UIPicker
@2x
nibfile
49. Class that builds upon another class
subclass
y *= 5;
Hold down the Option key and point to the other label. The distance will be shown
superclass
50. Synonym for interface file
header
UIImage *wp1 = [UIImage imageNamed:@'wallPaper_01.png'];
nonatomic
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