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. Term used to describe each screen of an iPhone app
view
Snapshot feature
UIImageView
disclosure
2. To use a new class you need to _____ it
320 x 480
instantiate
rand( )%21
NSString *userName;
3. Syntax to include UIKIT in a class
UIWindow
#import <UIKIT/UIKIT.h>
prototyping
To provide a convenient way of setting the button's title in the code
4. The Inspector you will need if you want to connect a custom class to an object in Interface Builder
immersive
Identity Inspector
convenience
Object Library
5. Boolean for 'true' in Objective-C
productivity
Command plus the navigator's position in the selector. For example - the project navigator shortcut is Command-1
YES
accessible apps
6. Syntax for sending an object a message with no parameters
XML
alpha
Program received signal: EXC_BAD_ACCESS
[<object variable> <method name>];
7. Defines the functional building blocks (classes) that make iOS devices perform certain actions
Cocoa Touch
switch
workspace
Object-oriented programming
8. ______ and ______ define the connections between scenes.
!
xcodeproj
320 x 480
Seques .... relationships
9. Class used to work with dates as objects
NSDate
boiler-plate
The Console area of the Debug area
NSDictionary
10. Used to display image file resources and show simple animations
image view
Collections
User Interface
self
11. In the US - the '#' symbol is often called the ____ symbol
NSURL
label.text=@'Hello World!';
UIApplication
pound
12. The library that contains the objects you can add to a view or XIB file
implicitly declare a matching instance variable
Object library
Control-click on the View Controller's icon to bring up a Connections dialog
NSURL
13. The files that contain all the scenes you will use in a project.
mutators
storyboards
Command+0
*
14. Collection of interface elements and data storage elements etc you can access from your applications
id
Cocoa Touch
[shrinkButton setTitle:@'Grow' forState: UIControlStateNormal];
C
15. Creates 'getters' and 'setters'
contentSize
productivity
@synthesize directive
com.basicversity
16. 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
17. Syntax for declaring a variable
[myLabel setText:@'Howdy'];
<type> <variableName>;
Command+1
/*blah blah blah */
18. Syntax for declaring a string called 'userName'
Human Interface Guide
+
NSString *userName;
UILabel *myLabel = [[UILabel alloc] initWithString:@'GO!'];
19. Modulus (remainder) operator
subclass
%
IBAction
accessors
20. Purpose of the 'Auto-enable Return Key' attribute for text fields
Hold down the Option key and point to the other label. The distance will be shown
Disables the Return key on the keyboard unless the user has entered at least a single character of input into the field
Send the 'resignFirstResponder' message to the object that currently controls the keyboard (such as a text field)
Gray circle with a white 'X' in it - positioned to the right of the text field box
21. Postcondition repetition structure syntax
do{/*stuff to do here*/}while(<boolean expression>);
implementation file
png
storyboard
22. This keyword in the property directive is related to memory management and refers to the idea that we want to maintain control of memory issues
Touch Up Inside
retain
void
count++;
23. Key sequence to open the Attributes Inspector
User Interface
Option+Command+4
token
switch
24. Templates fill in a bunch of ______-_______ code that serves as a framework in which to write future implementations
Single View Application
superclass
boiler-plate
do not
25. 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
26. Two-way selection logic block
//blah blah blah
if(<boolean condition>){/* stuff to do*/} else{ /*stuff to do*/}
scene
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.
27. A common button type that indicates additional information is available
modal
alpha
detail disclosure
Hold down the Option key and point to the other label. The distance will be shown
28. What type of object does a web view expect as a parameter when loading a remote URL?
Hold down the Option key and point to the other label. The distance will be shown
NSURLRequest
Utility apps
control-dragging
29. Class of strings that can be changed
NSMutableString
[[<class name> alloc] init];
nested message send
The Console area of the Debug area
30. This keyword in the property directive is related to the concept of mutability and basically asks Apple to handle the details. This is the more 'relaxed' - less 'powerful' setting of two possibilities
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
Cocoa Touch
nonatomic
Model-View-Controller
31. Companion to the @property directive
1024 x 768
[myLabel setText:@'Howdy'];
@synthesize
Option+Command+4
32. IDE for iPhone Development
import
Xcode
UIImage *wp1 = [UIImage imageNamed:@'wallPaper_01.png'];
image view
33. MVC
Single View Application
Model-View-Controller
NSURLRequest
do not
34. Attribute that informs the system that the object referred to needs to be kept around and not discarded from memory
Actions
UIImageView
iOS Simulator
strong
35. Delimiter for a list of protocols
main()
ommand+Return
Program received signal: EXC_BAD_ACCESS
<>
36. A view that is displayed on top of an original view when user interactions are required
NSMutableString
modal views
instantiation
Option+Command+ 0
37. 'plist' stands for...
!
property list
nested message send
label
38. 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.
prototyping
IBAction)moveMe:(id)sender;
NSMutableString
modal
39. Closes an interface file
disclosure
Send the 'resignFirstResponder' message to the object that currently controls the keyboard (such as a text field)
@end
implicitly declare a matching instance variable
40. iOS functional building blocks
instantiate
Determine how controls resize/reposition themselves when a device changes orientation
id
Classes
41. An app has boolean variables 'hasShrunk' and 'hasMoved'. Write a boolean condition that checks if each are true
debugger
stub
hasShrunk==YES && hasMoved == YES
boiler-plate
42. Synonym for interface file
NSMutableString
%d
xcodeproj
header
43. Storage location for a piece of information
Seques .... relationships
NSLog
variable
!=
44. What event do you use to detect a button tap?
implementation file
m
Touch Up Inside
@
45. The name of the panel to the left of the Interface Builder Editor panel
@2x
User Interface
Document Outline Area or Outline View
Cocoa Touch
46. Used to test an app without needing an actual physical device
Seques .... relationships
modal
Object-oriented programming
iOS Simulator
47. 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.
Outlets ... pointer
&&
Double-click
bgImages = [[NSArray alloc] initWithObjects: wp1 - wp2 - wp3 - wp4 - wp5 - nil];
48. Implements a logical AND condition
if(<boolean condition>){/* stuff to do*/} else{ /*stuff to do*/}
Option+Command+4
&&
Command+0
49. 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
png
instantiation
bgImages = [[NSArray alloc] initWithObjects: wp1 - wp2 - wp3 - wp4 - wp5 - nil];
50. Formatting placeholder for a floating point value with one digit on the left of the decimal and two digits on the right
modal views
viewDidLoad
wrap
%1.2f