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. A command directed to an object is called an...
message
arguments[message]
do so in viewDidLoad
CGRect bounds - GCPoint center - CGRect frame
2. It's class is sent the message alloc - which creates an instance of that class and returns a pointer to it - and then that instance is sent the message init - which gives its instance variables initial values.
creating an initializer
Continue
view controller
declaration and initialization of a variable
3. Proceed through the loop - jump back to the top and check again
has one root view controller
Data Encapsulation
Continue
copy - retain
4. A UITableViewController can fill all three roles of...
@synthesize
calling code that does the instantiation for you
'getters' and 'setters'
data source - view controller and delegate
5. Any other initializer a class has calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
6. Typically the designated initializer has parameters for the most important and frequently used _ of an object
Maintenance of state
instance variables
its dataSource
storage
7. id is a...
pointer to an object
the array becomes an owner of that object and has a pointer to it.
parentViewController
do so in viewDidLoad
8. When an NSMutableArray is deallocated - it sends...
Ready-Made Instance
designated initializer
the message release to all its entries
pointer - class
9. Ready-made instances...
calling code that does the instantiation for you
the message release to all its entries
selector[message]
in the dealloc - or when a Controller's view is 'unloaded'
10. Files Owner...
cannot be added to an array
Is a placeholder object
initializers
Core Graphics Framework
11. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
position
creating an initializer
receiver
12. Reducing details to focus on the core concepts
Abstraction
Instantiation from scratch
UIViewController
to get and set variables
13. 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
Encapsulation of functionality
Functions
instance variables
unordered collection of objects - objects must be unique
14. In the last line of an init method...
the array becomes an owner of that object and has a pointer to it.
the instance variables
UIViewController
you always return the newly initialized object(return self)
15. When an object is removed from an NSMutableArray - that object is sent the message release;...
method
the array relinquishes ownership of that object and no longer has a pointer to it
Functions
safety - subclassability and makes code look more consistent with C structs
16. A callback is a function that is supplied in advance of an event - and...
is called every time the event occurs
new instances of the class or retrieve some global property of the class.
an object's property
instance of UIView or one of its subclasses
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
an object's property
ready-made instances - instantiation from scratch - and nib based instantiation
a mechanism to enable specific callbacks
calling code that does the instantiation for you
18. In general - in Objective-C - a reference to an instance is a _ - and the name of the data type of what's at the far end of that pointer is the name of the instances's _.
pointer - class
instance variables
CGFloat
self
19. UIViewController has several methods that get called at certain times...
callbacks
C Functionn
@interface ClassName:SuperClassName
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
20. Class methods do not operate on an _ or have any access to _ variables....
instance
initializers
Is a placeholder object
retain
21. NSSet...
unordered collection of objects - objects must be unique
create a XIB file
attributes - behavior
Hash table - Look up objects using a key to get a value.
22. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
protocol
instance of UIView or one of its subclasses
data source - delegate and view controller
23. Hold data and know nothing about the user interface
will be ignored
UIView
Model Objects[Factory Worker]
they need to be defined in the implementation file
24. NSValue - class...
Generic object wrapper for other non-object data types
Is a placeholder object
CF - Ref
CGRect
25. Instance Variables by default are called @protected meaning...
arguments[message]
only the class and subclasses can access
initializer
the message release to all its entries
26. We can use dot notation to reference...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
27. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
Instantiation from scratch
CGRect
(id)initWithFrame:(CGRect)aRect;
Model Objects[Factory Worker]
28. In Cocoa Touch - the table view asks another object _ what it should display...
view controller
its dataSource
do so in viewDidLoad
CGRect bounds - GCPoint center - CGRect frame
29. A view represents a _ area
Abstraction
view controller's initialization method
pointer - class
rectangular
30. Three ways instances are created...
will be ignored
Is a placeholder object
ready-made instances - instantiation from scratch - and nib based instantiation
instance
31. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
32. In object oriented languages - we call methods that get and set instance variables
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
33. Reference Counting...
You take ownership for an object you want to keep a pointer to
causes the program to immediately exit from the loop it is executing - whether its for - while or do
instance of UIView or one of its subclasses
is called every time the event occurs
34. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
instance variable of an object is valid
NSCoder
Controller Objects[Managers]
instance
35. Object Oriented based analogue to a function is called a...
to give it someone else - or another object
cannot be added to an array
method
C Functionn
36. Whenever a UINavigationController is about to swap views - it sends out two messages
array[class - NSMutableArray]
view
to get and set variables
viewWillDissapear: and viewWillAppear:
37. A pointer to the object being asked to execute a method
delegates and dataSources
is an instance of that class
the array becomes an owner of that object and has a pointer to it.
receiver[message]
38. What happens when the last owner calls release?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
39. You use _ to implement the view
setPossessionName
CGRect bounds
Maintenance of state
Abstraction
40. Categories are an Objective C way to add _ to an existing class without subclassing
rectangular
instance variable of an object is valid
Anytime you call a method with new - alloc or copy. You own and must release that object.
methods
41. if you implemented both the setter and getter - the @synthesize method...
class's
Model Objects[Factory Worker]
will be ignored
its dataSource
42. In a class method you cannot access...
arguments[message]
type - name and value
the instance variables
references to objects
43. Origin of a view's coordinate system is _ left
UIViewController
upper
collection of collections - NSArray of an NSArray
Abstraction
44. 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
Generic object wrapper for other non-object data types
You take ownership for an object you want to keep a pointer to
Encapsulation of functionality
initializers
45. When making a tableView always...
is called every time the event occurs
initializers
reuse your cells
retain
46. The only reason to temporarily own an object - is...
upper
pointer - class
CGRect
to give it someone else - or another object
47. 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...
object
setPossessionName
%d
values
48. At the top of any implementation file...
references to objects
cannot be added to an array
you must import the header file of that class
type - name and value
49. Name of the method to be executed
ordered collection of objects - immutable
Abstraction
selector[message]
methods
50. Never access a view controller's view in that...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183