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. Alternative selection mechanism when many conditions exist
%
switch
Home button
interface and implementation files
2. IDE for iPhone Development
performance
Xcode
self
YES
3. 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?
utility
myImage@2x.png
model
nil
4. 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.
pound
UIWindow
-
viewDidLoad
5. 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
6. Calling a method is the same as...
nonatomic
strong
sending an object a message
Command+0
7. The library that contains the objects you can add to a view or XIB file
Send the 'resignFirstResponder' message to the object that currently controls the keyboard (such as a text field)
Object library
hasShrunk==YES && hasMoved == YES
m
8. Implements a logical AND condition
&&
y *= 5;
instance variable
Option+Command+ 0
9. 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.
Command+R
Hold down the Option key and point to the other label. The distance will be shown
bgImages = [[NSArray alloc] initWithObjects: wp1 - wp2 - wp3 - wp4 - wp5 - nil];
IBAction
10. Syntax for sending an object a message with no parameters
The Console area of the Debug area
IBAction)moveMe:(id)sender;
conform
[<object variable> <method name>];
11. Define a collection of methods to perform a task
protocols
UILabel *myLabel = [[UILabel alloc] init];
@synthesize directive
<>
12. Used to display image file resources and show simple animations
Objective-C
@
image view
workspace
13. What property needs to be set before a scroll view (UIScrollView) will scroll?
contentSize
!=
performance
Treats the field as a password - hiding each character as it is typed
14. Indicates a lack of any value at all
Double-click
label
||
nil
15. Extension for MainStoryboard
NSDate
Attributes Inspector
storyboard
IBOutlet
16. Shortcut for writing: x = x - 1;
Option-click a symbol
x--;
scene
viewDidLoad
17. API
@end
1024 x 768
Application Programming Interface
UIImageView
18. Class that another class inherits from
Command plus the navigator's position in the selector. For example - the project navigator shortcut is Command-1
%
superclass
if(<boolean condition>){/* stuff to do*/} else{ /*stuff to do*/}
19. Denotes a class method
+
protocols
detail disclosure
id
20. Always used to end the list of objects when initializing an array
nil
Object library
Home button
disclosure
21. Another name for format specification
NSDate
stub
protocols
token
22. The files that contain all the scenes you will use in a project.
segmented control
Single View Application
storyboards
Jump Bar
23. Class that allows URL management
contentSize
NSURL
@2x
#import 'myFile.h'
24. Syntax for block-comment
UILabel *myLabel = [[UILabel alloc] initWithString:@'GO!'];
com.basicversity
Object Library
/*blah blah blah */
25. Templates fill in a bunch of ______-_______ code that serves as a framework in which to write future implementations
@synthesize directive
boiler-plate
Command+0
%@
26. Another name for a 'button bar'
@end
UILabel *myLabel = [[UILabel alloc] initWithString:@'GO!'];
Hold down the Option key and point to the other label. The distance will be shown
segmented control
27. The Inspector you will need if you want to connect a custom class to an object in Interface Builder
png
Identity Inspector
storyboard
bool
28. Fixed iteration repetition control structure syntax
for(<initialization>;<test condition>;<update instruction>){/*do this over and over*/}
Command + Tab
storyboards
conform
29. An _______ is used to 'advertise' a method in your code that should be called when a certain event takes place
IBAction
hash
User Interface
Model-View-Controller
30. OOP
+
xcodeproj
Object-oriented programming
C
31. The HIG requires some kind of _____ element in a cell if there is more information available
NSString *phrase = @'Hello World';
prototyping
disclosure
CGAffineTransform
32. Declare and initialize a string that says: 'Hello World' whose identifier if 'phrase' . Use the shortest command possible.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
33. Resembles a slot machine display
UIPicker
UILabel *myLabel = [[UILabel alloc] init];
512MB
114 x 114
34. MVC
Isolate the functional components of an app
segue
Model-View-Controller
rand( )%21
35. Which Apple project template creates a simple view/view controller application
114 x 114
Single View Application
'Interface Builder'
YES
36. A class that implements a protocol is said to ____ to that protocol
IBAction)moveMe:(id)sender;
conform
%
model
37. 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.
IBAction
rand( )%21
modal
Model-View-Controller
38. iOS functional building blocks
NSMutableString
modal views
<type> <variableName>;
Classes
39. 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?
Command+0
Hold down the Option key and point to the other label. The distance will be shown
rand( )%21
prototyping
40. A unique combination of view controller and view
Command + Tab
pound
Isolate the functional components of an app
scene
41. A view that is displayed on top of an original view when user interactions are required
Identity Inspector
modal views
IBAction
class
42. Any 'directive' statement begins with this symbol
@
Send the 'resignFirstResponder' message to the object that currently controls the keyboard (such as a text field)
NSMutableString
Touch Up Inside
43. Data type for numbers with 'tame' numbers of decimal points
float
bool
NSLog(@'%s' - __FUNCTION__);
boiler-plate
44. Attribute that informs Xcode not to worry about different parts of the application using a property at the same time
320 x 480
count++;
NSString
nonatomic
45. A tool in Xcode to help fix broken code
UIApplication
Command+S
debugger
mutators
46. Key sequence to open the Project Navigator (left panel)
Touch Up Inside
512MB
Isolate the functional components of an app
Command+1
47. setters
First Responder
1024 x 768
Treats the field as a password - hiding each character as it is typed
mutators
48. The object currently in control and interacting with the user
@
First Responder
<>
control-dragging
49. Write a statement to declare and initialize a label object called 'myLabel'
Objective-C
while(<boolean expression>){/*stuff to do here*/}
UILabel *myLabel = [[UILabel alloc] init];
static
50. Boolean for 'false' in Objective-C
320 x 480
[shrinkButton setTitle:@'Grow' forState: UIControlStateNormal];
NO
protocols