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. The only reason to temporarily own an object - is...
calling code that does the instantiation for you
to give it someone else - or another object
NSBundle
Encapsulation of functionality
2. Views have three properties related to their location and size: @property _ _;
pointers
pointer - class
dealloc - is called on the object & the object's memory is returned to the heap
CGRect bounds - GCPoint center - CGRect frame
3. NSValue - class...
Generic object wrapper for other non-object data types
%d
UIView
CGFloat
4. The integer prefix is...
C Functionn
%d
CGFloat
Ready-Made Instance
5. Use of class methods - there are three...
Instantiation from scratch
alloc - singleton - informational utility method?
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
retain
6. if you implemented both the setter and getter - the @synthesize method...
CF - Ref
array[class - NSMutableArray]
Continue
will be ignored
7. Name of the method to be executed
self
in the dealloc - or when a Controller's view is 'unloaded'
methods
selector[message]
8. Each _ has a 'designated' initializer method....
create a XIB file
class
subview(s)
group of global functions already assigned to this class
9. @property declares - and _ implements the setter and getter...
Functions
@synthesize
initializers
its dataSource
10. When making a tableView always...
accessors - individually we call them 'getters' and 'setters'
Maintenance of state
reuse your cells
Object wrapper around primitive types like int - float - double - BOOl
11. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
pointer - class
class methods - initializers
receiver[message]
super - self
12. NSArray - important methods...
lowercase - uppercase
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
instance variables
pointers
13. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
Instantiation from scratch
initializers
receiver
Encapsulation of functionality
14. NSString *s = @'Hello - World'; is an example of...
the array becomes an owner of that object and has a pointer to it.
CGRect bounds
declaration and initialization of a variable
receiver[message]
15. UIViewController has several methods that get called at certain times...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
view controller
you must import the header file of that class
a mechanism to enable specific callbacks
16. 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
receiver[message]
only the innermost loop in which the break is executed is terminated
NSCoder
17. When an object is added to a NSMutableArray - that object is sent the message to retain;...
Abstraction
view controller's initialization method
the array becomes an owner of that object and has a pointer to it.
to get and set variables
18. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
initializers
safety - subclassability and makes code look more consistent with C structs
lowercase - uppercase
19. A view represents a _ area
UIView
rectangular
NSBundle
pointers
20. Typically the designated initializer has parameters for the most important and frequently used _ of an object
data
C Functionn
instance variables
instance variables
21. id is a...
size and position
storage
super - self
pointer to an object
22. What happens when the last owner calls release?
23. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
group of global functions already assigned to this class
CGRect
data
@synthesize
24. 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...
NSBundle
message
setPossessionName
Is a placeholder object
25. Each individual instance is a bundle of data that it maintains. Typically that data is private - which means that it's encapsulated as well; no other object knows what that data is or in what form it is kept. The only way to discover from outside wha
object
Maintenance of state
is called every time the event occurs
You take ownership for an object you want to keep a pointer to
26. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
they need to be defined in the implementation file
a single-array can contain objects of different types
super - self
CGFloat
27. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
receiver - selector - arguments
message
is called every time the event occurs
28. UIImageView is used to...
@interface ClassName:SuperClassName
draw images
(id)initWithFrame:(CGRect)aRect;
pointers
29. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
initializers
@synthesize
UIView
receiver
30. If the view has no subviews - create it programmatically; if it has subviews
a single-array can contain objects of different types
arguments[message]
create a XIB file
viewWillDissapear: and viewWillAppear:
31. Why properties?
data
protocol
is called every time the event occurs
safety - subclassability and makes code look more consistent with C structs
32. If a break statement is executed from within a set of nested loops...
attributes - behavior
only the innermost loop in which the break is executed is terminated
alloc - singleton - informational utility method?
Used to find the time right now or to store past or future time/dates
33. Core foundation classes are prefixed with _ and suffixed with _
header files declare
ordered collection of objects - immutable
is called every time the event occurs
CF - Ref
34. 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.
you must import the header file of that class
group of global functions already assigned to this class
implementation
instance variable of an object is valid
35. Delegation is an object oriented approach to
delegates and dataSources
create a XIB file
callbacks
CGRect bounds - GCPoint center - CGRect frame
36. After accessors have been defined in the header file...
wait until the loop finishes processing the event - at the end release it
view controller
they need to be defined in the implementation file
pointers
37. To load a Xib file manually - you use _
retain
NSBundle
is called every time the event occurs
upper
38. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
@interface ClassName:SuperClassName
initializers
Functions
39. 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.
copy - retain
'getters' and 'setters'
instance variables
(id)initWithFrame:(CGRect)aRect;
40. Categories are an Objective C way to add _ to an existing class without subclassing
wait until the loop finishes processing the event - at the end release it
receiver - selector - arguments
will be ignored
methods
41. If you have extra work you want to do on the view...
super - self
do so in viewDidLoad
copy - retain
Hash table - Look up objects using a key to get a value.
42. Property List...
Controller Objects[Managers]
copy - retain
instance
collection of collections - NSArray of an NSArray
43. Proceed through the loop - jump back to the top and check again
you must import the header file of that class
nil
only the class and subclasses can access
Continue
44. Defining variables - three parts...
data source - view controller and delegate
type - name and value
ordered collection of objects - immutable
UIViewController
45. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
(id)initWithFrame:(CGRect)aRect;
designated initializer
Anytime you call a method with new - alloc or copy. You own and must release that object.
they need to be defined in the implementation file
46. A responder is responsible for...
Encapsulation of functionality
a single-array can contain objects of different types
method
receiving and handling events that are associated with it
47. NSDate - class...
@synthesize
Used to find the time right now or to store past or future time/dates
message
to give it someone else - or another object
48. A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words - it's _ from a later created object
a mechanism to enable specific callbacks
message
accessors - individually we call them 'getters' and 'setters'
Object wrapper around primitive types like int - float - double - BOOl
49. Hold data and know nothing about the user interface
arguments[message]
Model Objects[Factory Worker]
declaration and initialization of a variable
in the dealloc - or when a Controller's view is 'unloaded'
50. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
attributes - behavior
Used to find the time right now or to store past or future time/dates
lowercase - uppercase
to get and set variables