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. Categories are an Objective C way to add _ to an existing class without subclassing
methods
instance of UIView or one of its subclasses
initializer
the message release to all its entries
2. Core foundation classes are prefixed with _ and suffixed with _
type - name and value
receiving and handling events that are associated with it
CF - Ref
accessors - individually we call them 'getters' and 'setters'
3. 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.
Model Objects[Factory Worker]
viewWillDissapear: and viewWillAppear:
creating an initializer
super - self
4. Just a floating point number - but we always use it for graphics.
size and position
CGFloat
upper
pointer to an object
5. Ready-made instances...
values
position
message
calling code that does the instantiation for you
6. NSDate - class...
storage
Used to find the time right now or to store past or future time/dates
message
UIViewController
7. Views have three properties related to their location and size: @property _ _;
new instances of the class or retrieve some global property of the class.
declaration and initialization of a variable
methods
CGRect bounds - GCPoint center - CGRect frame
8. Name of the method to be executed
view controller
Continue
selector[message]
class methods - initializers
9. UIViewController has several methods that get called at certain times...
will be ignored
Used to find the time right now or to store past or future time/dates
message
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
10. NSDictionary...
Hash table - Look up objects using a key to get a value.
has one root view controller
the instance variables
message
11. A collection object - an ordered list of objects that can be accesed by an index
create a XIB file
array[class - NSMutableArray]
Anytime you call a method with new - alloc or copy. You own and must release that object.
position
12. Asking a class or object to execute a method
view controller
references to objects
you always return the newly initialized object(return self)
message
13. Why properties?
Data Encapsulation
Abstraction
first responder
safety - subclassability and makes code look more consistent with C structs
14. if you implemented both the setter and getter - the @synthesize method...
superclass's
message
will be ignored
instance
15. An instance is a device for maintaining state. It's a box for _ of data.
storage
do so in viewDidLoad
CF - Ref
causes the program to immediately exit from the loop it is executing - whether its for - while or do
16. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
pointers
instance variables
NSCoder
17. When an object is removed from an NSMutableArray - that object is sent the message release;...
lowercase - uppercase
the array relinquishes ownership of that object and no longer has a pointer to it
class's
variable scope - if defined within a block
18. NSString *s = @'Hello - World'; is an example of...
has one root view controller
declaration and initialization of a variable
is an instance of that class
receiving and handling events that are associated with it
19. All objects are accessed using...
Model Objects[Factory Worker]
references to objects
pointers
dealloc - is called on the object & the object's memory is returned to the heap
20. A command directed to an object is called an...
will be ignored
message
You take ownership for an object you want to keep a pointer to
class's
21. [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.
UIView
to get and set variables
data
storage
22. Center and frame are used to _ your view
position
copy - retain
upper
class
23. Use of class methods - there are three...
in the dealloc - or when a Controller's view is 'unloaded'
alloc - singleton - informational utility method?
ordered collection of objects - immutable
receiving and handling events that are associated with it
24. Object Oriented based analogue to a function is called a...
method
storage
Is a placeholder object
class
25. @property - is using methods...
callbacks
implementation
to get and set variables
first responder
26. A pointer to the object being asked to execute a method
viewWillDissapear: and viewWillAppear:
parentViewController
receiver - selector - arguments
receiver[message]
27. class methods...
arguments[message]
CF - Ref
group of global functions already assigned to this class
draw images
28. Designated initializer makes sure that every...
data source - view controller and delegate
instance variable of an object is valid
to give it someone else - or another object
CGRect bounds
29. 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
for inheritance - adopting the superclasses implementation
pointer to an object
Encapsulation of functionality
they need to be defined in the implementation file
30. What does autorelease mean?
receiver
wait until the loop finishes processing the event - at the end release it
pointer - class
Data Encapsulation
31. If a break statement is executed from within a set of nested loops...
creating an initializer
CGRect bounds - GCPoint center - CGRect frame
only the innermost loop in which the break is executed is terminated
declaration and initialization of a variable
32. In a class method you cannot access...
do so in viewDidLoad
You take ownership for an object you want to keep a pointer to
the instance variables
the array relinquishes ownership of that object and no longer has a pointer to it
33. id is a...
Controller Objects[Managers]
CGRect bounds
pointer to an object
header files declare
34. UIImageView is used to...
draw images
designated initializer
array[class - NSMutableArray]
attributes - behavior
35. The integer prefix is...
data source - view controller and delegate
you must import the header file of that class
%d
Anytime you call a method with new - alloc or copy. You own and must release that object.
36. A view is a subclass of _
You take ownership for an object you want to keep a pointer to
creating an initializer
values
UIView
37. @property declares - and _ implements the setter and getter...
calling code that does the instantiation for you
@synthesize
collection of collections - NSArray of an NSArray
UIViewController
38. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
reuse your cells
%d
an object's property
39. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
dealloc - is called on the object & the object's memory is returned to the heap
only the innermost loop in which the break is executed is terminated
superclass's
40. Any other initializer a class has calls the _ designated initializer....
41. Primitives and C Structures...
variable scope - if defined within a block
callbacks
Used to find the time right now or to store past or future time/dates
cannot be added to an array
42. In the last line of an init method...
you always return the newly initialized object(return self)
ordered collection of objects - immutable
method
they need to be defined in the implementation file
43. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
to give it someone else - or another object
array[class - NSMutableArray]
storage
44. Typically the designated initializer has parameters for the most important and frequently used _ of an object
receiving and handling events that are associated with it
header files declare
to get and set variables
instance variables
45. A UITableView usually needs three different pieces...
CGFloat
data source - delegate and view controller
Abstraction
draw images
46. Execution of the break statement...
array[class - NSMutableArray]
retain
causes the program to immediately exit from the loop it is executing - whether its for - while or do
self
47. 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.
first responder
unordered collection of objects - objects must be unique
only the class and subclasses can access
CGFloat
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.
a single-array can contain objects of different types
the array becomes an owner of that object and has a pointer to it.
Data Encapsulation
Instantiation from scratch
49. 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 _.
has one root view controller
first responder
nil
methods
50. When overriding a method - all you need to is _ - you do not need to declare it in the header file because it has already been declared by the superclass....
to give it someone else - or another object
self
define it in the implemenation file
values