SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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. A function in the objective c library that simply displays or logs it's argument
NSLog routine
receiver[message]
header files declare
CGRect bounds
2. NSDictionary...
protocol
(id)initWithFrame:(CGRect)aRect;
for inheritance - adopting the superclasses implementation
Hash table - Look up objects using a key to get a value.
3. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
Core Graphics Framework
object
view controller's initialization method
'getters' and 'setters'
4. @property - is using methods...
to get and set variables
type - name and value
methods
receiver
5. A _ handles touch events.
create a XIB file
(id)initWithFrame:(CGRect)aRect;
view
rectangular
6. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
setPossessionName
unordered collection of objects - objects must be unique
the instance variables
7. How do I implement my drawRect?
Core Graphics Framework
in the dealloc - or when a Controller's view is 'unloaded'
a single-array can contain objects of different types
class's
8. Views have three properties related to their location and size: @property _ _;
viewWillDissapear: and viewWillAppear:
header files declare
they need to be defined in the implementation file
CGRect bounds - GCPoint center - CGRect frame
9. In any application with UINavigationController - the navigation controller...
has one root view controller
safety - subclassability and makes code look more consistent with C structs
size and position
superclass's
10. class methods...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
group of global functions already assigned to this class
class
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
11. Each class picks one _ as it's designated initializer....
data
(id)initWithFrame:(CGRect)aRect;
designated initializer
initializer
12. 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.
CGRect bounds
CGRect bounds - GCPoint center - CGRect frame
they need to be defined in the implementation file
Data Encapsulation
13. 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.
accessors - individually we call them 'getters' and 'setters'
instance variables
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
receiver[message]
14. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
is an instance of that class
super - self
pointer to an object
do so in viewDidLoad
15. When making a tableView always...
do so in viewDidLoad
Object wrapper around primitive types like int - float - double - BOOl
a mechanism to enable specific callbacks
reuse your cells
16. Files Owner...
Is a placeholder object
super - self
in the dealloc - or when a Controller's view is 'unloaded'
will be ignored
17. 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
superclass's
NSCoder
an object's property
18. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
receiver[message]
is called every time the event occurs
Functions
C Functionn
19. Just a floating point number - but we always use it for graphics.
unordered collection of objects - objects must be unique
only the class and subclasses can access
CGFloat
subview(s)
20. When do we need to release our outlets?
21. The class is responsible for what instance variables the instance has - but not the _ of those variables.
creates an instance of NSString that holds the character string
pointer to an object
values
rectangular
22. What happens when the last owner calls release?
23. initWithFrame: the designated initializer for UIView gives the view
superclass's
UIView
wait until the loop finishes processing the event - at the end release it
size and position
24. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
initializer
protocol
pointer - class
CGRect
25. In the last line of an init method...
instance
you always return the newly initialized object(return self)
Anytime you call a method with new - alloc or copy. You own and must release that object.
(id)initWithFrame:(CGRect)aRect;
26. 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
Maintenance of state
Controller Objects[Managers]
create a XIB file
data source - delegate and view controller
27. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
header files declare
attributes - behavior
a mechanism to enable specific callbacks
only the class and subclasses can access
28. In a class method you cannot access...
instance variables
the instance variables
initializer
only the class and subclasses can access
29. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
values
causes the program to immediately exit from the loop it is executing - whether its for - while or do
message
designated initializer
30. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the array becomes an owner of that object and has a pointer to it.
variable scope - if defined within a block
Instantiation from scratch
pointers
31. UIView - designated initializer...
calling code that does the instantiation for you
receiver
retain
(id)initWithFrame:(CGRect)aRect;
32. You use _ to implement the view
only the innermost loop in which the break is executed is terminated
ordered collection of objects - immutable
CGFloat
CGRect bounds
33. Class methods typically either create
new instances of the class or retrieve some global property of the class.
parentViewController
Abstraction
the array becomes an owner of that object and has a pointer to it.
34. If you have extra work you want to do on the view...
class methods - initializers
do so in viewDidLoad
wait until the loop finishes processing the event - at the end release it
Is a placeholder object
35. Reducing details to focus on the core concepts
super - self
initializer
Abstraction
parentViewController
36. Each _ has a 'designated' initializer method....
nil
they need to be defined in the implementation file
class
only the class and subclasses can access
37. [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.
data
UIView
is called every time the event occurs
you always return the newly initialized object(return self)
38. Object Oriented based analogue to a function is called a...
accessors - individually we call them 'getters' and 'setters'
UIViewController
method
causes the program to immediately exit from the loop it is executing - whether its for - while or do
39. If the view has no subviews - create it programmatically; if it has subviews
pointer - class
CGFloat
create a XIB file
initializers
40. When the message endEditing: is sent to a view - if it or any of its subviews or currently the _ - it will resign its first responder statues - and the keyboard will be dismissed.
will be ignored
first responder
in the dealloc - or when a Controller's view is 'unloaded'
implementation
41. A UITableViewController can fill all three roles of...
new instances of the class or retrieve some global property of the class.
calling code that does the instantiation for you
Model Objects[Factory Worker]
data source - view controller and delegate
42. Reference Counting...
You take ownership for an object you want to keep a pointer to
Instantiation from scratch
its dataSource
message
43. A responder is responsible for...
values
Used to find the time right now or to store past or future time/dates
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
receiving and handling events that are associated with it
44. A collection object - an ordered list of objects that can be accesed by an index
parentViewController
array[class - NSMutableArray]
designated initializer
delegates and dataSources
45. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
nil
only the class and subclasses can access
NSCoder
in the dealloc - or when a Controller's view is 'unloaded'
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
attributes - behavior
a mechanism to enable specific callbacks
data source - view controller and delegate
Functions
47. A message is always contained in square brackets - and has three parts
You take ownership for an object you want to keep a pointer to
receiver - selector - arguments
subview(s)
for inheritance - adopting the superclasses implementation
48. Defining variables - three parts...
type - name and value
parentViewController
implementation
data
49. 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
the array relinquishes ownership of that object and no longer has a pointer to it
ordered collection of objects - immutable
CGRect bounds
50. Number one use of protocols in iOS...
attributes - behavior
delegates and dataSources
do so in viewDidLoad
header files declare