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. UIView - designated initializer...
@synthesize
(id)initWithFrame:(CGRect)aRect;
view controller's initialization method
class
2. A callback is a function that is supplied in advance of an event - and...
class's
receiving and handling events that are associated with it
is called every time the event occurs
pointer to an object
3. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
methods for generating an instance
'getters' and 'setters'
delegates and dataSources
4. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
accessors - individually we call them 'getters' and 'setters'
wait until the loop finishes processing the event - at the end release it
Controller Objects[Managers]
create a XIB file
5. Prefixing a character string with an @ symbol [specific - NSString class]...
cannot be added to an array
superclass's
you must import the header file of that class
creates an instance of NSString that holds the character string
6. 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....
its dataSource
define it in the implemenation file
superclass's
you must import the header file of that class
7. 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
view controller
in the dealloc - or when a Controller's view is 'unloaded'
array[class - NSMutableArray]
Maintenance of state
8. Any individual object belonging to any class...
pointers
is an instance of that class
Functions
self
9. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
receiving and handling events that are associated with it
initializer
values
receiver
10. A pointer to the object being asked to execute a method
selector[message]
group of global functions already assigned to this class
variable scope - if defined within a block
receiver[message]
11. What happens when the last owner calls release?
12. In Cocoa Touch - the table view asks another object _ what it should display...
Anytime you call a method with new - alloc or copy. You own and must release that object.
its dataSource
instance
designated initializer
13. An instance is a device for maintaining state. It's a box for _ of data.
storage
data source - view controller and delegate
they need to be defined in the implementation file
define it in the implemenation file
14. Designated initializer makes sure that every...
superclass's
references to objects
instance variable of an object is valid
define it in the implemenation file
15. The integer prefix is...
the array relinquishes ownership of that object and no longer has a pointer to it
create a XIB file
%d
designated initializer
16. 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.
Controller Objects[Managers]
implementation
dealloc - is called on the object & the object's memory is returned to the heap
setPossessionName
17. A view is an...
lowercase - uppercase
do so in viewDidLoad
instance of UIView or one of its subclasses
will be ignored
18. In Objective C arrays can hold only...
Generic object wrapper for other non-object data types
references to objects
instance
only the innermost loop in which the break is executed is terminated
19. NSString objects are usually sent _ rather than _...
copy - retain
the array relinquishes ownership of that object and no longer has a pointer to it
CGFloat
values
20. All objects are accessed using...
pointers
implementation
will be ignored
view controller's initialization method
21. In a class method you cannot access...
the instance variables
reuse your cells
NSCoder
viewWillDissapear: and viewWillAppear:
22. A command directed to an object is called an...
references to objects
message
NSLog routine
arguments[message]
23. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
pointer - class
initializers
is called every time the event occurs
CGRect
24. NSDate - class...
Used to find the time right now or to store past or future time/dates
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
delegates and dataSources
array[class - NSMutableArray]
25. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
in the dealloc - or when a Controller's view is 'unloaded'
wait until the loop finishes processing the event - at the end release it
Core Graphics Framework
26. Each class picks one _ as it's designated initializer....
initializer
first responder
draw images
array[class - NSMutableArray]
27. Also - because arrays only hold a pointer to an object...
creating an initializer
message
data source - delegate and view controller
a single-array can contain objects of different types
28. NSSet...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
unordered collection of objects - objects must be unique
do so in viewDidLoad
has one root view controller
29. Reducing details to focus on the core concepts
'getters' and 'setters'
Abstraction
CF - Ref
Anytime you call a method with new - alloc or copy. You own and must release that object.
30. A responder is responsible for...
create a XIB file
viewWillDissapear: and viewWillAppear:
receiving and handling events that are associated with it
class's
31. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
copy - retain
attributes - behavior
Data Encapsulation
32. Any other initializer a class has calls the _ designated initializer....
33. Class methods typically either create
message
new instances of the class or retrieve some global property of the class.
ready-made instances - instantiation from scratch - and nib based instantiation
define it in the implemenation file
34. When an object is removed from an NSMutableArray - that object is sent the message release;...
values
the array relinquishes ownership of that object and no longer has a pointer to it
wait until the loop finishes processing the event - at the end release it
Core Graphics Framework
35. 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
Is a placeholder object
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Continue
36. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
Anytime you call a method with new - alloc or copy. You own and must release that object.
Controller Objects[Managers]
creates an instance of NSString that holds the character string
37. A UITableViewController can fill all three roles of...
safety - subclassability and makes code look more consistent with C structs
new instances of the class or retrieve some global property of the class.
data source - view controller and delegate
CF - Ref
38. A collection object - an ordered list of objects that can be accesed by an index
you always return the newly initialized object(return self)
instance variables
declaration and initialization of a variable
array[class - NSMutableArray]
39. Reference Counting...
methods for generating an instance
Generic object wrapper for other non-object data types
creating an initializer
You take ownership for an object you want to keep a pointer to
40. When an NSMutableArray is deallocated - it sends...
NSCoder
C Functionn
the message release to all its entries
Model Objects[Factory Worker]
41. When an object is added to a NSMutableArray - that object is sent the message to retain;...
Ready-Made Instance
arguments[message]
the array becomes an owner of that object and has a pointer to it.
has one root view controller
42. @property - is using methods...
draw images
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
declaration and initialization of a variable
to get and set variables
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
will be ignored
is called every time the event occurs
group of global functions already assigned to this class
44. A UITableView usually needs three different pieces...
methods
data source - delegate and view controller
@interface ClassName:SuperClassName
NSLog routine
45. You use _ to implement the view
self
CGRect bounds
header files declare
you always return the newly initialized object(return self)
46. Classes describe two things...
NSLog routine
data source - view controller and delegate
'getters' and 'setters'
attributes - behavior
47. class methods...
group of global functions already assigned to this class
pointer to an object
retain
subview(s)
48. The designated initializer calls the _ designated initializer....
49. A _ handles touch events.
view
attributes - behavior
Core Graphics Framework
object
50. Instance Variables by default are called @protected meaning...
calling code that does the instantiation for you
the array relinquishes ownership of that object and no longer has a pointer to it
only the class and subclasses can access
position