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 Objective C
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. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
Encapsulation of functionality
%d
Abstraction
2. Origin of a view's coordinate system is _ left
designated initializer
size and position
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
upper
3. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
class
Controller Objects[Managers]
attributes - behavior
NSLog routine
4. Asking a class or object to execute a method
unordered collection of objects - objects must be unique
methods
upper
message
5. Class methods typically either create
UIViewController
method
new instances of the class or retrieve some global property of the class.
size and position
6. Three ways instances are created...
do so in viewDidLoad
Data Encapsulation
ready-made instances - instantiation from scratch - and nib based instantiation
setPossessionName
7. Execution of the break statement...
%d
causes the program to immediately exit from the loop it is executing - whether its for - while or do
instance variables
initializer
8. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
subview(s)
create a XIB file
unordered collection of objects - objects must be unique
9. Center and frame are used to _ your view
position
reuse your cells
NSBundle
Continue
10. A block of statements identified by a name that can accept one or more arguments passed to it by value and can optionally return a value
for inheritance - adopting the superclasses implementation
Functions
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Ready-Made Instance
11. In general - in Objective-C - a reference to an instance is a _ - and the name of the data type of what's at the far end of that pointer is the name of the instances's _.
@interface ClassName:SuperClassName
superclass's
receiving and handling events that are associated with it
pointer - class
12. A function in the objective c library that simply displays or logs it's argument
NSLog routine
Ready-Made Instance
method
view controller's initialization method
13. @property - is using methods...
view
ready-made instances - instantiation from scratch - and nib based instantiation
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
to get and set variables
14. NSDate - class...
Used to find the time right now or to store past or future time/dates
declaration and initialization of a variable
UIView
type - name and value
15. Each class picks one _ as it's designated initializer....
they need to be defined in the implementation file
receiver[message]
superclass's
initializer
16. In the last line of an init method...
you always return the newly initialized object(return self)
super - self
data source - view controller and delegate
instance variables
17. A UITableViewController can fill all three roles of...
data source - view controller and delegate
retain
references to objects
attributes - behavior
18. A pointer to the object being asked to execute a method
You take ownership for an object you want to keep a pointer to
the message release to all its entries
receiver[message]
to give it someone else - or another object
19. Delegation is an object oriented approach to
(id)initWithFrame:(CGRect)aRect;
first responder
callbacks
copy - retain
20. A responder is responsible for...
they need to be defined in the implementation file
Ready-Made Instance
instance variables
receiving and handling events that are associated with it
21. NSArray - important methods...
Model Objects[Factory Worker]
cannot be added to an array
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
subview(s)
22. Reducing details to focus on the core concepts
Encapsulation of functionality
pointers
Abstraction
upper
23. Class methods do not operate on an _ or have any access to _ variables....
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
pointer - class
instance
the message release to all its entries
24. It's class is sent the message alloc - which creates an instance of that class and returns a pointer to it - and then that instance is sent the message init - which gives its instance variables initial values.
self
array[class - NSMutableArray]
view controller's initialization method
creating an initializer
25. Never access a view controller's view in that...
26. Reference Counting...
You take ownership for an object you want to keep a pointer to
only the class and subclasses can access
'getters' and 'setters'
values
27. When do we need to release our outlets?
28. When a view controller presents a modal view controller - the _ of the modal view controller is set to be the parent of the presenting controller
declaration and initialization of a variable
receiver - selector - arguments
UIViewController
parentViewController
29. Instance Variables by default are called @protected meaning...
upper
NSBundle
only the class and subclasses can access
reuse your cells
30. The root view controller typically creates the next view controller - and the next _ creates the one after that
selector[message]
view controller
Maintenance of state
variable scope - if defined within a block
31. NSSet...
its dataSource
first responder
unordered collection of objects - objects must be unique
Anytime you call a method with new - alloc or copy. You own and must release that object.
32. Primitives and C Structures...
data source - delegate and view controller
cannot be added to an array
type - name and value
CGRect
33. super - is used...
for inheritance - adopting the superclasses implementation
NSCoder
object
the array relinquishes ownership of that object and no longer has a pointer to it
34. UIImageView is used to...
draw images
unordered collection of objects - objects must be unique
only the innermost loop in which the break is executed is terminated
they need to be defined in the implementation file
35. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
nil
@interface ClassName:SuperClassName
a single-array can contain objects of different types
instance of UIView or one of its subclasses
36. Each _ has a 'designated' initializer method....
nil
class
Hash table - Look up objects using a key to get a value.
variable scope - if defined within a block
37. initWithFrame: the designated initializer for UIView gives the view
attributes - behavior
nil
Maintenance of state
size and position
38. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
in the dealloc - or when a Controller's view is 'unloaded'
NSBundle
CGRect bounds - GCPoint center - CGRect frame
39. If a break statement is executed from within a set of nested loops...
%d
the array becomes an owner of that object and has a pointer to it.
retain
only the innermost loop in which the break is executed is terminated
40. Any other initializer a class has calls the _ designated initializer....
41. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
@synthesize
view controller
message
42. Why properties?
safety - subclassability and makes code look more consistent with C structs
super - self
Instantiation from scratch
class methods - initializers
43. Only exists within the statement block there defined - outside of the block is fine
storage
Model Objects[Factory Worker]
variable scope - if defined within a block
a mechanism to enable specific callbacks
44. The notion that the data for an object is stored in it's instance variables and is accessed only by the objects methods. This maintains the integrity of the data.
CF - Ref
protocol
cannot be added to an array
Data Encapsulation
45. A UITableView usually needs three different pieces...
for inheritance - adopting the superclasses implementation
you must import the header file of that class
variable scope - if defined within a block
data source - delegate and view controller
46. All objects are accessed using...
first responder
pointers
Controller Objects[Managers]
Encapsulation of functionality
47. NSArray - class...
ordered collection of objects - immutable
NSCoder
Encapsulation of functionality
ready-made instances - instantiation from scratch - and nib based instantiation
48. To load a Xib file manually - you use _
Continue
protocol
NSBundle
nil
49. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
declaration and initialization of a variable
message
methods
50. Designated initializer makes sure that every...
you must import the header file of that class
instance variable of an object is valid
viewWillDissapear: and viewWillAppear:
new instances of the class or retrieve some global property of the class.