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. 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
reuse your cells
object
parentViewController
header files declare
2. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
method
group of global functions already assigned to this class
object
a single-array can contain objects of different types
3. A collection object - an ordered list of objects that can be accesed by an index
only the innermost loop in which the break is executed is terminated
draw images
array[class - NSMutableArray]
a single-array can contain objects of different types
4. A view exists within a hierarchy. The window (an instance of UIWindow) is a view and the root of the hierarchy. It has _ (that appear on the window). Those views can also have _.
subview(s)
creating an initializer
ordered collection of objects - immutable
message
5. Why properties?
method
pointer - class
safety - subclassability and makes code look more consistent with C structs
attributes - behavior
6. @property - is using methods...
methods
data source - delegate and view controller
to get and set variables
accessors - individually we call them 'getters' and 'setters'
7. The designated initializer calls the _ designated initializer....
8. A pointer to the object being asked to execute a method
the message release to all its entries
'getters' and 'setters'
viewWillDissapear: and viewWillAppear:
receiver[message]
9. Only exists within the statement block there defined - outside of the block is fine
array[class - NSMutableArray]
variable scope - if defined within a block
CGRect bounds
NSCoder
10. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
CGRect bounds - GCPoint center - CGRect frame
NSCoder
@interface ClassName:SuperClassName
data source - delegate and view controller
11. UITableViewController is a subclass of...
array[class - NSMutableArray]
values
UIViewController
Used to find the time right now or to store past or future time/dates
12. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
13. To load a Xib file manually - you use _
upper
type - name and value
references to objects
NSBundle
14. Reducing details to focus on the core concepts
dealloc - is called on the object & the object's memory is returned to the heap
a mechanism to enable specific callbacks
Abstraction
delegates and dataSources
15. Reference Counting...
a mechanism to enable specific callbacks
Core Graphics Framework
group of global functions already assigned to this class
You take ownership for an object you want to keep a pointer to
16. Files Owner...
to give it someone else - or another object
will be ignored
Is a placeholder object
the array relinquishes ownership of that object and no longer has a pointer to it
17. Property List...
'getters' and 'setters'
UIViewController
Core Graphics Framework
collection of collections - NSArray of an NSArray
18. id is a...
pointer to an object
(id)initWithFrame:(CGRect)aRect;
receiving and handling events that are associated with it
only the class and subclasses can access
19. Instance Variables by default are called @protected meaning...
initializers
selector[message]
only the class and subclasses can access
class methods - initializers
20. 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 _.
instance variables
header files declare
arguments[message]
pointer - class
21. 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.
receiver[message]
creating an initializer
is an instance of that class
do so in viewDidLoad
22. In general - class methods tend to be factory methods - that is...
self
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
callbacks
methods for generating an instance
23. When the message endEditing: is sent to a view - if it or any of its subviews or currently the _ - it will resign its first responder statues - and the keyboard will be dismissed.
its dataSource
instance of UIView or one of its subclasses
method
first responder
24. NSSet...
data source - delegate and view controller
creating an initializer
unordered collection of objects - objects must be unique
message
25. In Objective C - the name of a setter method is set plus the name of the instance variable it is changing - for example PossessionName would be...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
rectangular
implementation
setPossessionName
26. 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.
Data Encapsulation
initializer
storage
do so in viewDidLoad
27. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
Hash table - Look up objects using a key to get a value.
class's
You take ownership for an object you want to keep a pointer to
28. A view represents a _ area
protocol
has one root view controller
rectangular
storage
29. We can use dot notation to reference...
30. Never access a view controller's view in that...
31. Object Oriented based analogue to a function is called a...
copy - retain
retain
method
Encapsulation of functionality
32. NSValue - class...
Generic object wrapper for other non-object data types
view controller's initialization method
you always return the newly initialized object(return self)
superclass's
33. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
Abstraction
is an instance of that class
super - self
self
34. Number one use of protocols in iOS...
delegates and dataSources
in the dealloc - or when a Controller's view is 'unloaded'
view controller's initialization method
arguments[message]
35. Hold data and know nothing about the user interface
pointer - class
Model Objects[Factory Worker]
safety - subclassability and makes code look more consistent with C structs
delegates and dataSources
36. Each object does its own job - and presents to the rest of the world - to other objects - and indeed in a sense to the programmer - an opaque wall whose only entrances are the methods to which it promises to respond and the actions it promises to per
Abstraction
Encapsulation of functionality
for inheritance - adopting the superclasses implementation
create a XIB file
37. Ready-made instances...
calling code that does the instantiation for you
type - name and value
size and position
receiving and handling events that are associated with it
38. A view is a subclass of _
UIView
ordered collection of objects - immutable
@interface ClassName:SuperClassName
NSLog routine
39. In Cocoa Touch - the table view asks another object _ what it should display...
in the dealloc - or when a Controller's view is 'unloaded'
super - self
array[class - NSMutableArray]
its dataSource
40. When an object is removed from an NSMutableArray - that object is sent the message release;...
delegates and dataSources
the message release to all its entries
the array relinquishes ownership of that object and no longer has a pointer to it
Generic object wrapper for other non-object data types
41. Prefixing a character string with an @ symbol [specific - NSString class]...
the instance variables
creates an instance of NSString that holds the character string
message
ready-made instances - instantiation from scratch - and nib based instantiation
42. [Instance Variables] The code it gets from its class and in a sense is shared with all other instances of that class - but the _ belong to it alone.
C Functionn
data
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
UIViewController
43. A callback is a function that is supplied in advance of an event - and...
receiver
causes the program to immediately exit from the loop it is executing - whether its for - while or do
is called every time the event occurs
CGRect bounds
44. Categories are an Objective C way to add _ to an existing class without subclassing
Used to find the time right now or to store past or future time/dates
ordered collection of objects - immutable
protocol
methods
45. How do I implement my drawRect?
only the innermost loop in which the break is executed is terminated
self
(id)initWithFrame:(CGRect)aRect;
Core Graphics Framework
46. Core foundation classes are prefixed with _ and suffixed with _
callbacks
object
CF - Ref
message
47. A method in a _ is required unless its preceded by an @optional.
protocol
storage
Used to find the time right now or to store past or future time/dates
CGFloat
48. For view controllers that are closely related - like a table view controller and its detail view controller - you can simply give them _ that point to each other.
Instantiation from scratch
viewWillDissapear: and viewWillAppear:
setPossessionName
instance variables
49. In Objective C arrays can hold only...
references to objects
%d
Hash table - Look up objects using a key to get a value.
Controller Objects[Managers]
50. Name of the method to be executed
pointers
selector[message]
Used to find the time right now or to store past or future time/dates
type - name and value