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. 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
CGFloat
%d
Anytime you call a method with new - alloc or copy. You own and must release that object.
Maintenance of state
2. We can use dot notation to reference...
3. 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
parentViewController
safety - subclassability and makes code look more consistent with C structs
Maintenance of state
protocol
4. If you have extra work you want to do on the view...
methods for generating an instance
do so in viewDidLoad
receiver[message]
declaration and initialization of a variable
5. Only exists within the statement block there defined - outside of the block is fine
create a XIB file
variable scope - if defined within a block
@interface ClassName:SuperClassName
creates an instance of NSString that holds the character string
6. The integer prefix is...
pointer - class
object
accessors - individually we call them 'getters' and 'setters'
%d
7. NSValue - class...
methods for generating an instance
safety - subclassability and makes code look more consistent with C structs
methods
Generic object wrapper for other non-object data types
8. Origin of a view's coordinate system is _ left
UIViewController
upper
will be ignored
Abstraction
9. Files Owner...
Controller Objects[Managers]
superclass's
Is a placeholder object
UIViewController
10. Why properties?
initializers
superclass's
safety - subclassability and makes code look more consistent with C structs
method
11. When do you take ownership?...
Anytime you call a method with new - alloc or copy. You own and must release that object.
pointers
class methods - initializers
You take ownership for an object you want to keep a pointer to
12. Hold data and know nothing about the user interface
do so in viewDidLoad
Model Objects[Factory Worker]
has one root view controller
'getters' and 'setters'
13. Categories are an Objective C way to add _ to an existing class without subclassing
class
message
will be ignored
methods
14. Execution of the break statement...
class methods - initializers
Used to find the time right now or to store past or future time/dates
will be ignored
causes the program to immediately exit from the loop it is executing - whether its for - while or do
15. Also if you send the NSObject the _ message - you own that object.
you must import the header file of that class
UIView
retain
is called every time the event occurs
16. In general - class methods tend to be factory methods - that is...
Continue
cannot be added to an array
methods for generating an instance
a single-array can contain objects of different types
17. 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
You take ownership for an object you want to keep a pointer to
Encapsulation of functionality
methods
creates an instance of NSString that holds the character string
18. NSDictionary...
superclass's
Hash table - Look up objects using a key to get a value.
protocol
creating an initializer
19. id is a...
you must import the header file of that class
pointer to an object
only the innermost loop in which the break is executed is terminated
'getters' and 'setters'
20. Instance Variables by default are called @protected meaning...
ordered collection of objects - immutable
only the class and subclasses can access
methods
implementation
21. Name of the method to be executed
selector[message]
for inheritance - adopting the superclasses implementation
is an instance of that class
causes the program to immediately exit from the loop it is executing - whether its for - while or do
22. NSDate - class...
Used to find the time right now or to store past or future time/dates
Data Encapsulation
object
class methods - initializers
23. NSString *s = @'Hello - World'; is an example of...
NSLog routine
the message release to all its entries
declaration and initialization of a variable
Anytime you call a method with new - alloc or copy. You own and must release that object.
24. When an object is added to a NSMutableArray - that object is sent the message to retain;...
position
the array becomes an owner of that object and has a pointer to it.
instance variables
Continue
25. A responder is responsible for...
receiving and handling events that are associated with it
receiver[message]
array[class - NSMutableArray]
(id)initWithFrame:(CGRect)aRect;
26. A pointer to the object being asked to execute a method
instance of UIView or one of its subclasses
references to objects
receiver[message]
wait until the loop finishes processing the event - at the end release it
27. Class methods typically either create
storage
rectangular
an object's property
new instances of the class or retrieve some global property of the class.
28. A _ handles touch events.
NSLog routine
Model Objects[Factory Worker]
method
view
29. At the top of any implementation file...
you must import the header file of that class
C Functionn
CGRect
only the class and subclasses can access
30. After accessors have been defined in the header file...
upper
superclass's
group of global functions already assigned to this class
they need to be defined in the implementation file
31. An instance is a device for maintaining state. It's a box for _ of data.
storage
the message release to all its entries
for inheritance - adopting the superclasses implementation
Model Objects[Factory Worker]
32. If you aren't going to initialize an instance reference pointer at the moment you declare it by assigning a real value - it's a good idea to assign it _.
view
message
nil
selector[message]
33. The designated initializer calls the _ designated initializer....
34. Use of class methods - there are three...
CGFloat
instance variables
alloc - singleton - informational utility method?
nil
35. A message is always contained in square brackets - and has three parts
receiver - selector - arguments
is an instance of that class
Ready-Made Instance
(id)initWithFrame:(CGRect)aRect;
36. Core foundation classes are prefixed with _ and suffixed with _
for inheritance - adopting the superclasses implementation
CF - Ref
to get and set variables
data
37. NSArray - important methods...
setPossessionName
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
only the class and subclasses can access
size and position
38. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
Encapsulation of functionality
receiver
header files declare
position
39. 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...
storage
setPossessionName
variable scope - if defined within a block
to get and set variables
40. In Objective C arrays can hold only...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
references to objects
methods
wait until the loop finishes processing the event - at the end release it
41. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
is called every time the event occurs
self
setPossessionName
safety - subclassability and makes code look more consistent with C structs
42. UIViewController has several methods that get called at certain times...
UIViewController
data source - view controller and delegate
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
(id)initWithFrame:(CGRect)aRect;
43. Values to be supplied as the parameters to the method
Core Graphics Framework
arguments[message]
NSCoder
Encapsulation of functionality
44. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
CGRect
super - self
ordered collection of objects - immutable
NSCoder
45. A function in the objective c library that simply displays or logs it's argument
receiver[message]
size and position
NSLog routine
creating an initializer
46. In the last line of an init method...
its dataSource
you always return the newly initialized object(return self)
Data Encapsulation
method
47. Whenever a UINavigationController is about to swap views - it sends out two messages
viewWillDissapear: and viewWillAppear:
reuse your cells
initializers
@synthesize
48. 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.
message
alloc - singleton - informational utility method?
Data Encapsulation
view controller
49. UITableViewController is a subclass of...
wait until the loop finishes processing the event - at the end release it
viewWillDissapear: and viewWillAppear:
data source - delegate and view controller
UIViewController
50. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
CGRect
lowercase - uppercase
selector[message]