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
==
Xcode
instantiate
2. Used to define a list of all methods and properties a class uses
Determine how controls resize/reposition themselves when a device changes orientation
scene
NSString
interface file
3. Syntax for single-line comment
1024 x 768
//blah blah blah
pound
NSLog
4. The Inspector you will need if you want to connect a custom class to an object in Interface Builder
Option+Command+4
Objective-C
Identity Inspector
y *= 5;
5. Every iOS application implements a subclass of _________
xcodeproj
Option-click a symbol
Home button
UIApplication
6. 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?
@
double
modal
myImage@2x.png
7. Synonym for interface file
YES
header
[<object variable> <method name>: p1];
UIImage *wp1 = [UIImage imageNamed:@'wallPaper_01.png'];
8. Templates fill in a bunch of ______-_______ code that serves as a framework in which to write future implementations
sending an object a message
x--;
boiler-plate
!=
9. Used to receive an event in code and trigger something
count++;
UITextField
Integrated Development Environment
IBAction
10. Creates 'getters' and 'setters'
segmented control
view controller
@synthesize
@synthesize directive
11. What's the difference between Cocoa and Cocoa Touch?
m
Cocoa is the development framework used for most native Mac OS X applications; Cocoa Touch is customized for a touch interface
/*blah blah blah */
NSString *phrase = @'Hello World';
12. Given: [graduationParty addAttendee: @'Aunt Jane' withDish: @'deviled eggs']; The 'receiver' is _______; the 'selector' is _________
import
Integrated Development Environment
graduationParty ... addAttendee:withDish
Size Inspector
13. _____ are methods that we can connect to events.
NSString *phrase = @'Hello World';
320 x 480
Collections
Actions
14. Objective-C is an extension (super set) of...
scene
Scheme
C
implementation file
15. Denotes an instance method
above
accessors
#import 'myFile.h'
-
16. Write a line of code creating a pointer to a wall paper image called 'wp1' that refers to a resource in an app with the file name 'wallPaper_01.png'
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
17. What property needs to be set before a scroll view (UIScrollView) will scroll?
Hold down the Option key and point to the other label. The distance will be shown
contentSize
:
Identity Inspector
18. Tests to see whether two values are equal
UIImage *wp1 = [UIImage imageNamed:@'wallPaper_01.png'];
image view
==
UIImageView
19. File name suffix indicating an image is suitable for retina display
variable
Cocoa Touch - Media - Core Services - Core OS
@2x
512MB
20. Crash statement likely when an NSString is assigned a value with an incorrect format
Cocoa Touch
above
/*blah blah blah */
Program received signal: EXC_BAD_ACCESS
21. What event do you use to detect a button tap?
parameter
bgImages = [[NSArray alloc] initWithObjects: wp1 - wp2 - wp3 - wp4 - wp5 - nil];
@
Touch Up Inside
22. Key sequence to hide/show Utilities View
IBOutlet
Option+Command+ 0
#import 'myFile.h'
Model-View-Controller
23. XML
x--;
accessors
eXtensible Markup Language
controller
24. In the UK - the '#' symbol is often called the ____ symbol
web view
IBOutlet
hash
[myLabel setText:@'Howdy'];
25. 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.
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.
controller
mutators
Cocoa is the development framework used for most native Mac OS X applications; Cocoa Touch is customized for a touch interface
26. The library that contains the objects you can add to a view or XIB file
instantiation
%@
Object library
self
27. Boolean for 'false' in Objective-C
Xcode
NO
graduationParty ... addAttendee:withDish
model
28. Syntax for declaring a string called 'userName'
nonatomic
NSString *userName;
Model-View-Controller
while(<boolean expression>){/*stuff to do here*/}
29. 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
30. Used to set up an outgoing connection from the implementation code to the view
IBOutlet
self
Cocoa Touch - Media - Core Services - Core OS
Actions
31. The goal of the MVC design pattern
switch
Isolate the functional components of an app
implementation file
@synthesize directive
32. Code fragment for echo printing the name of a function as it loads (for tracing the sequence of code in a project...leaving breadcrumbs)
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
33. 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?
Cocoa Touch
Hold down the Option key and point to the other label. The distance will be shown
#import 'myFile.h'
disclosure triangle
34. ______ enable applications to store multiple pieces of information in a single object
Home button
static
interface and implementation files
Collections
35. IDE for iPhone Development
The Console area of the Debug area
protocols
Xcode
disclosure
36. Implements a logical OR condition
ommand+Return
||
for(<initialization>;<test condition>;<update instruction>){/*do this over and over*/}
static
37. Other name for an *.xib file
nibfile
Xcode
NSString *userName;
iOS Simulator
38. Multiline text entry block
nonatomic
Command+1
UITextView
web view
39. Property affecting an element's transparency
Human Interface Guide
Isolate the functional components of an app
alpha
boiler-plate
40. Word used to indicate that a user can't interact with a given element
conform
static
affine
Object-oriented programming
41. 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.
Treats the field as a password - hiding each character as it is typed
label
if(<boolean condition>){/* stuff to do*/} else{ /*stuff to do*/}
viewDidLoad
42. Denotes a class method
instance variable
implementation file
IBAction
+
43. Name of the '|' symbol
rand( )%21
implementation file
pipe
h
44. The Utilities area has two sections: ______ and ______
Cocoa Touch
'Interface Builder'
inspector and library
conform
45. @property directives should be placed ____ (above or below) any IBActions in the header file
interface and implementation files
mutators
above
view
46. Attribute that informs the system that the object referred to needs to be kept around and not discarded from memory
strong
retain - release - dealloc - autorelease
512MB
Single View Application
47. These define to which messages the datasource and delegate respond
do not
C
retain - release - dealloc - autorelease
protocols
48. Implements a logical AND condition
-
&&
m
viewDidLoad
49. Consider: int x = 6;int y = 7;float quotient = (float) x/y;The statement that creates the variable 'quotient' is an example of ...
casting
Command plus the navigator's position in the selector. For example - the project navigator shortcut is Command-1
myImage@2x.png
%1.2f
50. 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).
'Interface Builder'
storyboard
myImage@2x.png
wrap