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. Dynamic binding means that when we call a certain object's method - and there are several _ of that method - the right one is figured out at runtime.
Model Objects[Factory Worker]
to get and set variables
retain
implementation
2. if you implemented both the setter and getter - the @synthesize method...
will be ignored
array[class - NSMutableArray]
group of global functions already assigned to this class
wait until the loop finishes processing the event - at the end release it
3. NSString *s = @'Hello - World'; is an example of...
has one root view controller
declaration and initialization of a variable
type - name and value
Anytime you call a method with new - alloc or copy. You own and must release that object.
4. Any individual object belonging to any class...
receiver
viewWillDissapear: and viewWillAppear:
receiving and handling events that are associated with it
is an instance of that class
5. When do we need to release our outlets?
6. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
storage
define it in the implemenation file
protocol
7. Values to be supplied as the parameters to the method
instance variables
arguments[message]
subview(s)
class
8. When overriding a method - all you need to is _ - you do not need to declare it in the header file because it has already been declared by the superclass....
Ready-Made Instance
alloc - singleton - informational utility method?
NSCoder
define it in the implemenation file
9. 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
Encapsulation of functionality
calling code that does the instantiation for you
reuse your cells
view controller
10. 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)
nil
initializers
Continue
11. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
Anytime you call a method with new - alloc or copy. You own and must release that object.
dealloc - is called on the object & the object's memory is returned to the heap
(id)initWithFrame:(CGRect)aRect;
receiver
12. NSDictionary...
Hash table - Look up objects using a key to get a value.
its dataSource
receiver[message]
creates an instance of NSString that holds the character string
13. A responder is responsible for...
instance
receiving and handling events that are associated with it
type - name and value
Generic object wrapper for other non-object data types
14. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
accessors - individually we call them 'getters' and 'setters'
Anytime you call a method with new - alloc or copy. You own and must release that object.
designated initializer
do so in viewDidLoad
15. Object Oriented based analogue to a function is called a...
method
view
callbacks
header files declare
16. UIImageView is used to...
instance
CGRect bounds - GCPoint center - CGRect frame
upper
draw images
17. A message is always contained in square brackets - and has three parts
CGFloat
receiver
do so in viewDidLoad
receiver - selector - arguments
18. We can use dot notation to reference...
19. Property List...
collection of collections - NSArray of an NSArray
Controller Objects[Managers]
to give it someone else - or another object
delegates and dataSources
20. Origin of a view's coordinate system is _ left
receiver[message]
group of global functions already assigned to this class
class
upper
21. Ready-made instances...
a mechanism to enable specific callbacks
references to objects
CGRect
calling code that does the instantiation for you
22. Each class picks one _ as it's designated initializer....
initializer
the array relinquishes ownership of that object and no longer has a pointer to it
receiving and handling events that are associated with it
header files declare
23. A UITableViewController can fill all three roles of...
data source - view controller and delegate
will be ignored
superclass's
Is a placeholder object
24. NSString objects are usually sent _ rather than _...
copy - retain
a mechanism to enable specific callbacks
Encapsulation of functionality
data source - view controller and delegate
25. [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.
view controller's initialization method
data
collection of collections - NSArray of an NSArray
Is a placeholder object
26. Instance Variables by default are called @protected meaning...
Generic object wrapper for other non-object data types
receiver[message]
only the class and subclasses can access
instance
27. A _ handles touch events.
safety - subclassability and makes code look more consistent with C structs
view
ordered collection of objects - immutable
for inheritance - adopting the superclasses implementation
28. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
data source - delegate and view controller
new instances of the class or retrieve some global property of the class.
to get and set variables
29. id is a...
message
Anytime you call a method with new - alloc or copy. You own and must release that object.
methods for generating an instance
pointer to an object
30. Class methods typically either create
arguments[message]
nil
C Functionn
new instances of the class or retrieve some global property of the class.
31. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
initializer
Maintenance of state
object
instance
32. Use of class methods - there are three...
reuse your cells
selector[message]
alloc - singleton - informational utility method?
Ready-Made Instance
33. 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.
Data Encapsulation
receiver
setPossessionName
instance variables
34. If the view has no subviews - create it programmatically; if it has subviews
instance variable of an object is valid
message
Model Objects[Factory Worker]
create a XIB file
35. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
CGRect bounds - GCPoint center - CGRect frame
message
storage
36. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
NSBundle
they need to be defined in the implementation file
wait until the loop finishes processing the event - at the end release it
37. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
delegates and dataSources
Controller Objects[Managers]
has one root view controller
data
38. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
CF - Ref
Functions
header files declare
designated initializer
39. Class methods do not operate on an _ or have any access to _ variables....
instance variables
arguments[message]
NSCoder
instance
40. NSSet...
CGRect bounds - GCPoint center - CGRect frame
CGRect bounds
Data Encapsulation
unordered collection of objects - objects must be unique
41. All objects are accessed using...
pointers
the message release to all its entries
data source - delegate and view controller
alloc - singleton - informational utility method?
42. When making a tableView always...
reuse your cells
a single-array can contain objects of different types
object
storage
43. If a break statement is executed from within a set of nested loops...
only the innermost loop in which the break is executed is terminated
Used to find the time right now or to store past or future time/dates
type - name and value
references to objects
44. Also - because arrays only hold a pointer to an object...
accessors - individually we call them 'getters' and 'setters'
@interface ClassName:SuperClassName
a single-array can contain objects of different types
NSBundle
45. Typically the designated initializer has parameters for the most important and frequently used _ of an object
will be ignored
instance variables
lowercase - uppercase
calling code that does the instantiation for you
46. The only reason to temporarily own an object - is...
an object's property
view
to give it someone else - or another object
only the innermost loop in which the break is executed is terminated
47. In a class method you cannot access...
the instance variables
methods
they need to be defined in the implementation file
only the class and subclasses can access
48. The root view controller typically creates the next view controller - and the next _ creates the one after that
calling code that does the instantiation for you
receiver - selector - arguments
array[class - NSMutableArray]
view controller
49. NSArray - important methods...
Functions
Encapsulation of functionality
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
pointer - class
50. A collection object - an ordered list of objects that can be accesed by an index
UIView
the array becomes an owner of that object and has a pointer to it.
You take ownership for an object you want to keep a pointer to
array[class - NSMutableArray]