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. 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.
designated initializer
dealloc - is called on the object & the object's memory is returned to the heap
alloc - singleton - informational utility method?
first responder
2. 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
first responder
you must import the header file of that class
upper
Maintenance of state
3. A responder is responsible for...
(id)initWithFrame:(CGRect)aRect;
pointer - class
safety - subclassability and makes code look more consistent with C structs
receiving and handling events that are associated with it
4. 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 _.
copy - retain
pointer to an object
pointer - class
receiving and handling events that are associated with it
5. 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
'getters' and 'setters'
method
calling code that does the instantiation for you
parentViewController
6. Each class picks one _ as it's designated initializer....
the message release to all its entries
cannot be added to an array
initializer
pointers
7. Categories are an Objective C way to add _ to an existing class without subclassing
Core Graphics Framework
Hash table - Look up objects using a key to get a value.
header files declare
methods
8. if you implemented both the setter and getter - the @synthesize method...
you always return the newly initialized object(return self)
will be ignored
Instantiation from scratch
Controller Objects[Managers]
9. Use of class methods - there are three...
collection of collections - NSArray of an NSArray
ready-made instances - instantiation from scratch - and nib based instantiation
alloc - singleton - informational utility method?
you must import the header file of that class
10. id is a...
safety - subclassability and makes code look more consistent with C structs
(id)initWithFrame:(CGRect)aRect;
pointer to an object
cannot be added to an array
11. Only exists within the statement block there defined - outside of the block is fine
receiver - selector - arguments
designated initializer
methods for generating an instance
variable scope - if defined within a block
12. In Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
method
creating an initializer
CGRect
13. 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.
Data Encapsulation
do so in viewDidLoad
ordered collection of objects - immutable
parentViewController
14. A view is a subclass of _
UIView
Maintenance of state
CF - Ref
CGRect bounds - GCPoint center - CGRect frame
15. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
receiver
retain
unordered collection of objects - objects must be unique
NSBundle
16. The class is responsible for what instance variables the instance has - but not the _ of those variables.
C Functionn
CGFloat
values
will be ignored
17. In general - class methods tend to be factory methods - that is...
methods for generating an instance
only the class and subclasses can access
receiver[message]
do so in viewDidLoad
18. Origin of a view's coordinate system is _ left
Data Encapsulation
subview(s)
an object's property
upper
19. NSArray - class...
You take ownership for an object you want to keep a pointer to
methods
pointers
ordered collection of objects - immutable
20. When do we need to release our outlets?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
21. UIViewController has several methods that get called at certain times...
pointer to an object
Model Objects[Factory Worker]
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
nil
22. 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.
pointers
creating an initializer
a mechanism to enable specific callbacks
will be ignored
23. In any application with UINavigationController - the navigation controller...
has one root view controller
draw images
C Functionn
alloc - singleton - informational utility method?
24. Designated initializer makes sure that every...
instance variable of an object is valid
@interface ClassName:SuperClassName
CGRect bounds - GCPoint center - CGRect frame
creating an initializer
25. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
Maintenance of state
C Functionn
unordered collection of objects - objects must be unique
method
26. Typically the designated initializer has parameters for the most important and frequently used _ of an object
instance variables
Anytime you call a method with new - alloc or copy. You own and must release that object.
a single-array can contain objects of different types
type - name and value
27. 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
28. Core foundation classes are prefixed with _ and suffixed with _
'getters' and 'setters'
UIView
CF - Ref
ordered collection of objects - immutable
29. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
unordered collection of objects - objects must be unique
is an instance of that class
view controller
30. Object Oriented based analogue to a function is called a...
class methods - initializers
superclass's
copy - retain
method
31. 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
initializers
Encapsulation of functionality
Instantiation from scratch
for inheritance - adopting the superclasses implementation
32. A _ handles touch events.
initializers
message
is an instance of that class
view
33. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
Controller Objects[Managers]
retain
cannot be added to an array
parentViewController
34. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
Hash table - Look up objects using a key to get a value.
collection of collections - NSArray of an NSArray
self
implementation
35. Delegation is an object oriented approach to
Controller Objects[Managers]
pointers
callbacks
'getters' and 'setters'
36. Property List...
view controller
collection of collections - NSArray of an NSArray
is called every time the event occurs
alloc - singleton - informational utility method?
37. NSSet...
unordered collection of objects - objects must be unique
new instances of the class or retrieve some global property of the class.
You take ownership for an object you want to keep a pointer to
%d
38. 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
39. Primitives and C Structures...
you must import the header file of that class
instance variables
delegates and dataSources
cannot be added to an array
40. NSValue - class...
method
view
instance of UIView or one of its subclasses
Generic object wrapper for other non-object data types
41. Views have three properties related to their location and size: @property _ _;
to give it someone else - or another object
header files declare
retain
CGRect bounds - GCPoint center - CGRect frame
42. 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
43. How do I implement my drawRect?
Core Graphics Framework
@synthesize
the instance variables
instance variables
44. Class methods do not operate on an _ or have any access to _ variables....
@interface ClassName:SuperClassName
its dataSource
attributes - behavior
instance
45. Instance Variables by default are called @protected meaning...
calling code that does the instantiation for you
only the class and subclasses can access
they need to be defined in the implementation file
wait until the loop finishes processing the event - at the end release it
46. When an object is removed from an NSMutableArray - that object is sent the message release;...
CGRect
data
the array relinquishes ownership of that object and no longer has a pointer to it
creating an initializer
47. Why properties?
subview(s)
safety - subclassability and makes code look more consistent with C structs
view
methods
48. The only reason to temporarily own an object - is...
to give it someone else - or another object
NSBundle
declaration and initialization of a variable
initializers
49. Reducing details to focus on the core concepts
Abstraction
position
CGRect bounds
class methods - initializers
50. When do you take ownership?...
Anytime you call a method with new - alloc or copy. You own and must release that object.
ready-made instances - instantiation from scratch - and nib based instantiation
a mechanism to enable specific callbacks
retain