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 a view controller presents a modal view controller - the _ of the modal view controller is set to be the parent of the presenting controller
creating an initializer
parentViewController
Core Graphics Framework
initializers
2. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
NSCoder
designated initializer
Encapsulation of functionality
new instances of the class or retrieve some global property of the class.
3. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
class
methods
Model Objects[Factory Worker]
initializers
4. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the array becomes an owner of that object and has a pointer to it.
%d
to get and set variables
UIView
5. If the view has no subviews - create it programmatically; if it has subviews
Is a placeholder object
instance of UIView or one of its subclasses
create a XIB file
Functions
6. 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
declaration and initialization of a variable
Anytime you call a method with new - alloc or copy. You own and must release that object.
Maintenance of state
copy - retain
7. A view is an...
array[class - NSMutableArray]
superclass's
instance of UIView or one of its subclasses
setPossessionName
8. UITableViewController is a subclass of...
UIViewController
receiving and handling events that are associated with it
CF - Ref
Encapsulation of functionality
9. Views have three properties related to their location and size: @property _ _;
to get and set variables
CGRect bounds - GCPoint center - CGRect frame
position
accessors - individually we call them 'getters' and 'setters'
10. Class methods do not operate on an _ or have any access to _ variables....
(id)initWithFrame:(CGRect)aRect;
instance
subview(s)
Functions
11. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
You take ownership for an object you want to keep a pointer to
view controller
object
references to objects
12. NSString *s = @'Hello - World'; is an example of...
(id)initWithFrame:(CGRect)aRect;
a mechanism to enable specific callbacks
declaration and initialization of a variable
UIViewController
13. When do you take ownership?...
collection of collections - NSArray of an NSArray
Anytime you call a method with new - alloc or copy. You own and must release that object.
Encapsulation of functionality
size and position
14. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
You take ownership for an object you want to keep a pointer to
Instantiation from scratch
selector[message]
Generic object wrapper for other non-object data types
15. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
size and position
selector[message]
reuse your cells
Ready-Made Instance
16. Proceed through the loop - jump back to the top and check again
Continue
upper
a mechanism to enable specific callbacks
method
17. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
message
selector[message]
view
18. A UITableView usually needs three different pieces...
data source - delegate and view controller
for inheritance - adopting the superclasses implementation
Is a placeholder object
a mechanism to enable specific callbacks
19. A _ handles touch events.
unordered collection of objects - objects must be unique
view
receiving and handling events that are associated with it
data source - view controller and delegate
20. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
instance variables
super - self
header files declare
setPossessionName
21. All objects are accessed using...
methods
Used to find the time right now or to store past or future time/dates
%d
pointers
22. When making a tableView always...
Core Graphics Framework
self
lowercase - uppercase
reuse your cells
23. In a class method you cannot access...
self
the instance variables
only the innermost loop in which the break is executed is terminated
is an instance of that class
24. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
copy - retain
causes the program to immediately exit from the loop it is executing - whether its for - while or do
view controller
25. How do I implement my drawRect?
references to objects
Data Encapsulation
Model Objects[Factory Worker]
Core Graphics Framework
26. Object Oriented based analogue to a function is called a...
for inheritance - adopting the superclasses implementation
UIViewController
creating an initializer
method
27. UIViewController has several methods that get called at certain times...
is an instance of that class
data source - delegate and view controller
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Object wrapper around primitive types like int - float - double - BOOl
28. 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.
the array relinquishes ownership of that object and no longer has a pointer to it
Data Encapsulation
you always return the newly initialized object(return self)
Is a placeholder object
29. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
instance variables
setPossessionName
Is a placeholder object
30. A view is a subclass of _
instance variables
UIView
is called every time the event occurs
rectangular
31. Why properties?
safety - subclassability and makes code look more consistent with C structs
creating an initializer
CGRect bounds - GCPoint center - CGRect frame
setPossessionName
32. An instance is a device for maintaining state. It's a box for _ of data.
initializers
storage
Generic object wrapper for other non-object data types
Hash table - Look up objects using a key to get a value.
33. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
@synthesize
%d
34. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
Continue
Maintenance of state
data source - delegate and view controller
header files declare
35. 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...
instance of UIView or one of its subclasses
safety - subclassability and makes code look more consistent with C structs
setPossessionName
NSCoder
36. You use _ to implement the view
receiver
alloc - singleton - informational utility method?
CGRect bounds
CGRect bounds - GCPoint center - CGRect frame
37. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
Maintenance of state
position
safety - subclassability and makes code look more consistent with C structs
38. 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 _.
implementation
'getters' and 'setters'
the array becomes an owner of that object and has a pointer to it.
pointer - class
39. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
pointer - class
create a XIB file
for inheritance - adopting the superclasses implementation
receiver
40. Reference Counting...
alloc - singleton - informational utility method?
rectangular
You take ownership for an object you want to keep a pointer to
view controller
41. NSSet...
rectangular
unordered collection of objects - objects must be unique
NSLog routine
nil
42. The only reason to temporarily own an object - is...
to give it someone else - or another object
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
in the dealloc - or when a Controller's view is 'unloaded'
Maintenance of state
43. Defining variables - three parts...
message
type - name and value
designated initializer
setPossessionName
44. Classes describe two things...
size and position
self
view
attributes - behavior
45. 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
46. [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.
only the innermost loop in which the break is executed is terminated
Continue
data
Ready-Made Instance
47. @property - is using methods...
upper
class
to get and set variables
CGRect bounds
48. Primitives and C Structures...
the array relinquishes ownership of that object and no longer has a pointer to it
cannot be added to an array
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Instantiation from scratch
49. Asking a class or object to execute a method
new instances of the class or retrieve some global property of the class.
array[class - NSMutableArray]
Functions
message
50. When an object is removed from an NSMutableArray - that object is sent the message release;...
receiving and handling events that are associated with it
the array relinquishes ownership of that object and no longer has a pointer to it
Controller Objects[Managers]
storage