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. Attribute that informs Xcode not to worry about different parts of the application using a property at the same time
nonatomic
Command plus the navigator's position in the selector. For example - the project navigator shortcut is Command-1
strong
'Software Development Kit'
2. Data type for highly precise numbers with huge numbers of decimal places
parameter
above
conform
double
3. The goal of the MVC design pattern
Isolate the functional components of an app
:
Option-click a symbol
convenience
4. Class used for creating image views
CGAffineTransform
immersive
NSMutableArray
UIImageView
5. @property directives should be placed ____ (above or below) any IBActions in the header file
workspace
nested message send
void
above
6. Prior to ARC - you used these terms alot
retain - release - dealloc - autorelease
controller
Jump Bar
affine
7. Key sequence to hide/show Utilities View
control-dragging
while(<boolean expression>){/*stuff to do here*/}
UITextField
Option+Command+ 0
8. Key sequence to save an Xcode file
NSURL
label
Command+S
Double-click
9. iOS functional building blocks
57 x 57
Option+Command+4
Classes
Group
10. In the MVC design pattern for iOS apps - this aspect provides the underlying data and methods that offer information to the rest of the application
nested message send
#import <UIKIT/UIKIT.h>
model
hash
11. The Inspector you would use to control your layout in Interface Builder
hasShrunk==YES && hasMoved == YES
UIApplication
Size Inspector
detail disclosure
12. Master class in iOS
retain
NeXSTEP
NSObject
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.
13. RAM for iPhone
Cocoa is the development framework used for most native Mac OS X applications; Cocoa Touch is customized for a touch interface
@
512MB
productivity
14. 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
15. Crash statement likely when an NSString is assigned a value with an incorrect format
Gray circle with a white 'X' in it - positioned to the right of the text field box
do not
Program received signal: EXC_BAD_ACCESS
[shrinkButton setTitle:@'Grow' forState: UIControlStateNormal];
16. 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
2
Identity Inspector
Touch Up Inside
retain
17. Declaring a method in an interface file - before it is actually implemented is called _______ the method
prototyping
Human Interface Guide
eXtensible Markup Language
Nib (but a few call it 'zib' but that's not preferred)
18. What event do you use to detect a button tap?
eXtensible Markup Language
Touch Up Inside
bgImages = [[NSArray alloc] initWithObjects: wp1 - wp2 - wp3 - wp4 - wp5 - nil];
C
19. Key sequence to open the Project Navigator (left panel)
Command+1
Command+R
Objective-C
above
20. 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
nonatomic
UIWindow
scene
ommand+Return
21. Shortcut for writing: count = count + 1;
immersive
subclass
workspace
count++;
22. This type of app typically involves hierarchical data
Option+Command+ 0
productivity
2
inspector and library
23. A skeleton (holding place) or framework of code that will be completed in the future; provided initially so code will compile (but it may not function)
C
stub
for(<initialization>;<test condition>;<update instruction>){/*do this over and over*/}
114 x 114
24. Expression to create a random number in [0 -20];
graduationParty ... addAttendee:withDish
2
instance variable
rand( )%21
25. Alternative selection mechanism when many conditions exist
+
strong
id
switch
26. A unique combination of view controller and view
disclosure triangle
UITextView
accessors
scene
27. 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?
Jump Bar
#import <UIKIT/UIKIT.h>
hasShrunk==YES && hasMoved == YES
myImage@2x.png
28. Return type indicating a method returns nothing
Program received signal: EXC_BAD_ACCESS
Hold down the Option key and point to the other label. The distance will be shown
void
IBAction)moveMe:(id)sender;
29. A file folder in the navigator panel is called a ________
alpha ... 0
UIImageView
interface and implementation files
Group
30. Class that another class inherits from
superclass
Disables the Return key on the keyboard unless the user has entered at least a single character of input into the field
NSLog(@'%s' - __FUNCTION__);
nested message send
31. Syntax for single-line comment
affine
Model-View-Controller
UIWindow
//blah blah blah
32. Given: #import <UIKit/UIKit.h> @interface WelcomeViewController : UIViewController @end The superclass for WelcomeViewController
utility
UIViewController
UITextView
above
33. Implements a logical OR condition
[myLabel setText:@'Howdy'];
xcodeproj
||
Disables the Return key on the keyboard unless the user has entered at least a single character of input into the field
34. 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
35. The bar across the top of the Editor area that shows you the item you are editing
Jump Bar
C
wrap
conform
36. iPhone and iPad ____ support .png transparency
Application Programming Interface
Identity Inspector
%d
do not
37. This Xcode utility allows you to check CPU usage - memory allocation and network/file access (among other things)
@2x
Instruments
h
+
38. What property needs to be set before a scroll view (UIScrollView) will scroll?
contentSize
affine
disclosure triangle
prototyping
39. 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
40. Which Apple project template creates a simple view/view controller application
Single View Application
@
Cocoa Touch
retain
41. Used to set up an outgoing connection from the implementation code to the view
accessible apps
IBOutlet
[<object variable> <method name>: p1];
Object-oriented programming
42. This file contains the code that makes everything 'work'
implementation file
Collections
interface and implementation files
Control-click on the View Controller's icon to bring up a Connections dialog
43. Denotes a class method
alpha
Object Library
+
Jump Bar
44. Syntax for sending an object a message with one parameter (p1)
==
[<object variable> <method name>: p1];
Double-click
Attributes Inspector
45. Templates fill in a bunch of ______-_______ code that serves as a framework in which to write future implementations
NSURLRequest
//blah blah blah
<type> <variableName>;
boiler-plate
46. You have created some 'breadcrumbs' using NSLog to trace the path of your code - and the debug area is open - yet you see no information in the panel. What's the problem and what is the solution?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
47. Used to define a list of all methods and properties a class uses
hasShrunk==YES && hasMoved == YES
interface file
implicitly declare a matching instance variable
affine
48. The ________ class provided a container for the management and display of views
ommand+Return
C
main()
UIWindow
49. Consider: int x = 6;int y = 7;float quotient = (float) x/y;The statement that creates the variable 'quotient' is an example of ...
float
id
Object library
casting
50. This type of app is mostly custom controllers and graphics
Cocoa is the development framework used for most native Mac OS X applications; Cocoa Touch is customized for a touch interface
Jump Bar
header
immersive