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. Way to refer to an object within its own methods
Command plus the navigator's position in the selector. For example - the project navigator shortcut is Command-1
nil
png
self
2. Implements a logical OR condition
<>
||
web view
IBAction
3. 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.
controller
IBOutlet
Object Library
Single View Application
4. Key sequence to open the Standard Editor
NSDate
ommand+Return
Cocoa Touch
Send the 'resignFirstResponder' message to the object that currently controls the keyboard (such as a text field)
5. ______ and ______ define the connections between scenes.
Seques .... relationships
static
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
mutators
6. OOP
Object-oriented programming
'Interface Builder'
label.text=@'Hello World!';
@end
7. Apps that provide easy access to a single screen of information with a backside view for modifying preferences
NSString *userName;
do{/*stuff to do here*/}while(<boolean expression>);
NSDate
Utility apps
8. The Inspector you would use to tweak the way interface objects appear
Attributes Inspector
stub
graduationParty ... addAttendee:withDish
+
9. What type of object does a web view expect as a parameter when loading a remote URL?
storyboards
sending an object a message
Isolate the functional components of an app
NSURLRequest
10. Class used for creating image views
-
57 x 57
UIImageView
label.text=@'Hello World!';
11. How do you show a storyboard file as source code?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
12. Formatting placeholder for strings
superclass
YES
%@
h
13. What are the guidelines for the class prefix for a project?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
14. Scaling factor to make an image suitable for retina display
implicitly declare a matching instance variable
IBOutlet
nil
2
15. An app has boolean variables 'hasShrunk' and 'hasMoved'. Write a boolean condition that checks if each are true
Xcode
hasShrunk==YES && hasMoved == YES
NSString
UILabel *myLabel = [[UILabel alloc] initWithString:@'GO!'];
16. Key sequence to open the Attributes Inspector
Touch Up Inside
alpha
Option+Command+4
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.
17. 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).
myImage@2x.png
wrap
Cocoa Touch
Command plus the navigator's position in the selector. For example - the project navigator shortcut is Command-1
18. 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?
Home button
com.basicversity
UIApplication
scene
19. The first method called when a user taps an application icon
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)
Identity Inspector
main()
20. This type of app is typically one screen - and gives you the basics with minimal interaction
%@
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.
Human Interface Guide
utility
21. Class that another class inherits from
@2x
mutators
superclass
!
22. Process of creating an active object from a class
parameter
protocols
C
instantiation
23. Multiline text entry block
label.text=@'Hello World!';
UITextView
do not
/*blah blah blah */
24. Piece of information provided to a method when it is messaged
<>
parameter
token
below
25. What's the difference between Cocoa and Cocoa Touch?
Snapshot feature
Cocoa is the development framework used for most native Mac OS X applications; Cocoa Touch is customized for a touch interface
UITextField
Attributes Inspector
26. The goal of the MVC design pattern
Human Interface Guide
disclosure
Group
Isolate the functional components of an app
27. To use a new class you need to _____ it
do not
'Interface Builder'
//blah blah blah
instantiate
28. Which Apple project template creates a simple view/view controller application
retain
for(<initialization>;<test condition>;<update instruction>){/*do this over and over*/}
Seques .... relationships
Single View Application
29. The Round Rect Button is found in this library
[[<class name> alloc] init];
'Software Development Kit'
implicitly declare a matching instance variable
Object Library
30. The library that contains the objects you can add to a view or XIB file
Object library
UIImageView
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
[[<class name> alloc] init];
31. Class used for image manipulations such as scaling - rotation and translation. Its data structure represents a matrix used for affine transformations.
2
IBAction)moveMe:(id)sender;
CGAffineTransform
UIPicker
32. Used to set up an outgoing connection from the implementation code to the view
iOS Simulator
conform
Attributes Inspector
IBOutlet
33. A ______ is where you edit a view and assign a controller to it.
Identity Inspector
NSURL
Option+Command+4
scene
34. setters
alpha ... 1
==
mutators
UIApplication
35. What are data detectors?
Snapshot feature
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
productivity
disclosure
36. What computer language is the storyboard written in?
XML
segue
casting
nested message send
37. Term used to describe each screen of an iPhone app
x--;
view
[<object variable> <method name>: p1];
accessible apps
38. Apple's classes often provide a special initialization method called a _____ method
convenience
1024 x 768
Document Outline Area or Outline View
pipe
39. Used to test an app without needing an actual physical device
IBAction
hasShrunk==YES && hasMoved == YES
iOS Simulator
Disables the Return key on the keyboard unless the user has entered at least a single character of input into the field
40. What event do you use to detect a button tap?
wrap
detail disclosure
!=
Touch Up Inside
41. Document Apple uses to evaluate apps for the App Store
Disables the Return key on the keyboard unless the user has entered at least a single character of input into the field
Human Interface Guide
image view
implicitly declare a matching instance variable
42. A view that is displayed on top of an original view when user interactions are required
Control-click on the View Controller's icon to bring up a Connections dialog
utility
The Console area of the Debug area
modal views
43. Write a statement to declare and initialize a label object called 'myLabel'
Object library
Touch Up Inside
Isolate the functional components of an app
UILabel *myLabel = [[UILabel alloc] init];
44. Defines the functional building blocks (classes) that make iOS devices perform certain actions
Determine how controls resize/reposition themselves when a device changes orientation
114 x 114
Cocoa Touch
performance
45. To zoom between an overview of the entire storyboard and the actual size view - ______ the storyboard background.
Determine how controls resize/reposition themselves when a device changes orientation
Model-View-Controller
retain - release - dealloc - autorelease
Double-click
46. Delimiter for a list of protocols
<>
m
@
modal views
47. Calling a method is the same as...
Integrated Development Environment
NSString *phrase = @'Hello World';
114 x 114
sending an object a message
48. In the US - the '#' symbol is often called the ____ symbol
Option+Command+ 0
UILabel *myLabel = [[UILabel alloc] init];
instantiation
pound
49. Consider: int x = 6;int y = 7;float quotient = (float) x/y;The statement that creates the variable 'quotient' is an example of ...
Commmand-R
casting
disclosure
ommand+Return
50. 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?
strong
Treats the field as a password - hiding each character as it is typed
pound
Hold down the Option key and point to the other label. The distance will be shown