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. Delegation is an object oriented approach to
Controller Objects[Managers]
initializer
do so in viewDidLoad
callbacks
2. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
Used to find the time right now or to store past or future time/dates
CGFloat
declaration and initialization of a variable
super - self
3. Instance Variables by default are called @protected meaning...
rectangular
Is a placeholder object
only the class and subclasses can access
method
4. A responder is responsible for...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
message
receiving and handling events that are associated with it
causes the program to immediately exit from the loop it is executing - whether its for - while or do
5. Three ways instances are created...
the array relinquishes ownership of that object and no longer has a pointer to it
is an instance of that class
super - self
ready-made instances - instantiation from scratch - and nib based instantiation
6. Typically the designated initializer has parameters for the most important and frequently used _ of an object
designated initializer
Data Encapsulation
instance variables
create a XIB file
7. In a class method you cannot access...
cannot be added to an array
the instance variables
is an instance of that class
C Functionn
8. In Objective C arrays can hold only...
@synthesize
reuse your cells
references to objects
its dataSource
9. Just a floating point number - but we always use it for graphics.
Maintenance of state
values
CGFloat
first responder
10. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
Anytime you call a method with new - alloc or copy. You own and must release that object.
view controller
setPossessionName
lowercase - uppercase
11. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
storage
Model Objects[Factory Worker]
%d
12. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
@interface ClassName:SuperClassName
Is a placeholder object
Used to find the time right now or to store past or future time/dates
13. Whenever a UINavigationController is about to swap views - it sends out two messages
receiving and handling events that are associated with it
CGRect bounds - GCPoint center - CGRect frame
CGFloat
viewWillDissapear: and viewWillAppear:
14. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
calling code that does the instantiation for you
upper
C Functionn
receiver
15. NSDictionary...
variable scope - if defined within a block
Hash table - Look up objects using a key to get a value.
protocol
create a XIB file
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
Abstraction
Core Graphics Framework
Used to find the time right now or to store past or future time/dates
17. Number one use of protocols in iOS...
UIViewController
ready-made instances - instantiation from scratch - and nib based instantiation
create a XIB file
delegates and dataSources
18. id is a...
pointer to an object
Data Encapsulation
the message release to all its entries
Maintenance of state
19. 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
CGRect bounds
Encapsulation of functionality
%d
Abstraction
20. Files Owner...
header files declare
retain
CF - Ref
Is a placeholder object
21. When an NSMutableArray is deallocated - it sends...
to give it someone else - or another object
the message release to all its entries
Controller Objects[Managers]
ordered collection of objects - immutable
22. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
implementation
Abstraction
new instances of the class or retrieve some global property of the class.
23. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
data source - delegate and view controller
causes the program to immediately exit from the loop it is executing - whether its for - while or do
receiver[message]
24. Ready-made instances...
'getters' and 'setters'
has one root view controller
calling code that does the instantiation for you
self
25. If you have extra work you want to do on the view...
Abstraction
instance variables
do so in viewDidLoad
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
26. 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....
Instantiation from scratch
initializer
storage
define it in the implemenation file
27. Categories are an Objective C way to add _ to an existing class without subclassing
CGRect bounds - GCPoint center - CGRect frame
@synthesize
only the class and subclasses can access
methods
28. A _ handles touch events.
view
Continue
class's
group of global functions already assigned to this class
29. 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...
setPossessionName
receiving and handling events that are associated with it
instance variables
Maintenance of state
30. 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
position
group of global functions already assigned to this class
draw images
31. NSDate - class...
creates an instance of NSString that holds the character string
Object wrapper around primitive types like int - float - double - BOOl
Used to find the time right now or to store past or future time/dates
draw images
32. 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
you must import the header file of that class
subview(s)
CF - Ref
parentViewController
33. After accessors have been defined in the header file...
is called every time the event occurs
they need to be defined in the implementation file
upper
array[class - NSMutableArray]
34. If a break statement is executed from within a set of nested loops...
upper
CF - Ref
only the innermost loop in which the break is executed is terminated
you always return the newly initialized object(return self)
35. A UITableViewController can fill all three roles of...
an object's property
dealloc - is called on the object & the object's memory is returned to the heap
data source - view controller and delegate
attributes - behavior
36. The integer prefix is...
instance of UIView or one of its subclasses
draw images
%d
is called every time the event occurs
37. UIImageView is used to...
data source - view controller and delegate
Controller Objects[Managers]
You take ownership for an object you want to keep a pointer to
draw images
38. NSString *s = @'Hello - World'; is an example of...
its dataSource
declaration and initialization of a variable
draw images
message
39. 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
Abstraction
a mechanism to enable specific callbacks
new instances of the class or retrieve some global property of the class.
for inheritance - adopting the superclasses implementation
40. Reference Counting...
You take ownership for an object you want to keep a pointer to
viewWillDissapear: and viewWillAppear:
Maintenance of state
'getters' and 'setters'
41. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
for inheritance - adopting the superclasses implementation
you always return the newly initialized object(return self)
define it in the implemenation file
class methods - initializers
42. 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.
accessors - individually we call them 'getters' and 'setters'
calling code that does the instantiation for you
nil
implementation
43. Asking a class or object to execute a method
copy - retain
selector[message]
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
message
44. In the last line of an init method...
Continue
ordered collection of objects - immutable
you always return the newly initialized object(return self)
its dataSource
45. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
in the dealloc - or when a Controller's view is 'unloaded'
C Functionn
Hash table - Look up objects using a key to get a value.
header files declare
46. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
the message release to all its entries
delegates and dataSources
dealloc - is called on the object & the object's memory is returned to the heap
header files declare
47. The class is responsible for what instance variables the instance has - but not the _ of those variables.
Data Encapsulation
class's
@interface ClassName:SuperClassName
values
48. 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
setPossessionName
Functions
subview(s)
group of global functions already assigned to this class
49. NSSet...
array[class - NSMutableArray]
unordered collection of objects - objects must be unique
initializers
only the innermost loop in which the break is executed is terminated
50. A method in a _ is required unless its preceded by an @optional.
protocol
Abstraction
values
you must import the header file of that class