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. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
the instance variables
view controller's initialization method
class's
designated initializer
2. 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.
ready-made instances - instantiation from scratch - and nib based instantiation
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Data Encapsulation
Generic object wrapper for other non-object data types
3. Name of the method to be executed
first responder
selector[message]
only the class and subclasses can access
view controller
4. Ready-made instances...
instance variables
unordered collection of objects - objects must be unique
calling code that does the instantiation for you
Is a placeholder object
5. 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
6. Class methods do not operate on an _ or have any access to _ variables....
its dataSource
subview(s)
calling code that does the instantiation for you
instance
7. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
to give it someone else - or another object
only the innermost loop in which the break is executed is terminated
dealloc - is called on the object & the object's memory is returned to the heap
8. A view is a subclass of _
UIView
the message release to all its entries
arguments[message]
view
9. @property declares - and _ implements the setter and getter...
header files declare
@synthesize
class's
object
10. 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
designated initializer
Maintenance of state
draw images
11. How do I implement my drawRect?
a mechanism to enable specific callbacks
data source - view controller and delegate
declaration and initialization of a variable
Core Graphics Framework
12. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
in the dealloc - or when a Controller's view is 'unloaded'
Anytime you call a method with new - alloc or copy. You own and must release that object.
safety - subclassability and makes code look more consistent with C structs
13. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
methods for generating an instance
instance variables
ready-made instances - instantiation from scratch - and nib based instantiation
header files declare
14. NSDate - class...
Used to find the time right now or to store past or future time/dates
data
only the innermost loop in which the break is executed is terminated
receiver
15. In a class method you cannot access...
Continue
rectangular
the instance variables
Encapsulation of functionality
16. class methods...
a single-array can contain objects of different types
is called every time the event occurs
ready-made instances - instantiation from scratch - and nib based instantiation
group of global functions already assigned to this class
17. 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.
dealloc - is called on the object & the object's memory is returned to the heap
group of global functions already assigned to this class
instance variables
Functions
18. If a break statement is executed from within a set of nested loops...
NSBundle
only the innermost loop in which the break is executed is terminated
class's
define it in the implemenation file
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
Ready-Made Instance
Controller Objects[Managers]
creates an instance of NSString that holds the character string
Encapsulation of functionality
20. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
methods for generating an instance
method
in the dealloc - or when a Controller's view is 'unloaded'
Controller Objects[Managers]
21. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
to get and set variables
unordered collection of objects - objects must be unique
Maintenance of state
22. 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
variable scope - if defined within a block
Ready-Made Instance
viewWillDissapear: and viewWillAppear:
Maintenance of state
23. initWithFrame: the designated initializer for UIView gives the view
protocol
size and position
superclass's
instance
24. NSString objects are usually sent _ rather than _...
storage
CGRect bounds - GCPoint center - CGRect frame
copy - retain
class
25. After accessors have been defined in the header file...
they need to be defined in the implementation file
instance variables
ready-made instances - instantiation from scratch - and nib based instantiation
the array becomes an owner of that object and has a pointer to it.
26. Proceed through the loop - jump back to the top and check again
Continue
callbacks
object
method
27. A view is an...
create a XIB file
instance of UIView or one of its subclasses
reuse your cells
(id)initWithFrame:(CGRect)aRect;
28. 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
29. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
selector[message]
lowercase - uppercase
receiver - selector - arguments
30. A function in the objective c library that simply displays or logs it's argument
super - self
NSLog routine
Functions
implementation
31. The only reason to temporarily own an object - is...
to give it someone else - or another object
data source - delegate and view controller
instance variables
array[class - NSMutableArray]
32. Core foundation classes are prefixed with _ and suffixed with _
upper
@synthesize
CF - Ref
methods for generating an instance
33. 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 _.
only the class and subclasses can access
Object wrapper around primitive types like int - float - double - BOOl
pointer - class
initializer
34. A pointer to the object being asked to execute a method
creating an initializer
storage
receiver[message]
cannot be added to an array
35. Also - because arrays only hold a pointer to an object...
methods
methods for generating an instance
the instance variables
a single-array can contain objects of different types
36. super - is used...
CF - Ref
nil
ordered collection of objects - immutable
for inheritance - adopting the superclasses implementation
37. In general - class methods tend to be factory methods - that is...
viewWillDissapear: and viewWillAppear:
methods for generating an instance
define it in the implemenation file
calling code that does the instantiation for you
38. A _ handles touch events.
callbacks
methods for generating an instance
they need to be defined in the implementation file
view
39. A command directed to an object is called an...
instance
array[class - NSMutableArray]
message
type - name and value
40. 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
size and position
a mechanism to enable specific callbacks
Functions
super - self
41. When do you take ownership?...
CF - Ref
data source - delegate and view controller
an object's property
Anytime you call a method with new - alloc or copy. You own and must release that object.
42. NSSet...
object
unordered collection of objects - objects must be unique
class
type - name and value
43. if you implemented both the setter and getter - the @synthesize method...
will be ignored
Maintenance of state
pointers
rectangular
44. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
CF - Ref
super - self
Data Encapsulation
45. UIImageView is used to...
Generic object wrapper for other non-object data types
message
draw images
NSCoder
46. At the top of any implementation file...
Instantiation from scratch
implementation
CGRect
you must import the header file of that class
47. Categories are an Objective C way to add _ to an existing class without subclassing
methods
view
has one root view controller
nil
48. Only exists within the statement block there defined - outside of the block is fine
Functions
the instance variables
variable scope - if defined within a block
its dataSource
49. [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
is an instance of that class
rectangular
new instances of the class or retrieve some global property of the class.
50. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
Core Graphics Framework
CGRect bounds
values