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. NSNumber - class...
methods
Object wrapper around primitive types like int - float - double - BOOl
NSCoder
Maintenance of state
2. UIImageView is used to...
subview(s)
draw images
arguments[message]
Ready-Made Instance
3. 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 _.
to get and set variables
pointer - class
to give it someone else - or another object
the array relinquishes ownership of that object and no longer has a pointer to it
4. 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.
data
implementation
class methods - initializers
parentViewController
5. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
attributes - behavior
initializers
You take ownership for an object you want to keep a pointer to
super - self
6. Only exists within the statement block there defined - outside of the block is fine
Ready-Made Instance
to get and set variables
variable scope - if defined within a block
retain
7. A _ handles touch events.
a single-array can contain objects of different types
view
attributes - behavior
collection of collections - NSArray of an NSArray
8. If you aren't going to initialize an instance reference pointer at the moment you declare it by assigning a real value - it's a good idea to assign it _.
references to objects
CGRect bounds - GCPoint center - CGRect frame
Controller Objects[Managers]
nil
9. @property - is using methods...
data source - delegate and view controller
initializers
to get and set variables
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
10. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
subview(s)
receiver
storage
Hash table - Look up objects using a key to get a value.
11. Also if you send the NSObject the _ message - you own that object.
NSCoder
protocol
retain
new instances of the class or retrieve some global property of the class.
12. [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.
ready-made instances - instantiation from scratch - and nib based instantiation
array[class - NSMutableArray]
data
pointer - class
13. A collection object - an ordered list of objects that can be accesed by an index
'getters' and 'setters'
data source - view controller and delegate
wait until the loop finishes processing the event - at the end release it
array[class - NSMutableArray]
14. Core foundation classes are prefixed with _ and suffixed with _
ready-made instances - instantiation from scratch - and nib based instantiation
CF - Ref
in the dealloc - or when a Controller's view is 'unloaded'
Controller Objects[Managers]
15. Typically the designated initializer has parameters for the most important and frequently used _ of an object
instance variables
in the dealloc - or when a Controller's view is 'unloaded'
initializers
instance variables
16. 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.
object
Data Encapsulation
rectangular
size and position
17. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
pointers
@interface ClassName:SuperClassName
parentViewController
viewWillDissapear: and viewWillAppear:
18. A view is an...
instance of UIView or one of its subclasses
arguments[message]
Object wrapper around primitive types like int - float - double - BOOl
attributes - behavior
19. class methods...
group of global functions already assigned to this class
arguments[message]
alloc - singleton - informational utility method?
NSCoder
20. When making a tableView always...
reuse your cells
pointer to an object
designated initializer
only the class and subclasses can access
21. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
22. A command directed to an object is called an...
the instance variables
message
reuse your cells
'getters' and 'setters'
23. Categories are an Objective C way to add _ to an existing class without subclassing
new instances of the class or retrieve some global property of the class.
NSCoder
methods
size and position
24. When an NSMutableArray is deallocated - it sends...
data
@synthesize
position
the message release to all its entries
25. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
storage
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
class methods - initializers
accessors - individually we call them 'getters' and 'setters'
26. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
receiver[message]
creating an initializer
subview(s)
27. A pointer to the object being asked to execute a method
self
position
NSCoder
receiver[message]
28. A method in a _ is required unless its preceded by an @optional.
protocol
draw images
only the class and subclasses can access
%d
29. A UITableViewController can fill all three roles of...
the instance variables
viewWillDissapear: and viewWillAppear:
Encapsulation of functionality
data source - view controller and delegate
30. UIView - designated initializer...
UIViewController
CGRect bounds - GCPoint center - CGRect frame
in the dealloc - or when a Controller's view is 'unloaded'
(id)initWithFrame:(CGRect)aRect;
31. Asking a class or object to execute a method
message
only the innermost loop in which the break is executed is terminated
create a XIB file
Controller Objects[Managers]
32. Each class picks one _ as it's designated initializer....
only the class and subclasses can access
receiving and handling events that are associated with it
initializer
superclass's
33. NSString objects are usually sent _ rather than _...
copy - retain
subview(s)
CGRect bounds - GCPoint center - CGRect frame
rectangular
34. Reference Counting...
pointer - class
You take ownership for an object you want to keep a pointer to
class's
create a XIB file
35. initWithFrame: the designated initializer for UIView gives the view
object
creates an instance of NSString that holds the character string
size and position
reuse your cells
36. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
data
Controller Objects[Managers]
NSCoder
you always return the newly initialized object(return self)
37. What does autorelease mean?
wait until the loop finishes processing the event - at the end release it
to give it someone else - or another object
subview(s)
object
38. Ready-made instances...
attributes - behavior
calling code that does the instantiation for you
creating an initializer
alloc - singleton - informational utility method?
39. 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
UIViewController
parentViewController
Instantiation from scratch
self
40. A callback is a function that is supplied in advance of an event - and...
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
methods for generating an instance
in the dealloc - or when a Controller's view is 'unloaded'
41. NSArray - class...
accessors - individually we call them 'getters' and 'setters'
calling code that does the instantiation for you
ordered collection of objects - immutable
causes the program to immediately exit from the loop it is executing - whether its for - while or do
42. In the last line of an init method...
Encapsulation of functionality
wait until the loop finishes processing the event - at the end release it
you always return the newly initialized object(return self)
receiver
43. Delegation is an object oriented approach to
storage
protocol
position
callbacks
44. Designated initializer makes sure that every...
instance variable of an object is valid
NSCoder
lowercase - uppercase
you must import the header file of that class
45. The integer prefix is...
%d
cannot be added to an array
C Functionn
Data Encapsulation
46. Name of the method to be executed
new instances of the class or retrieve some global property of the class.
selector[message]
you always return the newly initialized object(return self)
accessors - individually we call them 'getters' and 'setters'
47. NSArray - important methods...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
receiving and handling events that are associated with it
its dataSource
in the dealloc - or when a Controller's view is 'unloaded'
48. Class methods do not operate on an _ or have any access to _ variables....
instance
receiving and handling events that are associated with it
array[class - NSMutableArray]
Encapsulation of functionality
49. You use _ to implement the view
CGRect bounds
receiver[message]
a mechanism to enable specific callbacks
delegates and dataSources
50. Why properties?
attributes - behavior
Object wrapper around primitive types like int - float - double - BOOl
its dataSource
safety - subclassability and makes code look more consistent with C structs