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. In Objective C arrays can hold only...
collection of collections - NSArray of an NSArray
the array becomes an owner of that object and has a pointer to it.
references to objects
NSCoder
2. Asking a class or object to execute a method
nil
message
is an instance of that class
class methods - initializers
3. Number one use of protocols in iOS...
references to objects
delegates and dataSources
declaration and initialization of a variable
the message release to all its entries
4. A callback is a function that is supplied in advance of an event - and...
a mechanism to enable specific callbacks
is called every time the event occurs
do so in viewDidLoad
group of global functions already assigned to this class
5. To load a Xib file manually - you use _
class methods - initializers
NSBundle
group of global functions already assigned to this class
view
6. Views have three properties related to their location and size: @property _ _;
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
header files declare
ordered collection of objects - immutable
CGRect bounds - GCPoint center - CGRect frame
7. Ready-made instances...
protocol
Used to find the time right now or to store past or future time/dates
UIViewController
calling code that does the instantiation for you
8. A pointer to the object being asked to execute a method
Anytime you call a method with new - alloc or copy. You own and must release that object.
position
will be ignored
receiver[message]
9. Whenever a UINavigationController is about to swap views - it sends out two messages
its dataSource
viewWillDissapear: and viewWillAppear:
CF - Ref
%d
10. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
Encapsulation of functionality
is called every time the event occurs
@synthesize
11. Class methods typically either create
creates an instance of NSString that holds the character string
receiving and handling events that are associated with it
class
new instances of the class or retrieve some global property of the class.
12. Use of class methods - there are three...
dealloc - is called on the object & the object's memory is returned to the heap
alloc - singleton - informational utility method?
selector[message]
draw images
13. Property List...
they need to be defined in the implementation file
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
NSBundle
collection of collections - NSArray of an NSArray
14. [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.
creates an instance of NSString that holds the character string
causes the program to immediately exit from the loop it is executing - whether its for - while or do
safety - subclassability and makes code look more consistent with C structs
data
15. A view is a subclass of _
UIView
Encapsulation of functionality
is an instance of that class
safety - subclassability and makes code look more consistent with C structs
16. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
collection of collections - NSArray of an NSArray
causes the program to immediately exit from the loop it is executing - whether its for - while or do
NSCoder
Continue
17. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
the array becomes an owner of that object and has a pointer to it.
lowercase - uppercase
message
18. NSArray - important methods...
rectangular
do so in viewDidLoad
Is a placeholder object
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
19. When an object is removed from an NSMutableArray - that object is sent the message release;...
the array relinquishes ownership of that object and no longer has a pointer to it
the message release to all its entries
parentViewController
Continue
20. At the top of any implementation file...
message
you must import the header file of that class
in the dealloc - or when a Controller's view is 'unloaded'
NSBundle
21. NSArray - class...
subview(s)
parentViewController
ordered collection of objects - immutable
only the innermost loop in which the break is executed is terminated
22. @property declares - and _ implements the setter and getter...
arguments[message]
instance variable of an object is valid
@synthesize
its dataSource
23. What does autorelease mean?
wait until the loop finishes processing the event - at the end release it
selector[message]
protocol
view controller
24. 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.
instance variables
Maintenance of state
wait until the loop finishes processing the event - at the end release it
only the innermost loop in which the break is executed is terminated
25. Origin of a view's coordinate system is _ left
CGRect
upper
storage
safety - subclassability and makes code look more consistent with C structs
26. The only reason to temporarily own an object - is...
attributes - behavior
to give it someone else - or another object
self
CGRect bounds - GCPoint center - CGRect frame
27. In a class method you cannot access...
the instance variables
creating an initializer
dealloc - is called on the object & the object's memory is returned to the heap
type - name and value
28. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
superclass's
message
header files declare
instance
29. NSNumber - class...
type - name and value
Continue
upper
Object wrapper around primitive types like int - float - double - BOOl
30. 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.
calling code that does the instantiation for you
message
Data Encapsulation
class's
31. Defining variables - three parts...
data source - view controller and delegate
setPossessionName
class
type - name and value
32. NSDictionary...
receiving and handling events that are associated with it
creating an initializer
group of global functions already assigned to this class
Hash table - Look up objects using a key to get a value.
33. NSDate - class...
data source - view controller and delegate
Used to find the time right now or to store past or future time/dates
arguments[message]
reuse your cells
34. 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....
wait until the loop finishes processing the event - at the end release it
do so in viewDidLoad
define it in the implemenation file
Core Graphics Framework
35. Class methods do not operate on an _ or have any access to _ variables....
instance
message
unordered collection of objects - objects must be unique
define it in the implemenation file
36. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
CF - Ref
super - self
accessors - individually we call them 'getters' and 'setters'
superclass's
37. A view represents a _ area
a mechanism to enable specific callbacks
size and position
parentViewController
rectangular
38. Object Oriented based analogue to a function is called a...
setPossessionName
method
reuse your cells
a mechanism to enable specific callbacks
39. NSString objects are usually sent _ rather than _...
reuse your cells
copy - retain
nil
@interface ClassName:SuperClassName
40. After accessors have been defined in the header file...
accessors - individually we call them 'getters' and 'setters'
NSLog routine
instance variable of an object is valid
they need to be defined in the implementation file
41. If you have extra work you want to do on the view...
designated initializer
wait until the loop finishes processing the event - at the end release it
do so in viewDidLoad
CF - Ref
42. A method in a _ is required unless its preceded by an @optional.
retain
only the class and subclasses can access
protocol
the array becomes an owner of that object and has a pointer to it.
43. A UITableView usually needs three different pieces...
declaration and initialization of a variable
selector[message]
safety - subclassability and makes code look more consistent with C structs
data source - delegate and view controller
44. if you implemented both the setter and getter - the @synthesize method...
will be ignored
UIView
methods for generating an instance
creates an instance of NSString that holds the character string
45. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
a mechanism to enable specific callbacks
Controller Objects[Managers]
Instantiation from scratch
wait until the loop finishes processing the event - at the end release it
46. 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
size and position
'getters' and 'setters'
Functions
pointer - class
47. In any application with UINavigationController - the navigation controller...
the instance variables
ready-made instances - instantiation from scratch - and nib based instantiation
has one root view controller
receiver
48. Reference Counting...
You take ownership for an object you want to keep a pointer to
a mechanism to enable specific callbacks
self
instance variable of an object is valid
49. The class is responsible for what instance variables the instance has - but not the _ of those variables.
instance
data source - delegate and view controller
values
arguments[message]
50. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
receiver[message]
size and position
initializers
Instantiation from scratch